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-- ReflectionGenerator::getTrace() --FILE-- <?php function foo() { yield 1; } $..
Decoded Output download
--TEST--
ReflectionGenerator::getTrace()
--FILE--
<?php
function foo()
{
yield 1;
}
$g = foo();
$r = new ReflectionGenerator($g);
$g->next();
try {
$r->getTrace();
} catch (ReflectionException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Cannot fetch information from a terminated Generator
Did this file decode correctly?
Original Code
--TEST--
ReflectionGenerator::getTrace()
--FILE--
<?php
function foo()
{
yield 1;
}
$g = foo();
$r = new ReflectionGenerator($g);
$g->next();
try {
$r->getTrace();
} catch (ReflectionException $e) {
echo $e->getMessage();
}
?>
--EXPECT--
Cannot fetch information from a terminated Generator
Function Calls
None |
Stats
MD5 | a8c7655be02eecf04b9e94c6dac216c1 |
Eval Count | 0 |
Decode Time | 102 ms |