I looked through the mailing list archives, and in several threads the consensus seemed to be that the setters should throw a warning, but the getters should not...
localhost:test dzuelke$ ~/Code/oss/php/php-5.4.0RC1/sapi/cli/php -v
PHP 5.4.0RC1 (cli) (built: Nov 11 2011 19:53:40)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies
localhost:test dzuelke$ ~/Code/oss/php/php-5.4.0RC1/sapi/cli/php -r 'get_magic_quotes_gpc();'
PHP Deprecated: Functionget_magic_quotes_gpc()
is deprecated in Command line code on line 1
Bug report is up at https://bugs.php.net/bug.php?id=55371, I've attached a patch to the ticket and this email that fixes the problem, test included.
- David
Had a few other tests failing, updated those accordingly and attached a newer version.
David
I looked through the mailing list archives, and in several threads the consensus seemed to be that the setters should throw a warning, but the getters should not...
localhost:test dzuelke$ ~/Code/oss/php/php-5.4.0RC1/sapi/cli/php -v
PHP 5.4.0RC1 (cli) (built: Nov 11 2011 19:53:40)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2011 Zend Technologies
localhost:test dzuelke$ ~/Code/oss/php/php-5.4.0RC1/sapi/cli/php -r 'get_magic_quotes_gpc();'
PHP Deprecated: Functionget_magic_quotes_gpc()
is deprecated in Command line code on line 1Bug report is up at https://bugs.php.net/bug.php?id=55371, I've attached a patch to the ticket and this email that fixes the problem, test included.
- David