mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00

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.
13 lines
No EOL
248 B
PHP
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)
|