ID: 31214
Comment by: patrick at arkeon dot com
Reported By: ebypdx at comcast dot net
Status: No Feedback
Bug Type: Class/Object related
Operating System: Solaris 5.8
PHP Version: 4.3.10
New Comment:
A "not real" solution about the "Call to a member function on a
non-object"
Try this:
// Only to avoid the problem...
class Dummy {
function Dummy() {
}
}
$toto =& new Dummy();
class BaseOverloader {
function BaseOverloader() {}
function __call($method, $args, &$returnValue) {
echo "Call to ".get_class($this)."->$method <br/>";
$returnValue = "return";
return true;
}
}
overload("BaseOverloader");
$toto = new BaseOverloader();
$toto->firstCall();
$toto->secondCall();
Then you got:
Call to baseoverloader->firstcall
Call to baseoverloader->secondcall
Weird, no?!?
Previous Comments:
------------------------------------------------------------------------
[2004-12-29 01:00:16] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2004-12-21 18:05:49] [EMAIL PROTECTED]
leave bug @ feedback until further information is known.
------------------------------------------------------------------------
[2004-12-21 17:33:51] ebypdx at comcast dot net
thanks very much for the feedback, if our sysadmins have time to apply
that patch i'll post back the results. for now we've rolled back a
version.
------------------------------------------------------------------------
[2004-12-21 03:58:03] [EMAIL PROTECTED]
Try the patch listed in bug report #31106
------------------------------------------------------------------------
[2004-12-21 03:04:38] [EMAIL PROTECTED]
in Zend/zend_execute.c
about line 997: remove this line
PZVAL_UNLOCK(T->EA.data.overloaded_element.object);
about line 1579: remove this line
EX(object).ptr->refcount++;
you have to copy & paste the whole link for it to work / rather than
just pressing on it.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/31214
--
Edit this bug report at http://bugs.php.net/?id=31214&edit=1