Edit report at http://bugs.php.net/bug.php?id=42457&edit=1

 ID:               42457
 Comment by:       
 Reported by:      nikhil dot gupta at in dot ibm dot com
 Summary:          PHP directive magic_quotes_sybase not getting enabled
                   in php6 by ini_set() func
 Status:           Bogus
 Type:             Bug
 Package:          Strings related
 Operating System: linux, windows
 PHP Version:      6CVS-2007-08-28 (CVS)

 New Comment:

Good evening. Be honorable yourself if you wish to associate with
honorable people. Help me! There is an urgent need for sites: Best swiss
made replica rolex watches. I found only this - <a
href="http://pin.if.uz.zgora.pl/Members/RolexReplicaWatch/rolex-replica-watch-buy-online";>rolex
replica watch buy online</a>. Caution is the most electronic-mechanical
effective for watches, rolex replica watch. Rolex replica watch, in
industry the jewelry is the alsorolex of special  know of the
ever-popular club construction. :confused: Thanks in advance. Garnet
from Uzbekistan.


Previous Comments:
------------------------------------------------------------------------
[2007-08-28 20:38:39] [email protected]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.

------------------------------------------------------------------------
[2007-08-28 20:27:25] judas dot iscariote at gmail dot com

Expected behaviuor. all magic_quotes_* functionality has been removed
from PHP6, you really dont want this damn magic_quotes_* thing ;)

------------------------------------------------------------------------
[2007-08-28 10:42:58] nikhil dot gupta at in dot ibm dot com

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

Reply via email to