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 #78220 (Can't access OneDrive folder) --SKIPIF-- <?php if (substr(PHP_OS, 0, ..
Decoded Output download
--TEST--
Bug #78220 (Can't access OneDrive folder)
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
?>
--FILE--
<?php
$onedrive_dirs = array_unique([getenv('OneDrive'), getenv('OneDriveCommercial')]);
foreach ($onedrive_dirs as $dir) {
if ($dir && scandir($dir) === FALSE) {
echo "can't scan $dir
";
}
}
?>
--EXPECT--
Did this file decode correctly?
Original Code
--TEST--
Bug #78220 (Can't access OneDrive folder)
--SKIPIF--
<?php
if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
?>
--FILE--
<?php
$onedrive_dirs = array_unique([getenv('OneDrive'), getenv('OneDriveCommercial')]);
foreach ($onedrive_dirs as $dir) {
if ($dir && scandir($dir) === FALSE) {
echo "can't scan $dir\n";
}
}
?>
--EXPECT--
Function Calls
None |
Stats
MD5 | a2932c2bb55982f15bad44bb6746e41b |
Eval Count | 0 |
Decode Time | 81 ms |