Edit report at https://bugs.php.net/bug.php?id=63013&edit=1
ID: 63013 User updated by: samu dot voutilainen at gmail dot com Reported by: samu dot voutilainen at gmail dot com Summary: Error not thrown with constructor call Status: Open Type: Bug Package: *General Issues Operating System: Linux PHP Version: 5.4.6 Block user comment: N Private report: N New Comment: Also the code I have uses namespaces. Previous Comments: ------------------------------------------------------------------------ [2012-09-05 10:37:20] samu dot voutilainen at gmail dot com 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=63013&edit=1