From:             troelskn at gmail dot com
Operating system: linux
PHP version:      5.3.0
PHP Bug Type:     *Configuration Issues
Bug description:  get_magic_quotes_gpc returns true (int 1)

Description:
------------
magic quotes has been deprecated from 5.3
If there is no configuration setting for magic_quotes, the function
get_magic_quotes_gpc will return true (int 1). This leads some scripts to
believe that magic quotes is on, while they are not.

Reproduce code:
---------------
$ php --version
PHP 5.3.0 (cli) (built: Jul 19 2009 02:23:09) 
Copyright (c) 1997-2009 The PHP Group
$ php -r 'var_dump(get_magic_quotes_gpc());'
int(1)
$ php -r 'var_dump(get_magic_quotes_runtime());'
int(0)



-- 
Edit bug report at http://bugs.php.net/?id=48990&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=48990&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=48990&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=48990&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=48990&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=48990&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48990&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48990&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48990&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48990&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48990&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48990&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48990&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48990&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48990&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48990&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48990&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48990&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48990&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48990&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48990&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48990&r=mysqlcfg

Reply via email to