From: brent dot hansen at gmail dot com Operating system: XP PHP version: 5.2.4RC1 PHP Bug Type: Scripting Engine problem Bug description: Class magic methods
Description: ------------ This could also be a poor documentation issue. http://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php (aka Scope Resolution Operator ::) states that "When an extending class overrides the parents definition of a method, PHP will not call the parent's method. It's up to the extended class on whether or not the parent's method is called. This also applies to Constructors and Destructors, Overloading, and Magic method definitions." leading to the conclusion that magic methods (e.g., __call) are available as class::_somefunction() if this is just a documentation error please correct all instances of "class" with "object". Reproduce code: --------------- class sometest { function __call($method, $arguments) { echo $method; } } // Test #1 $mytest = new sometest; $mytest->dont_die(); // Test #2 sometest::dont_die(); Expected result: ---------------- // Test #1 dont_die // Test #2 dont_die Actual result: -------------- // Test #1 dont_die // Test #2 Fatal error: Call to undefined method testclass::dont_die() -- Edit bug report at http://bugs.php.net/?id=42302&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42302&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42302&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42302&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42302&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42302&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42302&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42302&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42302&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42302&r=support Expected behavior: http://bugs.php.net/fix.php?id=42302&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42302&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42302&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42302&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42302&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42302&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42302&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42302&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42302&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42302&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42302&r=mysqlcfg