Bug #74360 [Opn->Fbk]: abstract interface method makes php die.

From: Date: Sun, 02 Apr 2017 10:42:50 +0000
Subject: Bug #74360 [Opn->Fbk]: abstract interface method makes php die.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208275@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=74360&edit=1 ID: 74360 Updated by: requinix@php.net Reported by: jerikokjerk at gmail dot com Summary: abstract interface method makes php die. -Status: Open +Status: Feedback Type: Bug Package: Class/Object related Operating System: windows PHP Version: 7.1.3 Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2017-04-01 23:18:04] 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. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=74360&edit=1

« previous php.bugs (#208275) next »