note 7837 deleted from function.addslashes by philip

From: Date: Tue, 20 Jul 2004 17:23:36 +0000
Subject: note 7837 deleted from function.addslashes by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73720@lists.php.net to get a copy of this message
Note Submitter: jlp ---- note that the escaping style used by addslashes depends on the configuration variable magic_quotes_sybase-- even if magic_quotes_gpc and magic_quotes_runtime are disabled. eg: $string="foo\\bar'baz\"quux"; ini_alter("magic_quotes_sybase",0); $string1=addslashes($string); ini_alter("magic_quotes_sybase",1); $string2=addslashes($string); print("string1: $string1<br>"); print("string2: $string2<br>"); outputs: string1: foo\\bar\'baz\"quux string2: foo\bar''baz"quux

« previous php.notes (#73720) next »