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:  Function get_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



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to