We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 096938f commit 7099342Copy full SHA for 7099342
Zend/tests/pipe_operator/oss_fuzz_439125710.phpt
@@ -0,0 +1,8 @@
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
Zend/zend_compile.c
@@ -3365,7 +3365,7 @@ static void zend_compile_list_assign(
3365
3366
static void zend_ensure_writable_variable(const zend_ast *ast) /* {{{ */
3367
{
3368
- if (ast->kind == ZEND_AST_CALL) {
+ if (ast->kind == ZEND_AST_CALL || ast->kind == ZEND_AST_PIPE) {
3369
zend_error_noreturn(E_COMPILE_ERROR, "Can't use function return value in write context");
3370
}
3371
if (
0 commit comments