Bug #68080 [Opn->Dup]: ... operator causes a segmentation fault
| From: | nikic@php.net | Date: | Mon, 22 Sep 2014 21:14:34 +0000 |
| Subject: | Bug #68080 [Opn->Dup]: ... operator causes a segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-187668@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
Updated by: nikic@php.net
Reported by: v dot guth at owlient dot eu
Summary: ... operator causes a segmentation fault
-Status: Open
+Status: Duplicate
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:
Duplicate of https://bugs.php.net/bug.php?id=67938. This will be
fixed in 5.6.1.
Previous Comments:
------------------------------------------------------------------------
[2014-09-22 21:14:33] v dot guth at owlient dot eu
<?php
class A {
public function c() {
}
}
class B extends A {
public function c(...$list) {
}
}
?>
... does not work either.
------------------------------------------------------------------------
[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