On 04/12/2020 00:57, Stanislav Malyshev wrote:
You may assert anything, but it's a fact that PHP functions have returned nulls on bad values since forever.
I'm not disputing that. I'm disputing that anyone looking at the name or documentation of this particular function would guess that "foo\0bar" is a "bad value". Clearly, somebody thought so and accounted for it as such in the implementation, but it would never have occurred to me if I hadn't read this thread.
Regards, -- Rowan Tommins (né Collins) [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: https://www.php.net/unsub.php