From: DikMax at gmail dot com Operating system: WinXP sp3 PHP version: 5.2.6 PHP Bug Type: Class/Object related Bug description: Silent crash on duplicate method
Description: ------------ When write two methods with same name in one class PHP doesn't produce any error. It just silently stops processing on include Reproduce code: --------------- <?php ini_set('display_errors', 1); error_reporting(E_ALL | E_STRICT); class ClassName { public function method() { echo 1; } public function method() { echo 1; } } echo 2; Expected result: ---------------- Some compiler or interpreter error Actual result: -------------- Nothing -- Edit bug report at http://bugs.php.net/?id=45789&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45789&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45789&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45789&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45789&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45789&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45789&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45789&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45789&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45789&r=support Expected behavior: http://bugs.php.net/fix.php?id=45789&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45789&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45789&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45789&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45789&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45789&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45789&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45789&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45789&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45789&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45789&r=mysqlcfg