Bug #68080 [Com]: ... operator causes a segmentation fault

From: Date: Mon, 22 Sep 2014 21:14:34 +0000
Subject: Bug #68080 [Com]: ... operator causes a segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187667@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68080&edit=1 ID: 68080 Comment by: v dot guth at owlient dot eu Reported by: v dot guth at owlient dot eu Summary: ... operator causes a segmentation fault Status: Open Type: Bug Package: Reproducible crash Operating System: Ubuntu 14.04 PHP Version: master-Git-2014-09-22 (Git) Block user comment: N Private report: N New Comment: <?php class A { public function c() { } } class B extends A { public function c(...$list) { } } ?> ... does not work either. Previous Comments: ------------------------------------------------------------------------ [2014-09-22 21:11:05] v dot guth at owlient dot eu Description: ------------ This PHP code generates a segmentation fault. I would expect an error message such as : Fatal error: Declaration of B::c() must be compatible with A::c() in /tmp/test.php on line 13 Test script: --------------- <?php abstract class A { abstract public function c(); } class B extends A { public function c(...$list) { } } ?> Expected result: ---------------- A nice error message: Fatal error: Declaration of B::c() must be compatible with A::c() in /tmp/test.php on line 13 Actual result: -------------- A segmentation fault: vincent@abricow:/var/www$ php /tmp/test.php Erreur de segmentation (core dumped) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68080&edit=1

« previous php.bugs (#187667) next »