mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
Unfix, it has too strong effects
This commit is contained in:
parent
ce29cb297e
commit
d68f53e94e
1 changed files with 2 additions and 0 deletions
|
@ -1047,8 +1047,10 @@ void zend_do_return(znode *expr, int do_end_vparse CLS_DC)
|
||||||
} else {
|
} else {
|
||||||
zend_do_end_variable_parse(BP_VAR_R, 0 CLS_CC);
|
zend_do_end_variable_parse(BP_VAR_R, 0 CLS_CC);
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
} else if (expr && CG(active_op_array)->return_reference) {
|
} else if (expr && CG(active_op_array)->return_reference) {
|
||||||
zend_error(E_COMPILE_ERROR, "Only variables may be returned by reference");
|
zend_error(E_COMPILE_ERROR, "Only variables may be returned by reference");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ZTS
|
#ifdef ZTS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue