|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-28 20:27 UTC] judas dot iscariote at gmail dot com
[2007-08-28 20:38 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 11:00:01 2025 UTC |
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?"