|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
  [2004-09-24 19:33 UTC] 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. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
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(); ?>