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-- Check for Yaf_Config_Ini with env --SKIPIF-- <?php if (!extension_loaded("yaf"))..
Decoded Output download
--TEST--
Check for Yaf_Config_Ini with env
--SKIPIF--
<?php
if (!extension_loaded("yaf")) print "skip";
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip seems windows doesnt support this');
}
?>
--INI--
yaf.directory=/foo/bar
yaf.use_namespace=0
--FILE--
<?php
putenv("FOO=bar");
define("FOO", "Dummy");
print_r(new Yaf_Config_Ini(
dirname(__FILE__) . "/simple.ini", "envtest"));
?>
--EXPECTF--
Yaf_Config_Ini Object
(
[readonly:protected] => 1
[config:protected] => Array
(
[env] => bar
[ini] => /foo/bar
[const] => Dummy
)
[filename:protected] => %s
)
Did this file decode correctly?
Original Code
--TEST--
Check for Yaf_Config_Ini with env
--SKIPIF--
<?php
if (!extension_loaded("yaf")) print "skip";
if (substr(PHP_OS, 0, 3) == 'WIN') {
die('skip seems windows doesnt support this');
}
?>
--INI--
yaf.directory=/foo/bar
yaf.use_namespace=0
--FILE--
<?php
putenv("FOO=bar");
define("FOO", "Dummy");
print_r(new Yaf_Config_Ini(
dirname(__FILE__) . "/simple.ini", "envtest"));
?>
--EXPECTF--
Yaf_Config_Ini Object
(
[readonly:protected] => 1
[config:protected] => Array
(
[env] => bar
[ini] => /foo/bar
[const] => Dummy
)
[filename:protected] => %s
)
Function Calls
extension_loaded | 1 |
Stats
MD5 | d4a7c8f3e4b9228c647b2169850544a1 |
Eval Count | 0 |
Decode Time | 112 ms |