#40713 [NEW]: set_magic_quotes_runtime(0) causes Fatal Error

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #40713 [NEW]: set_magic_quotes_runtime(0) causes Fatal Error

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

  2. Similar Questions and Discussions

    1. #39780 [NEW]: Fatal error reported for recoverable error
      From: pz at mysqlperformanceblog dot com Operating system: Linux PHP version: 5.2.0 PHP Bug Type: GD related Bug...
    2. Fatal PostScript Error Msg
      We are using Mac OS X 10.2.8 (Mac OS 9 classic) and Acrobat Distiller 5 on a PowerMac G4 machine. We are distilling pages from Quark 4.11 and once...
    3. fatal error
      I install Coldfusion but I receive a fatal errorInstall Begin: Wed Apr 06 20:25:33 GMT-03:00 2005 Install End: Wed Apr 06 20:25:33 GMT-03:00 2005...
    4. FHLangResource.dll - Fatal Error
      We are trying to use the Simplified Chinese version of FreeHand MX and are getting the following error on startup: "Can not find the file...
    5. IDS 9.3 Fatal Error
      Platform : SunOS 5.7 sun4u sparc SUNW,Ultra-4 IDS Version : 9.30.UC2 We received the following error messages in our log file: 16:42:58 ...
  3. #2

    Default #40713 [Com]: set_magic_quotes_runtime(0) causes Fatal Error

    ID: 40713
    Comment by: paul at phpbbservice dot nl
    Reported By: spam02 at pornel dot net
    Status: Open
    Bug Type: Feature/Change Request
    Operating System: *
    PHP Version: 6CVS-2007-03-03 (snap)
    New Comment:

    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


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

    [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 [url]http://bugs.php.net/?id=40713&edit=1[/url]
    paul at phpbbservice dot nl Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139