Edit report at http://pear.php.net/bugs/bug.php?id=18659&edit=1
ID: 18659
Updated by: [email protected]
Reported By: petri dot laihonen at waponelineusa dot com
Summary: Fatal error during initial run
-Status: Bogus
+Status: Closed
Type: Bug
Package: System_Daemon
Operating System: centos 5, 64-bit
Package Version: 1.0.0RC1
PHP Version: 5.2.10
-Assigned To:
+Assigned To: pietux
Roadmap Versions:
New Comment:
-Status: Bogus
+Status: Closed
-Assigned To:
+Assigned To: pietux
Thank you for the very quick response.
The example code I was using, indeed had the line
"setOption('appRunAsGID', 0);"
I revisited the GitHub and checked the example files again and the code
surrounding the init process are different now.
I will use the new examples as a basis of my daemon script.
Thanks again,
Petri
Previous Comments:
------------------------------------------------------------------------
[2011-07-10 23:46:33] kvz
-Status: Open
+Status: Bogus
Thank you for taking the time to write to us, but this is not
a bug.
Don't you mean System_Daemon::setOption('appRunAsGID', 0); ?
------------------------------------------------------------------------
[2011-07-10 23:36:54] pietux
Description:
------------
While running the daemon script initially with --write-initd, I
encounter fatal php
error in theline which calls setOption()
I installed the System_Daemon package via pear. This error occurrecd
Then uninstalled from the pear, downloaded from the git repo, and
included
the Daemon.php from its extracted location. Same error still.
I have about a year older version up and running on this same server.
Test script:
---------------
setOption('appRunAsGID', 0); // set to root
Expected result:
----------------
sucessfully written startup script: %s
Actual result:
--------------
# PHP Fatal error: Call to undefined function setOption() in
/data/connections/sms_sender_daemon.php on line 121
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18659&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.