]> granicus.if.org Git - php/commitdiff
Oops, don't need those commented out blocks.
authorAndrey Hristov <andrey@php.net>
Sat, 4 Sep 1999 19:09:37 +0000 (19:09 +0000)
committerAndrey Hristov <andrey@php.net>
Sat, 4 Sep 1999 19:09:37 +0000 (19:09 +0000)
ext/wddx/wddx.c

index c7d61474bdc0f409d7352add84a7f37d9fd02799..f9b90a6f1269a9a44f56aa31d8abb6039afc786e 100644 (file)
@@ -767,19 +767,6 @@ PHP_FUNCTION(wddx_packet_end)
                WRONG_PARAM_COUNT;
        }
 
-/*     if (packet_id->type != IS_RESOURCE)
-          {
-                  zend_error(E_WARNING, "Invalid packet ID in call to wddx_packet_end");
-                  return;
-          }
-          id = packet_id->value.lval;
-          packet = zend_list_find(id, &type);
-          if (type!=le_wddx) {
-                  zend_error(E_WARNING, "%d is not a valid WDDX packet id", id);
-                  RETURN_FALSE;
-          }
-    */
-       
        ZEND_FETCH_RESOURCE(packet, wddx_packet *, packet_id, -1, "WDDX packet ID", le_wddx);
                        
        _php_wddx_add_chunk(packet, WDDX_STRUCT_E);     
@@ -818,20 +805,6 @@ PHP_FUNCTION(wddx_add_vars)
        
        packet_id = args[0];
 
-       /*      
-       if (packet_id->type != IS_RESOURCE)
-       {
-               zend_error(E_WARNING, "Invalid packet ID in call to wddx_add_vars");
-               return;
-       }
-       id = packet_id->value.lval;
-       packet = zend_list_find(id, &type);
-       if (type!=le_wddx) {
-               zend_error(E_WARNING, "%d is not a valid WDDX packet id", id);
-               RETURN_FALSE;
-       }
-       */
-
        packet = (wddx_packet *)zend_fetch_resource(packet_id, -1, "WDDX packet ID", le_wddx);
        if (!packet)
        {