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 /
Log /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
backtrace.phpt
1.6
KB
-rw-r--r--
composite.phpt
2.29
KB
-rw-r--r--
console.phpt
1.15
KB
-rw-r--r--
display.phpt
1.57
KB
-rw-r--r--
error_log.phpt
710
B
-rw-r--r--
extract-zend2.0.phpt
1.72
KB
-rw-r--r--
extract-zend2.2.phpt
1.67
KB
-rw-r--r--
factory.phpt
403
B
-rw-r--r--
file.phpt
651
B
-rw-r--r--
firebug.phpt
2.48
KB
-rw-r--r--
format.phpt
385
B
-rw-r--r--
levels.phpt
1.3
KB
-rw-r--r--
masks.phpt
941
B
-rw-r--r--
null.phpt
202
B
-rw-r--r--
priority.phpt
752
B
-rw-r--r--
singleton.phpt
431
B
-rw-r--r--
sql_ident.phpt
482
B
-rw-r--r--
sqlite.phpt
712
B
-rw-r--r--
syslog.phpt
221
B
-rw-r--r--
win-ob.phpt
2.64
KB
-rw-r--r--
win.phpt
2.6
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : composite.phpt
--TEST-- Log: Composite Handler --INI-- date.timezone=UTC --FILE-- <?php require_once 'Log.php'; function printOpenStates($children) { foreach ($children as $child) { $state = ($child->_opened) ? 'OPEN' : 'CLOSED'; echo "$child->_ident : $state\n"; } } function printIdents($children) { foreach ($children as $child) { echo "$child->_ident\n"; } } function testPriority($composite, $priority) { $name = Log::priorityToString($priority); $success = $composite->log($name, $priority); echo "$name : " . (($success) ? 'GOOD' : 'BAD') . "\n"; } /* Create three handlers with different priority masks. */ $conf = array('lineFormat' => '%2$s [%3$s] %4$s'); $children = array( Log::singleton('console', '', 'CONSOLE1', $conf), Log::singleton('console', '', 'CONSOLE2', $conf), Log::singleton('console', '', 'CONSOLE3', $conf) ); $children[0]->setMask(Log::MASK(PEAR_LOG_DEBUG)); $children[1]->setMask(Log::MASK(PEAR_LOG_INFO)); $children[2]->setMask(Log::MASK(PEAR_LOG_ERR)); $composite = Log::singleton('composite'); $composite->addChild($children[0]); $composite->addChild($children[1]); $composite->addChild($children[2]); /* Verify that all of the children are initially closed. */ printOpenStates($children); /* Verify that the composite handler's open() opens all of the children. */ $composite->open(); printOpenStates($children); /* Verify that the composite handler's close() closes all of the children. */ $composite->close(); printOpenStates($children); /* Verify the log results at different priorities. */ testPriority($composite, PEAR_LOG_DEBUG); printOpenStates($children); testPriority($composite, PEAR_LOG_INFO); printOpenStates($children); testPriority($composite, PEAR_LOG_ERR); printOpenStates($children); /* Verify that changing the ident affects all children. */ $composite->setIdent('IDENT'); printIdents($children); --EXPECT-- CONSOLE1 : CLOSED CONSOLE2 : CLOSED CONSOLE3 : CLOSED CONSOLE1 : OPEN CONSOLE2 : OPEN CONSOLE3 : OPEN CONSOLE1 : CLOSED CONSOLE2 : CLOSED CONSOLE3 : CLOSED CONSOLE1 [debug] debug debug : GOOD CONSOLE1 : OPEN CONSOLE2 : CLOSED CONSOLE3 : CLOSED CONSOLE2 [info] info info : GOOD CONSOLE1 : OPEN CONSOLE2 : OPEN CONSOLE3 : CLOSED CONSOLE3 [error] error error : GOOD CONSOLE1 : OPEN CONSOLE2 : OPEN CONSOLE3 : OPEN IDENT IDENT IDENT
Close