#42455 [Com]: "Call to undefined method" - but method isn't undefined!

From: Date: Fri, 23 May 2008 06:01:29 +0000
Subject: #42455 [Com]: "Call to undefined method" - but method isn't undefined!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125208@lists.php.net to get a copy of this message
ID: 42455 Comment by: collie8 at bellsouth dot net Reported By: klikics at preisroboter dot de Status: No Feedback Bug Type: Class/Object related Operating System: Linux PHP Version: 5.2.3 New Comment: every time I send some thing you say it is the wrong email address and I know it is not the wrong email address and I was not born yesterday and I was born 53 year's ago and you better not say the next email I send you better not send it back to me any more because the next time I send one you better send it and If you do not send it the next email address you get will be from my Lawyer and that is a promise and If you do not what that to happen then the next one I do send you just better send it as of right now and that is an order and If you do not send it you can and will be shut down for good by my Lawyer and that is a promise. Previous Comments: ------------------------------------------------------------------------ [2007-09-05 01:00:01] 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". ------------------------------------------------------------------------ [2007-08-28 13:32:28] jani@php.net That is not the script I'm looking for.. Please read the instructions how to report. Leave this as 'Feedback' until you actually have something useful to give as feedback.. ------------------------------------------------------------------------ [2007-08-28 13:04:48] klikics at preisroboter dot de Thanks for your fast answers! I've disabled Suhosin and eAccelerator already 2 days ago, but it still appears. Sorry, but I can't reproduce it because I only got the error twice and some visitors of our site reported it. Code example: search.php ########## require("class.php"); $search = new search(); // ... class.php: ########## class search{ function search() { $foo = new cluster_search(); // ... } // ... } class cluster_search { function cluster_search() { // ... $bar = $this->get_threader(); // here appears the error sometimes } function get_threader() { $bla = fsockopen(); // ... return $bla; } // ... } ------------------------------------------------------------------------ [2007-08-28 12:29:54] jani@php.net As long as you can't reproduce it reliably and not able to give us any code to test ourselves this report is kinda useless. First thing you should try is to remove all 3rd party extensions (f.e. any Zend extensions like optimizers, encoders and caches). Then you install the latest CVS snapshot found here: http://snaps.php.net/php5.2-latest.tar.gz And if that doesn't work, you tell us what configure line you used to configure PHP and how we can reprodcue it.. ------------------------------------------------------------------------ [2007-08-28 12:24:48] klikics at preisroboter dot de Ok, another try ;-) I've got a class "search" and another class "cluster_search" (in the same file). In "cluster" there is a method "get_threader()", but not in "search". In the constructor of "search" is an object $clustersearch created from "cluster_search" and the constructor of "cluster_search" calls the method $this->get_threader() from class "cluster_search". Sometimes, PHP try's to call search::get_threader() instead of $this->get_threader at this moment ($this is here the class "cluster_search") and throws this error: Fatal error: Call to undefined method search::get_threader() in /www/class_.php on line 1305 The problem is, that I can't reproduce this error. I hope it's not to much confusion ... ;) ------------------------------------------------------------------------ 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/42455 -- Edit this bug report at http://bugs.php.net/?id=42455&edit=1

« previous php.bugs (#125208) next »