File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ PHP NEWS
10
10
. The report_memleaks INI directive has been deprecated. (alexandre-daubois)
11
11
. Constant redeclaration is deprecated and this behavior will trigger an
12
12
error in PHP 9. (alexandre-daubois)
13
+ . Fixed OSS-Fuzz #439125710 (Pipe cannot be used in write context).
14
+ (nielsdos)
13
15
14
16
- ODBC:
15
17
. Remove ODBCVER and assume ODBC 3.5. (Calvin Buckley)
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ OSS-Fuzz #439125710 (Pipe cannot be used in write context)
3
+ --FILE--
4
+ <?php
5
+ list (y|>y)=y;
6
+ ?>
7
+ --EXPECTF--
8
+ Fatal error: Can't use function return value in write context in %s on line %d
Original file line number Diff line number Diff line change @@ -3365,7 +3365,7 @@ static void zend_compile_list_assign(
3365
3365
3366
3366
static void zend_ensure_writable_variable (const zend_ast * ast ) /* {{{ */
3367
3367
{
3368
- if (ast -> kind == ZEND_AST_CALL ) {
3368
+ if (ast -> kind == ZEND_AST_CALL || ast -> kind == ZEND_AST_PIPE ) {
3369
3369
zend_error_noreturn (E_COMPILE_ERROR , "Can't use function return value in write context" );
3370
3370
}
3371
3371
if (
You can’t perform that action at this time.
0 commit comments