From 2f1c4064f8fd971166df3099729e74e0ecb5d6bc Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Tue, 30 Oct 2012 11:08:14 +0800 Subject: Fixed bug #63389 (Missing context check on libxml_set_streams_context() causes memleak) Simply change the expect parameter type, the valid of the resource will be checked in using time. --- ext/libxml/libxml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/libxml/libxml.c') diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index a17847868a..788736e756 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -699,7 +699,7 @@ static PHP_FUNCTION(libxml_set_streams_context) { zval *arg; - if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &arg) == FAILURE) { + if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &arg) == FAILURE) { return; } if (LIBXML(stream_context)) { -- cgit v1.2.1