]> granicus.if.org Git - php/commitdiff
Fixed a bug in WDDX that occured when a number was passed in instead
authorAndrey Hristov <andrey@php.net>
Fri, 23 Jul 1999 21:21:33 +0000 (21:21 +0000)
committerAndrey Hristov <andrey@php.net>
Fri, 23 Jul 1999 21:21:33 +0000 (21:21 +0000)
of a variable name.

ext/wddx/wddx.c

index 3fbc211bbb56d677fc4caafff5854f3e93ff8277..a14f4e3f0685dd0d78a28111093b8dd32247ca16 100644 (file)
@@ -696,6 +696,7 @@ PHP_FUNCTION(wddx_serialize_vars)
        _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 @@ PHP_FUNCTION(wddx_add_vars)
        }
                
        for (i=1; i<argc; i++) {
+               convert_to_string(args[i]);
                _php_wddx_add_var(packet, args[i]);
        }