ID: 28605 User updated by: tbp at poly dot polytechnique dot fr Reported By: tbp at poly dot polytechnique dot fr -Status: Feedback +Status: Open Bug Type: Math related Operating System: Compaq Tru64 UNIX v5.1 PHP Version: 4CVS-2004-06-01 (stable) New Comment:
<skip> gcc -IZend/ -I/Admin/SRC/Apache/php4-STABLE-200412122330/Zend/ -DPHP_ATOM_INC -I/Admin/SRC/Apache/php4-STABLE-200412122330/include -I/Admin/SRC/Apache/php4-STABLE-200412122330/main -I/Admin/SRC/Apache/php4-STABLE-200412122330 -I/Admin/SRC/Apache/php4-STABLE-200412122330/Zend -I/Local/include -I/Local/mysql/include/mysql -I/Local/pgsql/include -I/Admin/SRC/Apache/php4-STABLE-200412122330/ext/xml/expat -I/Admin/SRC/Apache/php4-STABLE-200412122330/TSRM -g -O2 -c /Admin/SRC/Apache/php4-STABLE-200412122330/Zend/zend_strtod.c -o Zend/zend_strtod.o && echo > Zend/zend_strtod.lo /Admin/SRC/Apache/php4-STABLE-200412122330/Zend/zend_strtod.c:235: error: parse error before "u_int32_t" /Admin/SRC/Apache/php4-STABLE-200412122330/Zend/zend_strtod.c:235: warning: no semicolon at end of struct or union /Admin/SRC/Apache/php4-STABLE-200412122330/Zend/zend_strtod.c:236: warning: data definition has no type or storage class /Admin/SRC/Apache/php4-STABLE-200412122330/Zend/zend_strtod.c:382: error: parse error before "u_int32_t" /Admin/SRC/Apache/php4-STABLE-200412122330/Zend/zend_strtod.c:382: warning: no semicolon at end of struct or union <skip> make: *** [Zend/zend_strtod.lo] Error 1 Previous Comments: ------------------------------------------------------------------------ [2004-12-12 23:45:17] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2004-07-19 17:59:57] tbp at poly dot polytechnique dot fr I have no solution. Since this issue does not disturb my applications for a moment I leave it as it is ------------------------------------------------------------------------ [2004-07-19 17:21:55] edreddy at gmail dot com I am able reproduce the same bug on Redhat Enterprise Linux Advanced Server 3.0 in php version-4.3.8. Is there any solution found so far. If so, please pass on to me ------------------------------------------------------------------------ [2004-07-11 22:48:01] tbp at poly dot polytechnique dot fr [EMAIL PROTECTED]:/Admin/SRC/Apache/php-4.3.7]# gdb sapi/cli/php GNU gdb 6.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "alphaev68-dec-osf5.1"... (gdb) run ext/standard/tests/math/bug21523.phpt Starting program: /Admin/SRC/Apache/php-4.3.7/sapi/cli/php ext/standard/tests/math/bug21523.phpt --TEST-- Bug #21523 number_format tries to allocate negative amount of memory --FILE-- warning: (Internal error: pc 0x12010bb14 in read in psymtab, but not in symtab.) Program received signal SIGINT, Interrupt. 0x000000012010bb14 in ap_php_cvt (arg=0, ndigits=78, decpt=0x11fff9ac8, sign=0x0, eflag=0, buf=0x11fff9ad0 '0' <repeats 80 times>) at /Admin/SRC/Apache/php-4.3.7/main/snprintf.c:317 317 fj = modf(fi / 10, &fi); (gdb) bt #0 0x000000012010bb14 in ap_php_cvt (arg=0, ndigits=78, decpt=0x11fff9ac8, sign=0x0, eflag=0, buf=0x11fff9ad0 '0' <repeats 80 times>) at /Admin/SRC/Apache/php-4.3.7/main/snprintf.c:317 warning: (Internal error: pc 0x12010b9b8 in read in psymtab, but not in symtab.) #1 0x000000012010b9b8 in ap_php_conv_fp (format=102 'f', num=0, add_dp=NO, precision=2768, is_negative=0x11fff9dc0, buf=0x11fff9bb1 "", len=0x11fff9ba8) at /Admin/SRC/Apache/php-4.3.7/main/snprintf.c:176 warning: (Internal error: pc 0x12010d88c in read in psymtab, but not in symtab.) #2 0x000000012010d88c in xbuf_format_converter (xbuf=0x11fff9e38, fmt=0x14002f659 "f", ap={__base = 0x11fff9eb8, __offset = 40}) at /Admin/SRC/Apache/php-4.3.7/main/spprintf.c:461 warning: (Internal error: pc 0x12010e048 in read in psymtab, but not in symtab.) #3 0x000000012010e048 in vspprintf (pbuf=0x11fff9f48, max_len=4831812308, format=0x14002f656 "%.*f", ap={__base = 0x11fff9eb8, __offset = 24}) at /Admin/SRC/Apache/php-4.3.7/main/spprintf.c:638 warning: (Internal error: pc 0x12010e110 in read in psymtab, but not in symtab.) #4 0x000000012010e110 in spprintf (pbuf=0x11fff9b1f, max_len=4831812308, format=0x11fff9ad6 '0' <repeats 74 times>) at /Admin/SRC/Apache/php-4.3.7/main/spprintf.c:658 warning: (Internal error: pc 0x1200ae738 in read in psymtab, but not in symtab.) #5 0x00000001200ae738 in _php_math_number_format (d=0, dec=536845880, dec_point=46 '.', thousand_sep=44 ',') at /Admin/SRC/Apache/php-4.3.7/ext/standard/math.c:1032 warning: (Internal error: pc 0x1200aeb68 in read in psymtab, but not in symtab.) #6 0x00000001200aeb68 in zif_number_format (ht=1074697176, return_value=0x1400e9398, this_ptr=0x11fff9ad6, return_value_used=0) at /Admin/SRC/Apache/php-4.3.7/ext/standard/math.c:1128 warning: (Internal error: pc 0x1201558d8 in read in psymtab, but not in symtab.) #7 0x00000001201558d8 in execute (op_array=0x7ff0000000000000) at /Admin/SRC/Apache/php-4.3.7/Zend/zend_execute.c:1635 Previous frame inner to this frame (corrupt stack?) (gdb) ------------------------------------------------------------------------ [2004-07-11 21:43:33] [EMAIL PROTECTED] run the single test like this: # gdb sapi/cli/php (gdb) run ext/standard/tests/math/bug21523.phpt And if/when it hangs, press ctrl+c and then type: (gdb) bt And paste output here. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/28605 -- Edit this bug report at http://bugs.php.net/?id=28605&edit=1