Re: [PHP4BETA] propose for bool -> string conversion:

From: Date: Fri, 02 Jul 1999 13:24:37 +0000
Subject: Re: [PHP4BETA] propose for bool -> string conversion:
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-1802@lists.php.net to get a copy of this message
On Fri, 2 Jul 1999, Rasmus Lerdorf wrote: > > Semantically nothing changed, both "0" and "" are false. I don't > > feel > > strongly about this, but basically, anybody relying on false being "" and > > not "0" or 0, is writing bogus code. > > Unfortunately the only way to determine whether some functions return a > valid result or not is to check whether they return 0 or false. strpos() > being one of them. So they're buggy functions. 0 is just as much as false as "" or "0" are. Zeev -- ----------------------------------------------------- Zeev Suraski <zeev@zend.com> For a PGP public key, finger bourbon@netvision.net.il

« previous php.version4 (#1802) next »