Re: Inaccurate documentation on return values from native functions

From: Date: Sun, 01 Dec 2024 06:58:30 +0000
Subject: Re: Inaccurate documentation on return values from native functions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-126086@lists.php.net to get a copy of this message
On Sun, 1 Dec 2024, 13:41 mickmackusa, <mickmackusa@gmail.com> wrote: > I want to point out some misleading documentation so that those who are > best equipped to update the docs (or potentially update function behaviors > to align with intentions) can take action. > > My simple demonstrations are at https://3v4l.org/Kumk4 > [image: image.png] > Output: > [image: image.png] > > I happened upon this discovery while analyzing this weirdo: > https://3v4l.org/Wj5u4 > [image: image.png] > ...which is an isolated demonstration from > https://stackoverflow.com/a/70817582/2943403 > > mickmackusa > Whoops, forgot to mention that substr_compare() is out of sync with the docs too. https://3v4l.org/BZ6fE var_export( substr_compare('abcd', 'f', 0, 4) ); // -5 https://www.php.net/manual/en/function.substr-compare.php >

« previous php.internals (#126086) next »