|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-01-26 11:57 UTC] cataphract@php.net
[2013-01-26 11:57 UTC] cataphract@php.net
-Status: Open
+Status: Feedback
[2013-02-14 14:45 UTC] iceman2g2 at gmail dot com
-Status: Feedback
+Status: Closed
[2013-02-14 14:45 UTC] iceman2g2 at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 17:00:01 2025 UTC |
Description: ------------ PHP Version: 5.3.17 Server API: CGI/FastCGI I'm using the self keyword to call a method that's defined in an abstract class. The call to the method itself is being made within the abstract class. The method is both private and static. Here's a definition of the method: private static function _executeCallback($sequence, $event, array $param = array(), Dhonki_Model $object = NULL) This is the snippet of code that calls the method: if (isset(self::$_event_callback[$model]['find']['after']) || isset(self::$_event_callback[__CLASS__]['find']['after'])) { self::_executeCallback('after', 'find', $param, $object); } The problem comes with the use of: self::_executeCallback('after', 'find', $param, $object); To fix the error I use the code: Dhonki_Model::_executeCallback('after', 'find', $param, $object); I don't know if this is an error related to something I'm doing or if it's a bug. Again this same code works on several other servers, and in fact works several other places in the class. Clayton Expected result: ---------------- I expected self::_executeCallback and Dhonki_Model::_executeCallback to be functionally equivalent. In fact they seem to be functionally equivalent on several other servers using this code. The also seem to be equivalent elsewhere in the same abstract class that use the self::_executeCallback. Actual result: -------------- Unable to autoload `t6exla` class or interface. I'm not sure where the t6exla is coming from as the name of my class is Dhonki_Model.