I noticed weird behavior with openlog() with PHP 4.3.6.
1st time "running" the file, everything works fine, but page refreshes may cause page to hang.
Removing the openlog statement cured the problem.
![]() | openlogDescriptionbool openlog ( string ident, int option, int facility )openlog() opens a connection to the system logger for a program. The string ident is added to each message. Values for option and facility are given below. The option argument is used to indicate what logging options will be used when generating a log message. The facility argument is used to specify what type of program is logging the message. This allows you to specify (in your machine's syslog configuration) how messages coming from different facilities will be handled. The use of openlog() is optional. It will automatically be called by syslog() if necessary, in which case ident will default to FALSE.
表格 1. openlog() Options
表格 2. openlog() Facilities
See also define_syslog_variables(), syslog() and closelog(). ![]()
jjarven at softers dot net
25-May-2004 10:58
I noticed weird behavior with openlog() with PHP 4.3.6.
sh+php at octarine dot org
12-Jan-2000 11:39
Addition to the workaround: don't set your php error logging to syslog (php3.ini error_log = syslog).
| ![]() | ||||||||||||||||||||||||||||||||||||||