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-- Bug #78154: SEND_VAR_NO_REF does not always send reference --FILE-- <?php namesp..
Decoded Output download
--TEST--
Bug #78154: SEND_VAR_NO_REF does not always send reference
--FILE--
<?php
namespace {
try {
var_dump(similar_text('a', 'a', $c=0x44444444));
var_dump($c);
} catch (Throwable $e) {
echo "Exception: " . $e->getMessage() . "
";
}
}
namespace Foo {
try {
var_dump(similar_text('a', 'a', $d=0x44444444));
var_dump($d);
} catch (\Throwable $e) {
echo "Exception: " . $e->getMessage() . "
";
}
}
?>
--EXPECT--
Exception: similar_text(): Argument #3 ($percent) cannot be passed by reference
Exception: similar_text(): Argument #3 ($percent) cannot be passed by reference
Did this file decode correctly?
Original Code
--TEST--
Bug #78154: SEND_VAR_NO_REF does not always send reference
--FILE--
<?php
namespace {
try {
var_dump(similar_text('a', 'a', $c=0x44444444));
var_dump($c);
} catch (Throwable $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
}
namespace Foo {
try {
var_dump(similar_text('a', 'a', $d=0x44444444));
var_dump($d);
} catch (\Throwable $e) {
echo "Exception: " . $e->getMessage() . "\n";
}
}
?>
--EXPECT--
Exception: similar_text(): Argument #3 ($percent) cannot be passed by reference
Exception: similar_text(): Argument #3 ($percent) cannot be passed by reference
Function Calls
None |
Stats
MD5 | ae7aa4c326f05ac1a60f9604de874b9a |
Eval Count | 0 |
Decode Time | 75 ms |