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 | |
| parent | 11bc1de7706fefe0558b2a2ddb071082ca87ae2d (diff) | |
| download | php-git-e304515ddb434bb887c9d93cf0b4dd30a2ed94e4.tar.gz | |
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
Diffstat (limited to 'ext/interbase')
| -rw-r--r-- | ext/interbase/ibase_events.c | 2 | ||||
| -rw-r--r-- | ext/interbase/php_ibase_udf.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/ext/interbase/ibase_events.c b/ext/interbase/ibase_events.c index f5d303c2db..b4c204ba26 100644 --- a/ext/interbase/ibase_events.c +++ b/ext/interbase/ibase_events.c @@ -304,7 +304,7 @@ PHP_FUNCTION(ibase_set_event_handler) } /* get the callback */ - if (!zend_is_callable(*cb_arg, 0, NULL)) { + if (!zend_is_callable(*cb_arg, 0, NULL TSRMLS_CC)) { _php_ibase_module_error("Callback argument %s is not a callable function" TSRMLS_CC, Z_STRVAL_PP(cb_arg)); RETURN_FALSE; 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) { |
