|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-06-06 19:35 UTC] requinix@php.net
-Status: Open
+Status: Suspended
[2020-06-06 19:35 UTC] requinix@php.net
[2020-06-07 10:04 UTC] cmb@php.net
[2020-06-07 10:11 UTC] bugreports at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 12:00:01 2025 UTC |
Description: ------------ __construct is special methods and it should be not allowed to return any value Test script: --------------- class A { public function __construct() { return 5; } } class B extends A { public function __construct() { var_dump(parent::__construct()); } } $b = new B(); Expected result: ---------------- PHP warning Actual result: -------------- int(5)