Re: cvs: php-src /ext/standard basic_functions.c
| From: | Andi Gutmans | Date: | Sun, 28 Mar 2004 21:56:20 +0000 |
| Subject: | Re: cvs: php-src /ext/standard basic_functions.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-26835@lists.php.net to get a copy of this message | ||
Not sure on what platforms you expect the last #else to be reached but it would raise a sigfloatingpoint on FreeBSD. Dividing by zero does not seem like a good idea.
Andi
At 09:46 PM 3/28/2004 +0000, Marcus Boerger wrote:
#include "php_streams.h" @@ -957,9 +957,10 @@((php_uint32*)&val)[1] = PHP_DOUBLE_QUIET_NAN_HIGH; ((php_uint32*)&val)[0] = 0; return val;-#else- /* hope the target platform is ISO-C compliant */+#elif defined(HAVE_ATOF_ACCEPTS_NAN)return atof("NAN");+#else+ return 0.0/0.0;#endif