Edit report at https://bugs.php.net/bug.php?id=61356&edit=1
ID: 61356 Updated by: ras...@php.net Reported by: dave dot kimble at gmx dot com Summary: error_reporting always reports E_STRICT Status: Open Type: Bug Package: PHP options/info functions Operating System: Windows 7 Ult 32 PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: You are missing something here. This works fine for everyone else. Hard to tell from here what it is though. Previous Comments: ------------------------------------------------------------------------ [2012-03-13 01:10:07] dave dot kimble at gmx dot com Yes, the correct file was identified by phpinfo as C:/PHP/php.ini . Yes, the web server was restarted afterwards. I also inserted error_reporting into /webmail/index.php to no effect. If I add a line 2 to /webmail/index.php : <?php error_reporting(0); and it meets other error_reporting() functions in included files, does the scope of the new error reporting extend to index.php ? I see a change has been added to http://php.net/manual/en/function.error-reporting.php for v5.4.0 making E_STRICT part of E_ALL. So there has been a change in this very area where I am finding a problem. ------------------------------------------------------------------------ [2012-03-12 21:45:42] paj...@php.net create a phpinfo.php with: <?php phpinfo(); and check the ini settings. If it is the same than in your php.ini ("loaded php.ini tells you which is loaded), then your app changes them somewhere. ------------------------------------------------------------------------ [2012-03-12 21:04:22] dave dot kimble at gmx dot com Yes, the correct file was identified by phpinfo as C:/PHP/php.ini . Yes, the web server was restarted afterwards. I also inserted error_reporting into /webmail/index.php to no effect. The PHP manual notes changes on error_reporting with various versions, but I have been unable to discover any changes with v5.4.0 . Versions: OS: Windows 7 Ult 32-bit Web Server: Fastream IQ 11.5.5R PHP: 5.4.0 VC9 Threadsafe OpenSSL 0.9.8.20 SQL Server: MySQL 5.5.21 Mail Server: hMailServer 5.3.3-B1879 WebMail: AfterLogic 6.3.10 ------------------------------------------------------------------------ [2012-03-12 18:52:23] ni...@php.net Are you sure that you are modifying the correct .ini file? Also, did you restart your server after the changes? ------------------------------------------------------------------------ [2012-03-12 09:28:44] dave dot kimble at gmx dot com Description: ------------ php-5.4.0-Win32-VC9-x86.zip downloaded 11 March 2012 php.ini as per php.ini-production with a few minor tweaks error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT sends E_STRICT messages to web page - potential security risk eg: Strict Standards: Non-static method ConvertUtils::AttributeQuote() should not be called statically in W:\domains\*****.org.au\private_html\webmail\index.php on line 226 Nothing I do to error_reporting will switch it off. display_errors = Off doesn't seem to work either. Test script: --------------- AfterLogic Webmail http://www.afterlogic.com/download/webmail_php.zip unzip to /webmail and browse to /webmail/install needs MySQL, installs OK, then browse to /webmail/index.php to login login screens fills with E_STRICT messages and the form gets corrupted ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61356&edit=1