Skip to content

Commit 6dd99ff

Browse files
c9snikic
authored andcommitted
Remove function_table var from the caller
function_table var is not used in call_user_function macro anymore hence replace the usage with NULL
1 parent 37425b5 commit 6dd99ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: ibase_events.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ static isc_callback _php_ibase_callback(ibase_event *event, /* {{{ */
232232
}
233233

234234
/* call the callback provided by the user */
235-
if (SUCCESS != call_user_function(EG(function_table), NULL,
235+
if (SUCCESS != call_user_function(NULL, NULL,
236236
&event->callback, &return_value, 2, args)) {
237237
_php_ibase_module_error("Error calling callback %s", Z_STRVAL(event->callback));
238238
break;

Diff for: php_ibase_udf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ static void call_php(char *name, PARAMDSC *r, int argc, PARAMDSC **argv)
285285
LOCK();
286286

287287
/* now call the function */
288-
if (FAILURE == call_user_function(EG(function_table), NULL,
288+
if (FAILURE == call_user_function(NULL, NULL,
289289
&callback, &return_value, argc, args)) {
290290
UNLOCK();
291291
break;

0 commit comments

Comments
 (0)