iliaa Sat May 5 15:14:56 2007 UTC Added files: (Branch: PHP_5_2) /php-src/ext/wddx/tests bug41283.phpt
Modified files: /php-src NEWS /php-src/ext/wddx wddx.c Log: Fixed bug #41283 (Bug with serializing array key that are doubles or floats). http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.680&r2=1.2027.2.547.2.681&diff_format=u Index: php-src/NEWS diff -u php-src/NEWS:1.2027.2.547.2.680 php-src/NEWS:1.2027.2.547.2.681 --- php-src/NEWS:1.2027.2.547.2.680 Fri May 4 20:18:51 2007 +++ php-src/NEWS Sat May 5 15:14:56 2007 @@ -6,6 +6,8 @@ - Fixed altering $this via argument named "this". (Dmitry) - Fixed bug #41287 (Namespace functions don't allow xmlns defintion to be optional). (Rob) +- Fixed bug #41283 (Bug with serializing array key that are doubles or + floats). (Ilia) - Fixed bug #41257: (lookupNamespaceURI does not work as expected). (Rob) - Fixed bug #41097 (ext/soap returning associative array as indexed without using WSDL). (Dmitry) http://cvs.php.net/viewvc.cgi/php-src/ext/wddx/wddx.c?r1=1.119.2.10.2.15&r2=1.119.2.10.2.16&diff_format=u Index: php-src/ext/wddx/wddx.c diff -u php-src/ext/wddx/wddx.c:1.119.2.10.2.15 php-src/ext/wddx/wddx.c:1.119.2.10.2.16 --- php-src/ext/wddx/wddx.c:1.119.2.10.2.15 Sun Mar 4 04:38:43 2007 +++ php-src/ext/wddx/wddx.c Sat May 5 15:14:56 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: wddx.c,v 1.119.2.10.2.15 2007/03/04 04:38:43 stas Exp $ */ +/* $Id: wddx.c,v 1.119.2.10.2.16 2007/05/05 15:14:56 iliaa Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -984,6 +984,9 @@ goto bigint; } l = (long) d; + if (l != d) { + goto bigint; + } case IS_LONG: zend_hash_index_update(target_hash, l, &ent1->data, sizeof(zval *), NULL); break; http://cvs.php.net/viewvc.cgi/php-src/ext/wddx/tests/bug41283.phpt?view=markup&rev=1.1 Index: php-src/ext/wddx/tests/bug41283.phpt +++ php-src/ext/wddx/tests/bug41283.phpt -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php