php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74360 abstract interface method makes php die.
Submitted: 2017-04-01 23:18 UTC Modified: 2017-04-16 04:22 UTC
From: jerikokjerk at gmail dot com Assigned:
Status: No Feedback Package: Class/Object related
PHP Version: 7.1.3 OS: windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
3 + 31 = ?
Subscribe to this entry?

 
 [2017-04-01 23:18 UTC] jerikokjerk at gmail dot com
Description:
------------
hello

i've created an interface with an abstract method by mystake (and a lot of copy/paste)

PHP dies silently whithout triggering any kind of error/warning whereas i have error_reporting=E_ALL in my php.ini

it would be helpfull to give the developer some kind of hint why the language refuse to run. 

display_errors=On 
display_startup_errors=On


Test script:
---------------
interface test {
	abstract function foobar();
	
}
	
echo 'toto';

Expected result:
----------------
E_COMPILE_ERROR should be raised.

Actual result:
--------------
script does not run.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-04-02 10:42 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2017-04-02 10:42 UTC] requinix@php.net
It does present an error. https://3v4l.org/uGiYj
> Fatal error: Access type for interface method test::foobar() must be omitted

Use phpinfo() or ini_get() to confirm that your error settings are the way they think they are. Also check error_log in case you're logging to a file.
 [2017-04-16 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC