#49362 [Opn->Asn]: register_long_arrays=On results in Server 500 Internal error
| From: | jani@php.net | Date: | Wed, 26 Aug 2009 09:52:16 +0000 |
| Subject: | #49362 [Opn->Asn]: register_long_arrays=On results in Server 500 Internal error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-141534@lists.php.net to get a copy of this message | ||
ID: 49362
Updated by: jani@php.net
Reported By: tomas dot hlavacek at firma dot volny dot cz
-Status: Open
+Status: Assigned
Bug Type: PHP options/info functions
Operating System: Windows Server 2008
PHP Version: 5.3.0
-Assigned To:
+Assigned To: kalle
New Comment:
Assigning to Kalle who added these in the obviously wrong place.
Deprecated ini settings checks can not happen in place where a check for
removed setting is done!
Previous Comments:
------------------------------------------------------------------------
[2009-08-26 09:10:52] tomas dot hlavacek at firma dot volny dot cz
Yes, I'm pretty sure to have everything updated :)
php.ini:
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = On
Even if I change display_errors=Off, that message will appear.
Take a look at this output:
D:\php5>php --ini
PHP Warning: Directive 'register_long_arrays' is deprecated in PHP 5.3
and grea
ter in Unknown on line 0
Configuration File (php.ini) Path: C:\Windows
Loaded Configuration File: D:\php5\php.ini
Scan for additional .ini files in: (none)
Additional .ini files parsed: (none)
For me, that warning message seems to be hardcoded in php source.
Please revise your code.
------------------------------------------------------------------------
[2009-08-26 09:02:49] jani@php.net
Are you sure you really updated everything? And to turn it off, just
remove E_DEPRECATED from your error_reporting.
------------------------------------------------------------------------
[2009-08-26 07:57:43] tomas dot hlavacek at firma dot volny dot cz
Just tried 5.3.1-dev (VC9 thread safe). Same result.
Changing error reporting settings in php.ini doesn't affect showing
that warning message.
------------------------------------------------------------------------
[2009-08-25 19:39:59] jani@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2009-08-25 16:11:20] tomas dot hlavacek at firma dot volny dot cz
Description:
------------
I'm running php 5.3.0 under IIS 7 (Windows Web Server 2008) as Fast-CGI
module.
Setting directive register_long_arrays=On results in "HTTP Error 500.0
- Internal Server Error".
Look's like Warning message "PHP Warning: Directive
'register_long_arrays' is deprecated in PHP 5.3 and greater in Unknown
on line 0" is sent from php to IIS before any headers and cannot be
suppressed in any way. This warning seems to be ignoring any error
reporting settings in php.ini.
Turning this directive Off is not a solution for now. Many of our
customers have to change their php scripts first.
Reproduce code:
---------------
E.G.
<? phpinfo(); ?>
Expected result:
----------------
phpinfo() page
Actual result:
--------------
HTTP Error 500.0 - Internal Server Error
D:\php5\php-cgi.exe - The FastCGI process exited unexpectedly
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49362&edit=1