diff options
author | Felipe Pena <felipe@php.net> | 2008-08-02 04:46:07 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-08-02 04:46:07 +0000 |
commit | e304515ddb434bb887c9d93cf0b4dd30a2ed94e4 (patch) | |
tree | 803fd9e69205be8781246a095f7f9c2b6d0be66d /ext/interbase/php_ibase_udf.c | |
parent | 11bc1de7706fefe0558b2a2ddb071082ca87ae2d (diff) | |
download | php-git-e304515ddb434bb887c9d93cf0b4dd30a2ed94e4.tar.gz |
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
Diffstat (limited to 'ext/interbase/php_ibase_udf.c')
-rw-r--r-- | ext/interbase/php_ibase_udf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/interbase/php_ibase_udf.c b/ext/interbase/php_ibase_udf.c index 4bdeb87dfb..3945d465b7 100644 --- a/ext/interbase/php_ibase_udf.c +++ b/ext/interbase/php_ibase_udf.c @@ -192,10 +192,14 @@ static void call_php(char *name, PARAMDSC *r, int argc, PARAMDSC **argv) INIT_ZVAL(callback); ZVAL_STRING(&callback,name,0); + LOCK(); + /* check if the requested function exists */ - if (!zend_is_callable(&callback, 0, NULL)) { + if (!zend_is_callable(&callback, 0, NULL TSRMLS_CC)) { break; } + + UNLOCK(); /* create the argument array */ for (i = 0; i < argc; ++i) { |