ID:               25949
 Updated by:       [EMAIL PROTECTED]
 Reported By:      alefor at gmx dot de
-Status:           Open
+Status:           Closed
 Bug Type:         Scripting Engine problem
 Operating System: Debian/unstable r3.01 GNU/Linux
 PHP Version:      4.3.3
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


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

[2003-10-22 06:29:33] alefor at gmx dot de

Simpler test code: var_dump((float)inf);

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

[2003-10-22 06:17:42] alefor at gmx dot de

Description:
------------
var_dump a float with inf/nan value lead to an endless loop.
Same result for cli php and for apache module.
GDB backtrace follows, taken suspending the endless loop execution.
(gdb) bt
#0  0x0810bd85 in ap_php_cvt ()
#1  0x0810bfd6 in ap_php_ecvt ()
#2  0x0810c05d in ap_php_gcvt ()
#3  0x0810c86a in ap_php_gcvt ()
#4  0x0810ccd6 in vspprintf ()
#5  0x08108ef8 in php_printf ()
#6  0x080e7507 in php_var_dump ()
#7  0x080e77a5 in zif_var_dump ()
#8  0x081400e7 in execute ()
#9  0x08133349 in zend_execute_scripts ()
#10 0x0810b5fd in php_execute_script ()

ap_php_cvt family is in main/snprintf.c file.

Reproduce code:
---------------
$str = "inf ";
$f = (float)$str;
var_dump($f);

Expected result:
----------------
Don't know. Maybe "float(INF)" ?

Actual result:
--------------
Endless loop. No output.


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


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

Reply via email to