php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #52570 register_globals on in php 5.3
Submitted: 2010-08-09 21:38 UTC Modified: 2010-08-11 23:42 UTC
From: bernardo at datamex dot com dot br Assigned: kalle (profile)
Status: Closed Package: *General Issues
PHP Version: 5.3.3 OS: Freebsd
Private report: No CVE-ID: None
 [2010-08-09 21:38 UTC] bernardo at datamex dot com dot br
Description:
------------
Because the message below: 

Warning: Directive 'register_globals' is deprecated in PHP 5.3...

is generated as a PHP Warning and not Deprecated?

Think about how to upgrade php to 5.3 on a server where there are several customers with scripts that use register globals on

I would leave as register globals on and 
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_USER_DEPRECATED, thus omitting the message register globals is deprecated


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-08-10 17:50 UTC] kalle@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: kalle
 [2010-08-10 17:50 UTC] kalle@php.net
Yep thats right in 5.3 it throws a regular E_WARNING, whereas in 5.4 it will throw an E_CORE_WARNING. So disabling E_DEPRECATED in your php.ini won't disable those warnings although the error message indicates its a deprecation.

However I'm going to commit a patch that changes it back to E_DEPRECATED as my original patch had before it was committed, and the E_ERROR for zend.ze1_compatibility_mode will be changed to an E_CORE_ERROR.
 [2010-08-11 23:12 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=302118
Log: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED (Fixes #52570)

# Trunk patch will follow shortly
 [2010-08-11 23:18 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=302119
Log: Seems like this one skipped the commit (E_ERROR -> E_CORE_ERROR) for zend.ze1_compatibility_mode (re #52570)
 [2010-08-11 23:19 UTC] kalle@php.net
Fixed in PHP 5.3.4
 [2010-08-11 23:41 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=302121
Log: MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED (Fixes #52570)

# Some of the updated tests were to make them sync with 5.3 although they don't run on trunk anymore
 [2010-08-11 23:42 UTC] kalle@php.net
-Status: Assigned +Status: Closed
 [2010-08-11 23:42 UTC] kalle@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 09:01:28 2024 UTC