summaryrefslogtreecommitdiff
path: root/Zend/tests/increment_function_return_error.phpt
blob: 329cc83b777d22eb1479e63f9ebb19f81e75224b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
It's not possible to increment the return value of a function
--FILE--
<?php

function test() {
    return 42;
}

++test();

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