Should the engine be able to pass variables by reference of userland functions
| From: | G. P. B. | Date: | Wed, 19 Oct 2022 14:27:33 +0000 |
| Subject: | Should the engine be able to pass variables by reference of userland functions | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-118847@lists.php.net to get a copy of this message | ||
Hello internals,
While working on cleaning up the FCI/FCC API I stumbled upon the
zend_fcall_info_args_ex()
function.
This function allows the engine to pass "variables" to userland functions
that expect a by-ref parameter.
This is currently only used within php-src in PDO when calling the
constructor of classes where the result of a statement should be stored in
PDO::FETCH_CLASS mode.
I am wondering if this makes any sense to continue support in general, and
thus in this specific case. As every other engine call to userland function
passes by value.
A PR of this change is located:
https://github.com/php/php-src/pull/9725/files
What are your opinions?
Best regards,
George P. Banyard