Re: [PHP-DEV] SIGFPE, FreeBSD and some PHP math functions

2001-03-12 Thread Dan Kalowsky
Hrm, I was under the impression that this was only a problem really for some of the FreeBSD 3.2 installations, and FreeBSD 4.1, but none of the others. I have yet to see it occur on FreeBSD 4.2. Although I believe Sascha looked into this awhile back, found an area of change, and asked for com

Re: [PHP-DEV] SIGFPE, FreeBSD and some PHP math functions

2001-03-11 Thread Andi Gutmans
Did you see the #ifdef __FreeBSD__ in zend.c? It prevents the SIGFPE if I remember correctly, when we lose precision on FreeBSD. Maybe this mask can also fix the problems you have of not crashing. I can't check out the man page right now beause I don't have access to FreeBSD but it might be doab

[PHP-DEV] SIGFPE, FreeBSD and some PHP math functions

2001-03-11 Thread Alexander Feldman
Hello, There is a bunch of mathematical functions that can generate core dump on FreeBSD 3.4 (and on a whole group of other UNIX clones). Take for example the following PHP script: or and so on... Obviously we should fix this behavior as there should not be a way for a PHP script to crash