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

ID: 18070
Updated by: kvz@php.net
Reported By: yousan at l2tp dot org
Summary: Show a type of php error.
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: System_Daemon
Operating System: FreeBSD 8.1-R
Package Version: 0.10.3
PHP Version: 5.3.3
-Assigned To:
+Assigned To: kvz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: kvz
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Thanks for this Youichi,

Fixed:
https://github.com/kvz/system_daemon/commit/1acd4d786adb092042b4aadcc8b411
96f30230fd


Previous Comments:
------------------------------------------------------------------------

[2010-11-18 11:19:20] yousan

Added #patch
bug:18070;patch:modifies-php-error-string;revision:1290079160;.

------------------------------------------------------------------------

[2010-11-18 11:17:13] yousan

Description:
------------
When a php error happens, the daemon logs it as "[PHP Error]" message.
I want to divide the problems what problem stops the daemon. I need
*real* error message.
If i can see the PHP error is real error or warning, then I can passthru
many warnings.


I appreciate this System_Daemon package. This helps me, and makes me
happy.

Test script:
---------------
require_once('System/Daemon.php');
require_once('Log.php');
$log = Log::singleton('syslog', 'LOG_USER', 'test');
System_Daemon::setOption("appName", 'test');
System_Daemon::setOption('logFilePosition', true);
System_Daemon::setOption('usePEARLogInstance', $log);
System_Daemon::start();
usleep('hogehoge');


Actual result:
--------------
Nov 18 19:02:44 tyler test[16445]: [PHP Warning] usleep() expects
parameter 1 to be long, string given

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 5, '10 at 2:08p
activeDec 5, '10 at 2:08p
posts1
users1
websitepear.php.net

1 user in discussion

Kvz: 1 post

People

Translate

site design / logo © 2022 Grokbase