Re: [PHP4BETA] propose for bool -> string conversion:
| From: | Buddy Lumpkin | Date: | Mon, 05 Jul 1999 11:39:46 +0000 |
| Subject: | Re: [PHP4BETA] propose for bool -> string conversion: | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-1895@lists.php.net to get a copy of this message | ||
Hey,
Wasn't the move from php3 to php4 supposed to be mostly transparent? It's
not right now, I have one program in particular that does not work with php4,
it is very complicated with over 1300 lines and I am going to have fun
debugging it. I am not complaining, I will do this happily for the advantage
of moving to php4, but still....the point is that from what I read php4 is
supposed to be backwards compatible???
-Buddy
bourbon@netvision.net.il wrote:
> On Fri, 2 Jul 1999, Sascha Schumann wrote:
>
> > > Why does it matter?
> >
> > Semantics change is a no-no, if avoidable.
>
> 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.
>
> Zeev
>
> --
> -----------------------------------------------------
> Zeev Suraski <zeev@zend.com>
> For a PGP public key, finger bourbon@netvision.net.il
>
> --
> PHP 4 Beta