Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Zend/tests/pipe_operator/oss_fuzz_439125710.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
--TEST--
OSS-Fuzz #439125710 (Pipe cannot be used in write context)
--FILE--
<?php
list(y|>y)=y;
?>
--EXPECTF--
Fatal error: Can't use function return value in write context in %s on line %d
2 changes: 1 addition & 1 deletion Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -3365,7 +3365,7 @@ static void zend_compile_list_assign(

static void zend_ensure_writable_variable(const zend_ast *ast) /* {{{ */
{
if (ast->kind == ZEND_AST_CALL) {
if (ast->kind == ZEND_AST_CALL || ast->kind == ZEND_AST_PIPE) {
zend_error_noreturn(E_COMPILE_ERROR, "Can't use function return value in write context");
}
if (
Expand Down