diff options
author | Andrey Hristov <andrey@php.net> | 1999-09-04 19:09:37 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 1999-09-04 19:09:37 +0000 |
commit | 8e9cd1e4aeb2750a177cfc83e63341de34dd062c (patch) | |
tree | 02a626213bcebd855bde5307ee23712c7ddc8fae | |
parent | 3af5f84c9d2b270c7458469cfe725f1a2ba219a9 (diff) | |
download | php-git-8e9cd1e4aeb2750a177cfc83e63341de34dd062c.tar.gz |
Oops, don't need those commented out blocks.
-rw-r--r-- | ext/wddx/wddx.c | 27 |
1 files changed, 0 insertions, 27 deletions
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) { |