#36441 [Opn->Fbk]: php exits script (without error) when finds code like "function xxx(); {}"

From: Date: Sat, 18 Feb 2006 15:30:49 +0000
Subject: #36441 [Opn->Fbk]: php exits script (without error) when finds code like "function xxx(); {}"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93399@lists.php.net to get a copy of this message
ID: 36441 Updated by: mike@php.net Reported By: michal dot hantl at gmail dot com -Status: Open +Status: Feedback Bug Type: Compile Failure Operating System: Windows PHP Version: 5.1.2 New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.1-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.1-win32-latest.zip I get: Fatal error: Non-abstract method b::c() must contain body Previous Comments: ------------------------------------------------------------------------ [2006-02-18 13:36:31] michal dot hantl at gmail dot com Description: ------------ php sort of exits executing this source code without propper parse error (which php4 reports correctly) problem is in that ";" after "function whatever()" Reproduce code: --------------- Hello there <?php class bug { function whatever(); { die("you wish"); } } ?> Expected result: ---------------- some parse error Actual result: -------------- <totally nothing> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36441&edit=1

« previous php.bugs (#93399) next »