#25665 [Opn->Asn]: var_dump/print_r hang on NaN and INF
| From: | sniper@php.net | Date: | Fri, 26 Sep 2003 09:46:38 +0000 |
| Subject: | #25665 [Opn->Asn]: var_dump/print_r hang on NaN and INF | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-48130@lists.php.net to get a copy of this message | ||
ID: 25665
Updated by: sniper@php.net
Reported By: eru@php.net
-Status: Open
+Status: Assigned
-Bug Type: Variables related
+Bug Type: *General Issues
-Operating System: Linux RH 9
+Operating System: *
-PHP Version: 4CVS-2003-09-25 (stable)
+PHP Version: 4CVS, 5CVS
-Assigned To:
+Assigned To: helly
New Comment:
It's the ap_php_cvt() which ends up in endless loop since it can't
handle infinite numbers at all. In PHP 4.2.3 the output
of var_dump(log(0)); is float(-INF)..
Marcus..you broke this, fix it.
Previous Comments:
------------------------------------------------------------------------
[2003-09-25 23:21:04] eru@php.net
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 this bug report at http://bugs.php.net/?id=25665&edit=1