#19399 [Fbk->NoF]: Problem with method call - please report this bug

From: Date: Tue, 24 Dec 2002 07:00:04 +0000
Subject: #19399 [Fbk->NoF]: Problem with method call - please report this bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28310@lists.php.net to get a copy of this message
 ID:               19399
 Updated by:       php-bugs@lists.php.net
 Reported By:      fclever@verinform.com
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         Scripting Engine problem
 Operating System: Linux & Win2000
 PHP Version:      4.2.3
 New Comment:

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".


Previous Comments:
------------------------------------------------------------------------

[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@anarcat.ath.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@anarcat.ath.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)).

------------------------------------------------------------------------

[2002-09-14 00:20:42] fclever@verinform.com

I get the following error message:

Warning: Problem with method call - please report this bug in line
xyz.
This error message comes from /Zend/zend_execute.c, line 1638.

This error occurs in our applications framework with many intermingled
classes on both Linux and Windows 2000 Boxes (I have not checked on
Solaris yet). I have not been able to produce a simple set of classes
producing this error. The basic structure of what our code is doing
is:

class CUi {
function httpHeader($p_disableGzHandler = false) {
}
function htmlHead($p_subDirs = false) {
	if ( ! isset($this) ) {
		// this is the static pseudo initialization
		$this->m_subDirs = $p_subDirs;
	}
	CUi::httpHeader(); // this is the line where the error occurs
}
}
CUi::httpHeader();

If I move the CUi:httpHeader() call done from within htmlHead() above
"if (! isset($this) )" the error does not occur.

I am sorry to not be able to provide better information. I would not
have reported this bug, but it explicitly asks to report it, so here we
go.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19399&edit=1



Thread (10 messages)

« previous php.bugs (#28310) next »