projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- byebye leaks
[m6w6/ext-http]
/
http.c
diff --git
a/http.c
b/http.c
index 3b0588719324a8140363227e023e543f47552643..192834be53f9476a16060641f9869bddaf8e9fbd 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-240,9
+240,19
@@
PHP_RINIT_FUNCTION(http)
}
/* }}} */
}
/* }}} */
+static int cleanup_statics(void *p TSRMLS_DC)
+{
+ zval_dtor(*(zval **)p);
+ return 0;
+}
+
/* {{{ PHP_RSHUTDOWN_FUNCTION */
PHP_RSHUTDOWN_FUNCTION(http)
{
/* {{{ PHP_RSHUTDOWN_FUNCTION */
PHP_RSHUTDOWN_FUNCTION(http)
{
+ /* ZE kludge */
+#ifdef ZEND_ENGINE_2
+ zend_hash_apply(http_response_object_ce->static_members, cleanup_statics TSRMLS_CC);
+#endif
http_globals_free(HTTP_GLOBALS);
return SUCCESS;
}
http_globals_free(HTTP_GLOBALS);
return SUCCESS;
}