Re: Re: Inaccurate documentation on return values from native functions

From: Date: Sun, 01 Dec 2024 12:01:04 +0000
Subject: Re: Re: Inaccurate documentation on return values from native functions
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-126087@lists.php.net to get a copy of this message
This should just have been an issue on the php/doc-en repo. Please open such an issue so that we can track it (or submit a PR). Best regards, Gina P. Banyard On Sunday, 1 December 2024 at 06:58, mickmackusa <mickmackusa@gmail.com> wrote: > 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.png] >> Output: >> [image.png] >> >> I happened upon this discovery while analyzing this weirdo: >> https://3v4l.org/Wj5u4 >> [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 (#126087) next »