|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-09-05 10:41 UTC] samu dot voutilainen at gmail dot com
[2012-09-05 13:20 UTC] laruence@php.net
[2012-09-05 14:24 UTC] samu dot voutilainen at gmail dot com
[2012-09-06 01:40 UTC] aharvey@php.net
[2012-09-06 01:40 UTC] aharvey@php.net
-Status: Open
+Status: Feedback
[2012-09-06 12:32 UTC] samu dot voutilainen at gmail dot com
[2012-09-06 12:32 UTC] samu dot voutilainen at gmail dot com
-Status: Feedback
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
Description: ------------ When inheriting from a class and calling constructor with invalid arguments, it won’t throw any error, but die silently. There is no information in web server log or PHP-FPM’s logs and nothing is returned to client either. Test script: --------------- class SlamObject { } class Utility extends SlamObject { } abstract class AbstractHandler extends Utility { protected $version; protected $session; protected $output; public function __construct($session, $output, $version) { $this->session = $session; $this->output = $output; $this->version = $version; } } class Foo extends AbstractClass { } $foo = new Foo(); Expected result: ---------------- At the point of Foo, fatal error is thrown telling that you called constructor with wrong arguments. Actual result: -------------- Silent death at this point with no information anywhere.