[php-src] Issue #8457: Extending SplPriorityQueue: Fatal error: Uncaught Error: Cannot call constructor

From: Date: Fri, 29 Apr 2022 07:12:13 +0000
Subject: [php-src] Issue #8457: Extending SplPriorityQueue: Fatal error: Uncaught Error: Cannot call constructor
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-241311@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/8457 Author: LastDragon-ru ### Description Not sure should it be here or on bugs.php.net, sorry. The following code will unexpectedly fail: https://3v4l.org/1oihY ```php <?php declare(strict_types = 1); namespace Bug; use SplPriorityQueue; class Test extends SplPriorityQueue { public function __construct() { parent::__construct(); } } new Test(); ``` Resulted in this output: ``` Fatal error: Uncaught Error: Cannot call constructor ``` But I expected this output instead: ``` no error ``` ### PHP Version all ### Operating System _No response_

« previous php.bugs (#241311) next »