php strict warnings | Drupal Groups : Thanks, forcing 5.2 worked. Login or register to post comments Disabling warnings from php strict in Drupal Posted by DarrellDuane on September 26, 2012 at 3:21pm I'm well aware that hacking core is frowned upon, but sometimes ya gotta do what ya gotta do. Running drupal 6 with views 2.x using PHP 5.4 (Fedora 17 in this case) yields a number of strict warnings that are not easily turned off. PHP doesn't allow you to turn off these strict warnings in its php.ini file, they come through even if E_STRICT is disabled, see http://stackoverflow.com/questions/4692999/e-strict-messages-thrown-thou... for more details. In order to fix this, I have edited includes/bootstrap.inc and put the following at the beginning of function drupal_set_message starting after line 991: // filter out strict warnings due to conflicts between views-2.x and PHP 5.4 if( !strncmp($message, 'strict warning:', 14) ) { return isset(...