iliaa Sat Dec 30 01:56:18 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/filter logical_filters.c
Log:
Fixes test #50
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/logical_filters.c?r1=1.1.2.18&r2=1.1.2.19&diff_format=u
Index: php-src/ext/filter/logical_filters.c
diff -u php-src/ext/filter/logical_filters.c:1.1.2.18
php-src/ext/filter/logical_filters.c:1.1.2.19
--- php-src/ext/filter/logical_filters.c:1.1.2.18 Tue Dec 26 09:16:24 2006
+++ php-src/ext/filter/logical_filters.c Sat Dec 30 01:56:18 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: logical_filters.c,v 1.1.2.18 2006/12/26 09:16:24 dmitry Exp $ */
+/* $Id: logical_filters.c,v 1.1.2.19 2006/12/30 01:56:18 iliaa Exp $ */
#include "php_filter.h"
#include "filter_private.h"
@@ -382,6 +382,9 @@
Z_DVAL_P(value) = lval;
break;
case IS_DOUBLE:
+ if ((!dval && p - num > 1 && strpbrk(num, "123456789"))
|| !zend_finite(dval)) {
+ goto error;
+ }
zval_dtor(value);
Z_TYPE_P(value) = IS_DOUBLE;
Z_DVAL_P(value) = dval;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php