cvs: /php4/ext/wddx wddx.c
| From: | Andrey Zmievski | Date: | Fri, 23 Jul 1999 21:21:33 +0000 |
| Subject: | cvs: /php4/ext/wddx wddx.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-2647@lists.php.net to get a copy of this message | ||
andrey Fri Jul 23 17:21:33 1999 EDT
Modified files:
/php4/ext/wddx wddx.c
Log:
Fixed a bug in WDDX that occured when a number was passed in instead
of a variable name.
Index: php4/ext/wddx/wddx.c
diff -u php4/ext/wddx/wddx.c:1.1 php4/ext/wddx/wddx.c:1.2
--- php4/ext/wddx/wddx.c:1.1 Mon Jul 19 16:24:03 1999
+++ php4/ext/wddx/wddx.c Fri Jul 23 17:21:33 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: wddx.c,v 1.1 1999/07/19 20:24:03 andrey Exp $ */
+/* $Id: wddx.c,v 1.2 1999/07/23 21:21:33 andrey Exp $ */
#include "php.h"
#include "php_wddx.h"
@@ -696,6 +696,7 @@
_php_wddx_add_chunk(packet, WDDX_STRUCT_S);
for (i=0; i<argc; i++) {
+ convert_to_string(args[i]);
_php_wddx_add_var(packet, args[i]);
}
@@ -815,6 +816,7 @@
}
for (i=1; i<argc; i++) {
+ convert_to_string(args[i]);
_php_wddx_add_var(packet, args[i]);
}