|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-03-12 09:28 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 12:00:01 2025 UTC |
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.Here is a test script: <?php echo ( 'script = ' . $_SERVER['SCRIPT_NAME'] . '<BR>' . 'php ini loaded = ' . php_ini_loaded_file() . '<BR>' . 'error_reporting = ' . ini_get('error_reporting') . '<BR>' . 'display_errors = ' . ini_get('display_errors') . '<BR>' . 'end'); ?> Here is the output: script = /webmail/test.php php ini loaded = C:\PHP\php.ini error_reporting = 22527 display_errors = end 22527 = (32767 - 8192 - 2048) = E_ALL & ~E_DEPRECATED & ~E_STRICT so something is the matter with error_reporting because E_STRICT messages ARE appearing. The display_errors is WRONG because in C:\PHP\php.ini it is set to: display_errors = Off The php.ini file is at http://www.peakoil.org.au/php.ini