summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2008-08-02 04:46:07 +0000
committerFelipe Pena <felipe@php.net>2008-08-02 04:46:07 +0000
commite304515ddb434bb887c9d93cf0b4dd30a2ed94e4 (patch)
tree803fd9e69205be8781246a095f7f9c2b6d0be66d /ext/pcre/php_pcre.c
parent11bc1de7706fefe0558b2a2ddb071082ca87ae2d (diff)
downloadphp-git-e304515ddb434bb887c9d93cf0b4dd30a2ed94e4.tar.gz
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 0192ebfafa..0e15793475 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -1315,7 +1315,7 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_callabl
if (Z_TYPE_PP(replace) != IS_ARRAY && (Z_TYPE_PP(replace) != IS_OBJECT || !is_callable_replace))
convert_to_string_ex(replace);
if (is_callable_replace) {
- if (!zend_is_callable(*replace, 0, &callback_name)) {
+ if (!zend_is_callable(*replace, 0, &callback_name TSRMLS_CC)) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Requires argument 2, '%s', to be a valid callback", callback_name);
efree(callback_name);
*return_value = **subject;