Skip to content

Commit cdcd9a3

Browse files
committed
Merge branch 'pull-request/53' into php7
2 parents 10ca106 + ebc51a7 commit cdcd9a3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

emit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ y_write_object_callback (
722722
zend_string *str_key;
723723

724724
/* call the user function */
725-
if (FAILURE == call_user_function_ex(EG(function_table), NULL,
726-
callback, &zret, 1, argv, 0, NULL) ||
725+
if (FAILURE == call_user_function(EG(function_table), NULL,
726+
callback, &zret, 1, argv) ||
727727
Z_TYPE_P(&zret) == IS_UNDEF) {
728728
php_error_docref(NULL, E_WARNING,
729729
"Failed to apply callback for class '%s'"

parse.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ apply_filter(zval *zp, yaml_event_t event, HashTable *callbacks)
643643
ZVAL_LONG(&callback_args[2], 0);
644644

645645
/* call the user function */
646-
callback_result = call_user_function_ex(EG(function_table), NULL, callback, &retval, 3, callback_args, 0, NULL);
646+
callback_result = call_user_function(EG(function_table), NULL, callback, &retval, 3, callback_args);
647647

648648
/* cleanup our temp variables */
649649
zval_ptr_dtor(&callback_args[1]);
@@ -846,7 +846,7 @@ void eval_scalar_with_callbacks(yaml_event_t event,
846846
ZVAL_STRINGL(&argv[1], tag, strlen(tag));
847847
ZVAL_LONG(&argv[2], event.data.scalar.style);
848848

849-
if (FAILURE == call_user_function_ex(EG(function_table), NULL, callback, retval, 3, argv, 0, NULL) || Z_TYPE_P(retval) == IS_UNDEF) {
849+
if (FAILURE == call_user_function(EG(function_table), NULL, callback, retval, 3, argv) || Z_TYPE_P(retval) == IS_UNDEF) {
850850
php_error_docref(NULL, E_WARNING,
851851
"Failed to evaluate value for tag '%s'"
852852
" with user defined function", tag);
@@ -898,8 +898,8 @@ eval_timestamp(zval **zpp, const char *ts, size_t ts_len)
898898
ZVAL_STRINGL(&arg, ts, ts_len);
899899
argv[0] = arg;
900900

901-
if (FAILURE == call_user_function_ex(EG(function_table), NULL, func,
902-
&retval, 1, argv, 0, NULL) || Z_TYPE_P(&retval) == IS_UNDEF) {
901+
if (FAILURE == call_user_function(EG(function_table), NULL, func,
902+
&retval, 1, argv) || Z_TYPE_P(&retval) == IS_UNDEF) {
903903
php_error_docref(NULL, E_WARNING,
904904
"Failed to evaluate string '%s' as timestamp", ts);
905905
if (func != NULL) {

0 commit comments

Comments
 (0)