[PHP-DEV] cvs: /php3/functions wddx_a.c From: Andrey Zmievski (zmievski <email protected>)
Date: 08/18/99

andrey Wed Aug 18 12:09:31 1999 EDT

  Modified files:
    /php3/functions wddx_a.c
  Log:
  Fixed crash on empty string.
  
  
Index: php3/functions/wddx_a.c
diff -u php3/functions/wddx_a.c:1.7 php3/functions/wddx_a.c:1.8
--- php3/functions/wddx_a.c:1.7 Thu Jun 3 06:48:17 1999
+++ php3/functions/wddx_a.c Wed Aug 18 12:09:31 1999
@@ -27,7 +27,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: wddx_a.c,v 1.7 1999/06/03 10:48:17 sas Exp $ */
+/* $Id: wddx_a.c,v 1.8 1999/08/18 16:09:31 andrey Exp $ */
 
 #include "php.h"
 #include "internal_functions.h"
@@ -836,6 +836,9 @@
                 WRONG_PARAM_COUNT;
         }
         
+ convert_to_string(packet);
+ if (packet->value.str.len == 0)
+ return;
         _php3_wddx_deserialize(packet, return_value);
 }
 /* }}} */

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>