[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-doc
Subject: [PEAR-DOC] [PEAR-BUG] #317 [NEW]: Error in /manual/en/package.logging.log.examples.php
From: "platter at earthlink dot net" <pear-doc () lists ! php ! net>
Date: 2003-11-27 19:36:37
[Download RAW message or body]
From: platter at earthlink dot net
Operating system: N/A
PHP version: 4.3.3
PHP Bug Type: Documentation
Bug description: Error in /manual/en/package.logging.log.examples.php
Description:
------------
Example 28-1 says that the messages will be written into the file
user.log, when they actually will be written into /tmp/out1.log
Reproduce code:
---------------
<?php
require_once 'Log.php';
$conf = array('mode' => 0600, 'timeFormat' => '%X %x');
$log = &Log::singleton('file', '/tmp/out1.log', 'test1', $conf,
LOG_INFO);
for ($i = 0; $i < 12; $i++) {
$log->log("Foo: $i", LOG_INFO);
}
$log->close();
?>
Expected result:
----------------
Output to user.log (per the docs)
Actual result:
--------------
output to /tmp/out1.log (per the code)
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=317&edit=1
--
--
PEAR Documentation List Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic