php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68080 ... operator causes a segmentation fault
Submitted: 2014-09-22 21:11 UTC Modified: 2014-09-22 21:14 UTC
From: v dot guth at owlient dot eu Assigned:
Status: Duplicate Package: Reproducible crash
PHP Version: master-Git-2014-09-22 (Git) OS: Ubuntu 14.04
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: v dot guth at owlient dot eu
New email:
PHP Version: OS:

 

 [2014-09-22 21:11 UTC] 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-22 21:14 UTC] 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:14 UTC] nikic@php.net
-Status: Open +Status: Duplicate
 [2014-09-22 21:14 UTC] nikic@php.net
Duplicate of https://bugs.php.net/bug.php?id=67938. This will be fixed in 5.6.1.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC