diff options
Diffstat (limited to 'ext/wddx/wddx.c')
| -rw-r--r-- | ext/wddx/wddx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 6e0916b13a..4ae53df63e 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -823,7 +823,7 @@ PHP_FUNCTION(wddx_packet_end) WRONG_PARAM_COUNT; } - ZEND_FETCH_RESOURCE(packet, wddx_packet *, packet_id, -1, "WDDX packet ID", le_wddx); + ZEND_FETCH_RESOURCE(packet, wddx_packet *, &packet_id, -1, "WDDX packet ID", le_wddx); _php_wddx_add_chunk(packet, WDDX_STRUCT_E); @@ -861,7 +861,7 @@ PHP_FUNCTION(wddx_add_vars) packet_id = args[0]; - packet = (wddx_packet *)zend_fetch_resource(packet_id, -1, "WDDX packet ID", le_wddx); + packet = (wddx_packet *)zend_fetch_resource(&packet_id, -1, "WDDX packet ID", le_wddx); if (!packet) { efree(args); |
