|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-11 21:53 UTC] johannes@php.net
[2008-08-11 22:12 UTC] DikMax at gmail dot com
[2008-08-11 22:45 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 11:00:01 2025 UTC |
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