ID:               40713
 Updated by:       [EMAIL PROTECTED]
 Reported By:      spam02 at pornel dot net
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: *
 PHP Version:      6CVS-2007-03-03 (snap)
 New Comment:

See previous comment.


Previous Comments:
------------------------------------------------------------------------

[2007-10-15 17:15:37] [EMAIL PROTECTED]

You can easily prevent the error:

<?php
if (!function_exists('set_magic_quotes_runtime')) {
    function set_magic_quotes_runtime($val) {
        if ($val) {
            // throw an error or do some work around 
        }
    }
}
?>

or by checking the PP version before calling the function. There's no
real need to keep such a function inside PHP once the feature was
removed.

------------------------------------------------------------------------

[2007-10-15 15:18:26] custume at custume dot no-ip dot org

i have the same problem but wit another portal 

i simply disable de code like this

 or remove <?php set_magic_quotes_runtime(0);

  or   disable just add // to the code like this 

//set_magic_quotes_runtime(0);

i use the PHP 6 at amost 1 year and is hard to config but is verry
good

still have a lot of bugs but noting that cant be resolve

custume ( WebMaster )

------------------------------------------------------------------------

[2007-03-03 21:25:49] paul at phpbbservice dot nl

phpBB2 doesn't support php5 official, so php6 is a complete no ;)
phpBB3 support php6 perfect, there are special for php6 checks in
common.php

------------------------------------------------------------------------

[2007-03-03 20:56:15] spam02 at pornel dot net

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 this bug report at http://bugs.php.net/?id=40713&edit=1

Reply via email to