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-- Test glob() function: ensure no platform difference --FILE-- <?php $path = __DIR_..
Decoded Output download
--TEST--
Test glob() function: ensure no platform difference
--FILE--
<?php
$path = __DIR__;
ini_set('open_basedir', '');
var_dump(glob("$path/*.none"));
var_dump(glob("$path/?.none"));
var_dump(glob("$path/*{hello,world}.none"));
var_dump(glob("$path/*/nothere"));
var_dump(glob("$path/[aoeu]*.none"));
var_dump(glob("$path/directly_not_exists"));
var_dump(empty(ini_get('open_basedir')));
?>
--EXPECT--
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
bool(true)
Did this file decode correctly?
Original Code
--TEST--
Test glob() function: ensure no platform difference
--FILE--
<?php
$path = __DIR__;
ini_set('open_basedir', '');
var_dump(glob("$path/*.none"));
var_dump(glob("$path/?.none"));
var_dump(glob("$path/*{hello,world}.none"));
var_dump(glob("$path/*/nothere"));
var_dump(glob("$path/[aoeu]*.none"));
var_dump(glob("$path/directly_not_exists"));
var_dump(empty(ini_get('open_basedir')));
?>
--EXPECT--
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
array(0) {
}
bool(true)
Function Calls
None |
Stats
MD5 | 0c2f7931e918a88f62e446db08e1dc80 |
Eval Count | 0 |
Decode Time | 82 ms |