- Fixed a crash when sending a non-variable expression to a runtime-bound function

that expected a reference.
This commit is contained in:
Zeev Suraski 2000-03-24 23:51:34 +00:00
parent 7b02e9fc35
commit 5bdd53972f

View File

@ -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)) {