From: Andrey Hristov Date: Sat, 4 Sep 1999 19:09:37 +0000 (+0000) Subject: Oops, don't need those commented out blocks. X-Git-Tag: PRE_DELAYED_ARRAY_FETCH_PATCH~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e9cd1e4aeb2750a177cfc83e63341de34dd062c;p=php Oops, don't need those commented out blocks. --- diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index c7d61474bd..f9b90a6f12 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -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) {