Edit report at http://pear.php.net/bugs/bug.php?id=18380&edit=1

ID: 18380
Updated by: kvz@php.net
Reported By: zombiitv at gmail dot com
Summary: Options error
-Status: Feedback
+Status: Bogus
Type: Bug
Package: System_Daemon
Operating System: Centos 5.5
Package Version: 1.0.0RC1
PHP Version: 5.3.5
Roadmap Versions:
New Comment:

-Status: Feedback
+Status: Bogus
Thank you for taking the time to write to us, but this is not
a bug.

0 stands for emergency: const LOG_EMERG = 0;

So it will only log emergency and higher, whereas:

const LOG_DEBUG = 7;

Previous Comments:

[2011-03-24 07:23:58] zombiitv

I'm running Centos 5.5, PHP 5.3.5. When I use 0, or '0', I do not get an
error, but I also do not get anything written in the log. The only way I
can get debug items to log is to use System_Daemon::LOG_DEBUG as the

Here are my options
$daemonOptions = array(
'appName' => 'app_name',
'appDir' => dirname(__FILE__),
'appDescription' => 'Auto Posting',
'authorName' => 'Dan G',
'authorEmail' => 'dan@',
'sysMaxExecutionTime' => '0',
'sysMaxInputTime' => '0',
'sysMemoryLimit' => '1024M',
'appRunAsGID' => 100,
'appRunAsUID' => 100,
'appDir' => '/home/......',
'appExecutable' => 'app_name.php',
'logVerbosity' => System_Daemon::LOG_DEBUG,
'logFilePosition' => true,
'logTrimAppDir' => false,



[2011-03-21 09:44:32] kvz

-Status: Open
+Status: Feedback
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PEAR.

Hi Dan,

I tried the logparser.php example with:
- no logVerbosity option
- numeric logVerbosity option
- constant logVerbosity

But was unable to reproduce any error?


[2011-03-21 05:33:10] zombiitv

'logVerbosity' requires a type in the Daemon class however, I was not
able to get the daemon to start when I used a number, I ended up using

'logVerbosity' => System_daemon::LOG_DEBUG


Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
postedMay 25, '11 at 9:41a
activeMay 25, '11 at 9:41a

1 user in discussion

Kvz: 1 post



site design / logo © 2022 Grokbase