summaryrefslogtreecommitdiff
path: root/Zend/tests/assign_coalesce_004.phpt
blob: 51b9d2ff4be60d101ef54cae2db1c371630dfebe (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Coalesce assign (??=): Non-writable variable
--FILE--
<?php

function foo() { return 123; }
foo() ??= 456;

?>
--EXPECTF--
Fatal error: Can't use function return value in write context in %s on line %d