ID: 14750
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Reproducible crash
Operating System: FreeBSD 4.4-RELEASE #0
PHP Version: 4.1.1
New Comment:

And what about CGI (command line)?

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

[2001-12-29 03:43:52] [EMAIL PROTECTED]

This works, if it's alone on the page. 
exit((string)"0.1");

and this one works too:
echo(34);
exit();

But this one doesn't:
echo(3.5);
exit((string)"0.1");

nor this:
echo(22.3);
exit();

:-(



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

[2001-12-29 03:24:05] [EMAIL PROTECTED]

Do you have the same problem with a CGI from the command line?

Does exit((string)"0.1"); help you?

Feedback.

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

[2001-12-29 00:30:30] [EMAIL PROTECTED]

We upgrated to the latest PHP and still getting these errors on ANY php page that uses 
decimals and EXIT. 

The shortest sample script, that DOES reproduce the bug:
exit(0.1);

The following will NOT give error: 
exit(TEST);

Since the PHP upgrade, our problem got worse. Now 8 out of 10 refresh results in "The 
page cannot be displayed"
Most importantly, the first time the page is hit, it is a 100% error. 

Please HELP ...---...---...--- 

/var/log/messages:
Dec  6 16:07:17 julian /kernel: pid 38937 (httpd), uid 65534: exited on signal 8

Apache error log:
[Thu Dec  6 16:07:17 2001] [notice] child pid 38937 exit signal Floating point 
exception
(8)

Original bug:
http://bugs.php.net/bug.php?id=14366

Here is some more info.

Backtrace data:
Program received signal SIGFPE, Arithmetic exception.
0x28162f71 in strtod () from /usr/lib/libc.so.4
(gdb) b
Breakpoint 1 at 0x28162f71
(gdb) backtrace
#0  0x28162f71 in strtod () from /usr/lib/libc.so.4
#1  0x281ecfec in lex_scan (zendlval=0xbfbfd9d4) at zend_language_scanner.c:4123
#2  0x281ce73c in zendlex (zendlval=0xbfbfd9d0) at zend_compile.c:2344
#3  0x281c5d38 in zendparse () at zend_language_parser.c:1869
#4  0x281eaf61 in compile_file (file_handle=0xbfbff93c, type=2) at 
zend_language_scanner.c:3036
#5  0x281e2542 in zend_execute_scripts (type=8, file_count=3) at zend.c:749
#6  0x281f3fdc in php_execute_script (primary_file=0xbfbff93c) at main.c:1206
#7  0x281f07d6 in apache_php_module_main (r=0x815b034, display_source_mode=0) at 
sapi_apache.c:89
#8  0x281f11b6 in send_php (r=0x815b034, display_source_mode=0, filename=0x0) at 
mod_php4.c:536
#9  0x281f11f2 in send_parsed_php (r=0x815b034) at mod_php4.c:547
#10 0x806b239 in ap_invoke_handler ()
#11 0x807f940 in process_request_internal ()
#12 0x807f9aa in ap_process_request ()
#13 0x8076977 in child_main ()
#14 0x8076bfc in make_child ()
#15 0x8076cae in startup_children ()
#16 0x80772bc in standalone_main ()
#17 0x8077ad4 in main ()
#18 0x804ee5d in _start ()


System:  FreeBSD 4.4-RELEASE #0
 './configure' '--with-mysql=/usr/local/mysql' '--with-apache=../apache' 
'--enable-track-vars' '--with-gettext' '--with-imap=../imap' '--with-ldap=/usr/local'

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



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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to