note 79126 added to function.addcslashes

From: Date: Mon, 12 Nov 2007 23:16:08 +0000
Subject: note 79126 added to function.addcslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-132211@lists.php.net to get a copy of this message
addcslashes() treats NUL as a string terminator: assert("any" === addcslashes("any\0body", "-")); unless you order it backslashified: assert("any\\000body" === addcslashes("any\0body", "\0")); (Uncertain whether this should be declared a bug or simply that addcslashes() is not binary-safe, whatever that means.) ---- Server IP: 69.147.83.197 Probable Submitter: 66.63.88.90 ---- Manual Page -- http://www.php.net/manual/en/function.addcslashes.php Edit -- https://master.php.net/note/edit/79126 Del: integrated -- https://master.php.net/note/delete/79126/integrated Del: useless -- https://master.php.net/note/delete/79126/useless Del: bad code -- https://master.php.net/note/delete/79126/bad+code Del: spam -- https://master.php.net/note/delete/79126/spam Del: non-english -- https://master.php.net/note/delete/79126/non-english Del: in docs -- https://master.php.net/note/delete/79126/in+docs Del: other reasons-- https://master.php.net/note/delete/79126 Reject -- https://master.php.net/note/reject/79126 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#132211) next »