ID: 25949 User updated by: alefor at gmx dot de Reported By: alefor at gmx dot de Status: Open Bug Type: Scripting Engine problem Operating System: Debian/unstable r3.01 GNU/Linux PHP Version: 4.3.3 New Comment:
Simpler test code: var_dump((float)inf); Previous Comments: ------------------------------------------------------------------------ [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