Red Hat Bugzilla – Bug 163644
Setting error_reporting doesn't turn off strict warning messages
Last modified: 2007-11-30 17:11:10 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Description of problem:
I tried to file this bug with the PHP team, but they claim it is some patch that Fedora adds that would be the cause of the problem.
Full description is in the PHP bug.
I am currently running the PHP version from FC3 whie this problem with PHP5 gets resolved. There are many scripts that would output these warnings, and the inability to turn these "strict warning" messages off made PHP5 unuseable.
The site that had the obvious problem is a Drupal 4.5 site.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install FC3
2. Install Drupal 4.5
3. Regardless of the settings of error_reporting various "strict warning" are output
Woops -- Step 1 should say "Install FC4". The version of PHP that comes with
FC3 works with these scripts fine. PHP4 doesn't have strict warnings as this is
a new feature with PHP5.
Can you provide an example page which shows the problem?
I can't at the moment set up a demonstration site. I am mostly unavailable this
week (At http://www.linuxsymposium.org ) to set up a separate machine with FC4
and Drupal. I needed to put the machine where I noticed the error back to an
older version as some important sites run from that machine that I can't keep
down while I test.
If you are unable to set up a test environment, I will do so here.
As far as I can tell this is just a problem with the Drupal 4.5 error handling.
There are no patches to error handling in the Fedora PHP 5.0.4 package.
Just to confirm, this was an issue with the error handler set via
set_error_handler('error_handler'), and not a problem with PHP configuration.
Sorry for submitting this bug...