ID: 30222
Comment by: cory dot forysth at gmail dot com
Reported By: max at max-net dot nl
Status: No Feedback
Bug Type: Class/Object related
Operating System: Windows 2003 Server Enterprise
PHP Version: 4.3.8
New Comment:
I was able to reproduce this bug on Mac OS X (and my Unix
web host at Lunarpages, not sure what exact OS it is), using
PHP 4.4.1. Sample script to reproduce the error:
<?php
class A {
function parent_test() {
}
}
class B extends A {
function test() {
$this = new B();
parent::parent_test();
}
}
$b = B::test();
?>
Previous Comments:
------------------------------------------------------------------------
[2004-10-02 01:00:03] 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-09-24 19:44:45] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2004-09-24 19:33:47] max at max-net dot nl
Description:
------------
Warning: Problem with method call - please report this bug in
C:\inetpub\wwwroot\core\core\lib\template.lib.php on line 186
The actual line:
Class::function( 'set' , $this );
The way it does work (but i dont like the @):
@Class::function( 'set' , $this );
It has been reported before on the site if i am not mistaken, but maybe
it is back?
Reproduce code:
---------------
Class::function( 'set' , $this );
Expected result:
----------------
Storing the new $this object with new data in a static variable in the
function.
Actual result:
--------------
Warning: Problem with method call - please report this bug in
C:\inetpub\wwwroot\core\core\lib\template.lib.php on line 186
But the result is correct.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30222&edit=1