|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-05-07 02:48 UTC] requinix@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: requinix
[2015-05-07 02:48 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 01:00:01 2025 UTC |
Description: ------------ calling a child classes static function from parent constructor generates error Test script: --------------- class A{ public function __construct(){ static::someFunc(); } abstract protected static function someFunc; } Class B extens A{ public function __construct(){ parent::__construct(); } protected static function someFunc(){ } } $obj = new B(); Expected result: ---------------- I expect it to keep executing with no errors. Actual result: -------------- ErrorException with message 'Static function A::someFunc() should not be abstract'