|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-09-13 23:14 UTC] sniper@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 09:00:01 2025 UTC | 
Description: ------------ When I try to overload the function in parent class by just assigning the function argument a default value, the interpreter complains (when running in strict mode) Reproduce code: --------------- class Node { public function process($param) { } } class Node_FrontController extends Node { public function process($param=null) { } } Expected result: ---------------- No warning message Actual result: -------------- Strict Standards: Declaration of Node_FrontController::process() should be compatible with that of Node::process() in FrontController.inc.php on line 25