Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- next - ensure warning is received when passing an indirect temporary. --FILE-- <?..
Decoded Output download
--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)
Did this file decode correctly?
Original Code
--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)
Function Calls
f | 1 |
next | 1 |
Stats
MD5 | fd81ef7639df427e0c44e4f9b7ce6e72 |
Eval Count | 0 |
Decode Time | 83 ms |