diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-03-05 11:10:52 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-03-05 11:10:52 +0400 |
| commit | 040dea8b82a00083b3975351271f34f3775d9a60 (patch) | |
| tree | 0352d30dc79148003cda60a84adbb118ed153987 /ext/standard/basic_functions.c | |
| parent | 19670c2bbcd5fc1339e160929cc81db3ae940392 (diff) | |
| download | php-git-040dea8b82a00083b3975351271f34f3775d9a60.tar.gz | |
Arguments taken by internal functions using zend_parse_parameters() with "+" and "*" specifications must not be deallocated anymore.
Diffstat (limited to 'ext/standard/basic_functions.c')
| -rw-r--r-- | ext/standard/basic_functions.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 53d49767bd..48c1469701 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4785,10 +4785,6 @@ PHP_FUNCTION(call_user_func) if (zend_call_function(&fci, &fci_cache TSRMLS_CC) == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { COPY_PZVAL_TO_ZVAL(*return_value, &retval); } - - if (fci.params) { - efree(fci.params); - } } /* }}} */ @@ -4832,9 +4828,6 @@ PHP_FUNCTION(call_user_method) Z_TYPE_P(object) != IS_STRING ) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Second argument is not an object or class name"); - if (params) { - efree(params); - } RETURN_FALSE; } @@ -4847,9 +4840,6 @@ PHP_FUNCTION(call_user_method) } else { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to call %s()", Z_STRVAL_P(callback)); } - if (n_params) { - efree(params); - } } /* }}} */ @@ -4925,10 +4915,6 @@ PHP_FUNCTION(forward_static_call) if (zend_call_function(&fci, &fci_cache TSRMLS_CC) == SUCCESS && Z_TYPE(retval) != IS_UNDEF) { COPY_PZVAL_TO_ZVAL(*return_value, &retval); } - - if (fci.params) { - efree(fci.params); - } } /* }}} */ |
