Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #74039: is_infinite(-INF) returns false --FILE-- <?php var_dump(is_finite(IN..

Decoded Output download

--TEST--
Bug #74039: is_infinite(-INF) returns false
--FILE--
<?php

var_dump(is_finite(INF));
var_dump(is_infinite(INF));
var_dump(is_nan(INF));

var_dump(is_finite(-INF));
var_dump(is_infinite(-INF));
var_dump(is_nan(-INF));

var_dump(is_finite(NAN));
var_dump(is_infinite(NAN));
var_dump(is_nan(NAN));

?>
--EXPECT--
bool(false)
bool(true)
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
bool(false)
bool(true)

Did this file decode correctly?

Original Code

--TEST--
Bug #74039: is_infinite(-INF) returns false
--FILE--
<?php

var_dump(is_finite(INF));
var_dump(is_infinite(INF));
var_dump(is_nan(INF));

var_dump(is_finite(-INF));
var_dump(is_infinite(-INF));
var_dump(is_nan(-INF));

var_dump(is_finite(NAN));
var_dump(is_infinite(NAN));
var_dump(is_nan(NAN));

?>
--EXPECT--
bool(false)
bool(true)
bool(false)
bool(false)
bool(true)
bool(false)
bool(false)
bool(false)
bool(true)

Function Calls

None

Variables

None

Stats

MD5 d8db69ed9fe52d0ead807a1d2d00523a
Eval Count 0
Decode Time 88 ms