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 #76850 Exit code mangled by set locale/preg_match --SKIPIF-- <?php $l = s..
Decoded Output download
--TEST--
Bug #76850 Exit code mangled by set locale/preg_match
--SKIPIF--
<?php
$l = setlocale(LC_CTYPE, 0);
if ("C" == $l) {
die("skip need the current locale to be other than C");
}
?>
--FILE--
<?php
function foo()
{
$oldlocale = setlocale(LC_CTYPE, 0);
setlocale(LC_CTYPE, $oldlocale);
}
foo();
var_dump(preg_match('/./', "a"));
?>
--EXPECT--
int(1)
Did this file decode correctly?
Original Code
--TEST--
Bug #76850 Exit code mangled by set locale/preg_match
--SKIPIF--
<?php
$l = setlocale(LC_CTYPE, 0);
if ("C" == $l) {
die("skip need the current locale to be other than C");
}
?>
--FILE--
<?php
function foo()
{
$oldlocale = setlocale(LC_CTYPE, 0);
setlocale(LC_CTYPE, $oldlocale);
}
foo();
var_dump(preg_match('/./', "a"));
?>
--EXPECT--
int(1)
Function Calls
None |
Stats
MD5 | 2012e4782ab926e5644f1dd915efffb6 |
Eval Count | 0 |
Decode Time | 104 ms |