From:             spam02 at pornel dot net
Operating system: *
PHP version:      6CVS-2007-03-03 (snap)
PHP Bug Type:     Feature/Change Request
Bug description:  set_magic_quotes_runtime(0) causes Fatal Error

Description:
------------
It's great that PHP6 dropped support for magic_quotes, but I don't see a
reason to trigger fatal error when set_magic_quotes_runtime(0) is executed
(note the argument value).

I think it's completly harmless if application attempts to *disable*
magic_quotes in PHP6 and error should be thrown only on attempts to enable
magic_quotes.

In practicular this affects PHPBB, which won't run under PHP6 because of
this.


Reproduce code:
---------------
<?php set_magic_quotes_runtime(0);

Expected result:
----------------
Notice or nothing.

Actual result:
--------------
Fatal error (not even Catchable Fatal).


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

Reply via email to