php-src/ext/standard/tests/array/array_next_error1.phpt
Nikita Popov 8d00385871 Reclassify E_STRICT notices
Per RFC https://wiki.php.net/rfc/reclassify_e_strict

While reviewing this, found that there are still three E_STRICTs
left in libraries - need to discuss those.
2015-04-01 11:17:55 +02:00

13 lines
No EOL
248 B
PHP

--TEST--
next - ensure warning is received when passing an indirect temporary.
--FILE--
<?php
function f() {
return array(1, 2);
}
var_dump(next(f()));
?>
--EXPECTF--
Notice: Only variables should be passed by reference in %s on line %d
int(2)