ID: 10715
Updated by: andy
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Math related
Operating System: Debian GNU/Linux
PHP Version: 4.0.5
New Comment:

I believe this is probably because the negative sign is
stripped from -0, so the variable just reads 0 (which is an
integer.)  Can anybody else verify this?

Previous Comments:
------------------------------------------------------------------------

[2001-05-07 15:04:22] [EMAIL PROTECTED]

$number = -0;
        if (is_integer($number) == true) 
                {
    echo "number is an integer";
        }
        else {
            echo "number is not an integer";
        }

/* -0 just generally works as a number it probably shouldn't */ 

------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=10715&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to