Re: PHP 4.0 Bug #7763 Updated: strrpos returns unclear value

From: Date: Sun, 12 Nov 2000 01:26:55 +0000
Subject: Re: PHP 4.0 Bug #7763 Updated: strrpos returns unclear value
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37790@lists.php.net to get a copy of this message
timo@fi-web.de writes: > ID: 7763 > User Update by: timo@fi-web.de > Status: Open > Bug Type: Unknown/Other Function > Description: strrpos returns unclear value > > Actually, the function works as expected, but the documentation > lacks the little comment about the three equal signs found in the > documentation for strpos. An additional note in the predefined > constants section about FALSE is defined as ZERO would be helpful, FALSE isn't defined as zero: it's defined as FALSE. PHP 4, unlike previous versions of PHP, has a boolean type. It's just that 0 evaluates to false (as do, for instance, '' and '0') when compared. When comparing disparate types, PHP will convert them as necessary to make the comparison make sense. > too. Unfortunately, I don't have CVS access so I can't do the > changes myself. You could put a note in the Manual Errata for that section. -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.dev (#37790) next »