From: nikhil dot gupta at in dot ibm dot com
Operating system: linux, windows
PHP version: 6CVS-2007-08-28 (CVS)
PHP Bug Type: Strings related
Bug description: PHP directive magic_quotes_sybase not getting enabled in php6
by ini_set() func
Description:
------------
On using ini_set() function to enable PHP directive magic_quotes_sybase,
we get bool(false) and directive is not enabled. This behaviour is seen
only for php6. On php5, directive gets enabled using ini_set().
Reproduce code:
---------------
<?php
$str = "how're you?";
var_dump( addslashes($str) );
// turn on PHP directive magic quotes sybase
var_dump( ini_set("magic_quotes_sybase", "1") );
var_dump( addslashes($str) );
?>
Expected result:
----------------
string(12) "how\'re you?"
string(1) "0"
string(12) "how''re you?"
Actual result:
--------------
string(12) "how\'re you?"
bool(false)
string(12) "how\'re you?"
--
Edit bug report at http://bugs.php.net/?id=42457&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=42457&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=42457&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=42457&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=42457&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=42457&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=42457&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=42457&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=42457&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=42457&r=support
Expected behavior: http://bugs.php.net/fix.php?id=42457&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=42457&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=42457&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=42457&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42457&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=42457&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=42457&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=42457&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=42457&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=42457&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=42457&r=mysqlcfg