diff options
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) { |