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

-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to