#19399 [Com]: Problem with method call - please report this bug
| From: | oracle dot shinoda at gmail dot com | Date: | Sun, 29 May 2005 09:41:45 +0000 |
| Subject: | #19399 [Com]: Problem with method call - please report this bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-79659@lists.php.net to get a copy of this message | ||
ID: 19399
Comment by: oracle dot shinoda at gmail dot com
Reported By: fclever at verinform dot com
Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: Linux & Win2000
PHP Version: 4.2.3
New Comment:
I have experienced this error on php 4.3.11 installed via Debian APT. I
was calling DB::isError from PEAR inside another static method
(Release::create), that I had written myself.
Perhaps calling a static method from within another static method is
causing this problem? I haven't got time to build a test suite
though...
Previous Comments:
------------------------------------------------------------------------
[2003-08-16 09:36:19] rct_sixflags2 at hotmail dot com
i get it al so on windows me
this is the furst php bug that badders me :(
------------------------------------------------------------------------
[2002-12-24 01:00:04] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, 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".
------------------------------------------------------------------------
[2002-12-08 10:47:45] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
I can not reproduce this with PHP 4.3.0-dev..
------------------------------------------------------------------------
[2002-12-06 00:31:51] The Anarcat <anarcat at anarcat dot ath dot cx>
Also note that morphing the code into:
function seek_and_destroy($where_ary) {
if (!isset($this)) {
$foo = new ecdGroupedNews();
} else {
$foo = $this;
}
supressees the warning, of course, so it is a proper workaround, for
me.
------------------------------------------------------------------------
[2002-12-06 00:29:12] anarcat at anarcat dot ath dot cx
I have had a similar situation when assigning to $this:
function seek_and_destroy($where_ary) {
if (!isset($this)) {
$this = new ecdGroupedNews(); // this is the line where the warning
is pointing to
}
...
}
this yields:
Warning: Problem with method call - please report this bug in
/usr/home/anarcat/data/web_pages/www/anarcat.ath.cx/php/ecdGroupedNews.inc.php
on line 44
well, it's not *exactly* the same thing, but there is a similarity:
both problems occur when referencing $this in shadowy conditions (ie.
unset($this)).
------------------------------------------------------------------------
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/19399
--
Edit this bug report at http://bugs.php.net/?id=19399&edit=1