RE: [PHP] if("NANC" < 0) - always evaluates TRUE...
| From: | Ivo Pletikosic | Date: | Tue, 06 Jan 2004 19:44:51 +0000 |
| Subject: | RE: [PHP] if("NANC" < 0) - always evaluates TRUE... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173895@lists.php.net to get a copy of this message | ||
Hi,
Never noticed it before...only after the linux box got updated to
v4.3.4...running the script against my v4.2.3 also outputs err 3 &
err4...version 4.0.6 outputs nothing as it should.
Odd...not sure where to start digging to figure this...in the meantime
I'll work it around like this:
$data = 'NANC';
if(is_numeric($data) && $data < 0)
{
die('Not OK');
}
print('OK');
Where do I file this for developers with some time on their hands to
look at?
Thanks,
Ivo