RE: [PHP] Re: Strange comparison behaviour

2005-05-21 Thread Martin Zvarik
-general@lists.php.net Subject: [PHP] Re: Strange comparison behaviour You probably mis-typed something: [EMAIL PROTECTED] ~]$ php ? if (info == 0) echo is 0\n; else echo not 0\n; ? Content-type: text/html X-Powered-By: PHP/4.3.11 is 0 Cheers, Bogdan Erwin Kerk wrote: Hi All, Can anyone explain

[PHP] Re: Strange comparison behaviour

2005-05-13 Thread Bogdan Stancescu
You probably mis-typed something: [EMAIL PROTECTED] ~]$ php ? if (info == 0) echo is 0\n; else echo not 0\n; ? Content-type: text/html X-Powered-By: PHP/4.3.11 is 0 Cheers, Bogdan Erwin Kerk wrote: Hi All, Can anyone explain me why the following code: if (info == 0) echo is 0\n; else echo not 0\n;

Re: [PHP] Re: Strange comparison behaviour

2005-05-13 Thread Erwin Kerk
Bogdan Stancescu wrote: You probably mis-typed something: [EMAIL PROTECTED] ~]$ php ? if (info == 0) echo is 0\n; else echo not 0\n; ? Content-type: text/html X-Powered-By: PHP/4.3.11 is 0 Tried that, but notice the PHP Version, it is failing in PHP 4.1.2! Erwin Kerk -- PHP General Mailing List

Re: [PHP] Re: Strange comparison behaviour

2005-05-13 Thread Drewcore
is upgrading your php out of the question? i would go with at least 4.3.x if not 5... unless you don't have root access on your server... in which case, i have no advice... On 5/13/05, Erwin Kerk [EMAIL PROTECTED] wrote: Bogdan Stancescu wrote: You probably mis-typed something: [EMAIL

Re: [PHP] Re: Strange comparison behaviour

2005-05-13 Thread Brian V Bonini
On Fri, 2005-05-13 at 06:34, Erwin Kerk wrote: Bogdan Stancescu wrote: You probably mis-typed something: [EMAIL PROTECTED] ~]$ php ? if (info == 0) echo is 0\n; else echo not 0\n; ? Content-type: text/html X-Powered-By: PHP/4.3.11 is 0 Tried that, but notice the PHP