#25665 [NEW]: var_dump/print_r hang on NaN and INF
| From: | eru@php.net | Date: | Fri, 26 Sep 2003 03:21:04 +0000 |
| Subject: | #25665 [NEW]: var_dump/print_r hang on NaN and INF | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-48121@lists.php.net to get a copy of this message | ||
From: eru@php.net
Operating system: Linux RH 9
PHP version: 4CVS-2003-09-25 (stable)
PHP Bug Type: Variables related
Bug description: var_dump/print_r hang on NaN and INF
Description:
------------
Summary and reproducing code say all...
I tested it on a 4.3.0 and got
NAN
-INF
float(0.E+79)
float(-0.E+79)
which isn't correct on the var_dump behaviour either, but at least I
hadn't had a hanging program.
Reproduce code:
---------------
<?php
print_r(acos(1.01));
print_r(log(0));
var_dump(acos(1.01));
var_dump(log(0));
?>
Expected result:
----------------
Some output saying NaN and INF.
Actual result:
--------------
Nothing.
--
Edit bug report at http://bugs.php.net/?id=25665&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25665&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25665&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25665&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25665&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25665&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25665&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25665&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25665&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25665&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25665&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25665&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25665&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25665&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25665&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25665&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25665&r=float