From be031471889f2fbd01618ee13ceb2a33eedb6466 Mon Sep 17 00:00:00 2001 From: Shuhei Tanuma Date: Tue, 24 Jul 2012 12:15:55 +0900 Subject: [PATCH] stdio: fix unmatch cast --- php_uv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php_uv.c b/php_uv.c index e1c848d..038c9be 100644 --- a/php_uv.c +++ b/php_uv.c @@ -2222,10 +2222,9 @@ void static destruct_httpparser(zend_rsrc_list_entry *rsrc TSRMLS_DC) void static destruct_uv_stdio(zend_rsrc_list_entry *rsrc TSRMLS_DC) { - php_uv_stdio_t *obj = (http_parser *)rsrc->ptr; + php_uv_stdio_t *obj = (php_uv_stdio_t *)rsrc->ptr; if (obj->stream != NULL) { - //Z_DELREF_P(obj->stream); zval_ptr_dtor(&obj->stream); obj->stream = NULL; }