mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Support for closures
This commit is contained in:
parent
47e6c5d017
commit
833a2295d1
17 changed files with 506 additions and 5 deletions
|
@ -1420,6 +1420,7 @@ PHP_FUNCTION(mysqli_set_local_infile_handler)
|
|||
efree(callback_name);
|
||||
RETURN_FALSE;
|
||||
}
|
||||
efree(callback_name);
|
||||
|
||||
/* save callback function */
|
||||
if (!mysql->li_read) {
|
||||
|
@ -1427,7 +1428,7 @@ PHP_FUNCTION(mysqli_set_local_infile_handler)
|
|||
} else {
|
||||
zval_dtor(mysql->li_read);
|
||||
}
|
||||
ZVAL_STRING(mysql->li_read, callback_name, 0);
|
||||
ZVAL_ZVAL(mysql->li_read, callback_func, 1, 0);
|
||||
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue