mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
- Fixed a crash when sending a non-variable expression to a runtime-bound function
that expected a reference.
This commit is contained in:
parent
7b02e9fc35
commit
5bdd53972f
@ -1756,6 +1756,10 @@ send_by_ref:
|
||||
zval *varptr;
|
||||
varptr_ptr = get_zval_ptr_ptr(&opline->op1, Ts, BP_VAR_W);
|
||||
|
||||
if (!varptr_ptr) {
|
||||
zend_error(E_ERROR, "Only variables can be passed by reference");
|
||||
}
|
||||
|
||||
varptr = *varptr_ptr;
|
||||
|
||||
if (!PZVAL_IS_REF(varptr)) {
|
||||
|
Loading…
Reference in New Issue
Block a user