mirror of
https://github.com/php/php-src.git
synced 2025-01-08 20:17:28 +08:00
13 lines
258 B
PHP
13 lines
258 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--
|
|
|
|
Strict Standards: Only variables should be passed by reference in %s on line %d
|
|
int(2)
|