...no matter what follows the NANC...seems like a bug.
if(NA 0)
{
print(err 1\n);
}
if(NAN 0)
{
print(err 2\n);
}
if(NANC 0)
{
print(err 3\n);
}
if(NANCY 0)
{
print(err 4\n);
}
// output
err 3
err 4
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Tue, 6 Jan 2004 10:57:52 -0800, you wrote:
...no matter what follows the NANC...seems like a bug.
if(NA 0)
{
print(err 1\n);
}
if(NAN 0)
{
print(err 2\n);
}
if(NANC 0)
{
print(err 3\n);
}
if (NANC 0)
{
echo (one);
} else {
echo (two);
}
outputs two here, as
Hello Ivo,
Tuesday, January 6, 2004, 6:57:52 PM, you wrote:
IP ...no matter what follows the NANC...seems like a bug.
IP // output
IP err 3
IP err 4
Not for me it doesn't. It outputs nothing (as it should).
--
Best regards,
Richardmailto:[EMAIL PROTECTED]
--
Ivo Pletikosic wrote:
...no matter what follows the NANC...seems like a bug.
if(NA 0)
{
print(err 1\n);
}
if(NAN 0)
{
print(err 2\n);
}
if(NANC 0)
{
print(err 3\n);
}
if(NANCY 0)
{
print(err 4\n);
}
// output
err 3
err 4
Same behaviour here,
PHP Version 4.3.4 under Linux debian
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
On Tue, 6 Jan 2004, Ivo Pletikosic wrote:
$data = 'NANC';
if(is_numeric($data) $data 0) { die('Not OK'); }
Interesting problem, one of the first legit oddities I've seen since
joining the list. Anyway, in addition to your workaround, casting the
variable as an int also appears to result in
From: Kelly Hallman [EMAIL PROTECTED]
On Tue, 6 Jan 2004, Ivo Pletikosic wrote:
$data = 'NANC';
if(is_numeric($data) $data 0) { die('Not OK'); }
Interesting problem, one of the first legit oddities I've seen since
joining the list. Anyway, in addition to your workaround, casting the
7 matches
Mail list logo