📄 Viewing: increment_function_return_error.phpt

--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

🌑 DarkStealth — WP Plugin Edition

Directory: /usr/src/php-7.4.23/Zend/tests