diff options
Diffstat (limited to 'ext/xmlrpc/xmlrpc-epi-php.c')
-rw-r--r-- | ext/xmlrpc/xmlrpc-epi-php.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/xmlrpc/xmlrpc-epi-php.c b/ext/xmlrpc/xmlrpc-epi-php.c index ea0d3c27ec..9378529013 100644 --- a/ext/xmlrpc/xmlrpc-epi-php.c +++ b/ext/xmlrpc/xmlrpc-epi-php.c @@ -281,7 +281,9 @@ static void destroy_server_data(xmlrpc_server_data *server TSRMLS_DC) static void xmlrpc_server_destructor(zend_resource *rsrc TSRMLS_DC) { if (rsrc && rsrc->ptr) { + rsrc->gc.refcount++; destroy_server_data((xmlrpc_server_data*) rsrc->ptr TSRMLS_CC); + rsrc->gc.refcount--; } } |