PHP 8.4.24 Released!

Voting

: max(five, seven)?
(Example: nine)

The Note You're Voting On

stein at visibone dot com
18 years ago
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.)

<< Back to user notes page

To Top