|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-06-15 16:04 UTC] pierrick@php.net
-Status: Open
+Status: Feedback
[2010-06-15 16:04 UTC] pierrick@php.net
[2010-06-22 23:27 UTC] darylp at qualtrics dot com
-Status: Feedback
+Status: Open
[2010-06-22 23:27 UTC] darylp at qualtrics dot com
[2010-09-11 18:04 UTC] felipe@php.net
-Status: Open
+Status: Feedback
[2010-09-11 18:04 UTC] felipe@php.net
[2010-09-13 20:06 UTC] darylp at qualtrics dot com
[2010-10-07 22:54 UTC] darylp at qualtrics dot com
-Status: Feedback
+Status: Open
[2010-10-07 22:54 UTC] darylp at qualtrics dot com
[2011-01-30 06:02 UTC] stas@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: stas
[2011-01-30 06:02 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ We have several servers running PHP 5.3.2 on CentOS 5.4 and a few on PHP 5.2.9 on FreeBSD. Reviewing our error logs, I have noticed a pattern of fatal errors: "Call to a member function * on a non-object". This occurs usually daily, and sometimes several times a day. When it occurs, it occurs on a single server, several times over a 2-3 minute span, and across different PHP sessions and occurs in different functions in different classes. This issue does not seem to coincide with high traffic or with time of day. This issue has occurred on each of the webservers running CentOS, although I have noticed it occurring over several releases of PHP. There are no other fatal PHP errors that occur concurrently, nor are there any other external processes that are occurring concurrently. The only thing I can suspect is PHP garbage collection improperly deleting objects, although debug_zval_dump() shows the object correctly constructed and never destructed prior to calling a member function. After seeing this error occur on several functions in various classes, I picked one and added code to check is_object() and email me the results of debug_zval_dump() when false. Although is_object() returns false, the dump of the object shows the following: if (!is_object($this->flow_info)) { debug_zval_dump($this); } output: object(SEFlow)#13 (10) refcount(5){ ... ["flow_info"]=> object(FlowInfo)#14 (4) refcount(1){ ... Calling a function: $this->flow_info->getElementsUnderBranch(__MAIN_BRANCH, false); results in the fatal error: Call to a member function getElementsUnderBranch() on a non-object in /var/www/Qualtrics/Qualtrics/SurveyEngine/Flow/Flow.php on line 186