#36441 [NoF->Bgs]: php exits script (without error) when finds code like "function xxx(); {}"
| From: | bjori@php.net | Date: | Wed, 20 Dec 2006 09:35:25 +0000 |
| Subject: | #36441 [NoF->Bgs]: 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-106614@lists.php.net to get a copy of this message | ||
ID: 36441
Updated by: bjori@php.net
Reported By: michal dot hantl at gmail dot com
-Status: No Feedback
+Status: Bogus
-Bug Type: Compile Failure
+Bug Type: Class/Object related
Operating System: Windows
PHP Version: 5.1.2
New Comment:
turn on error reporting
Previous Comments:
------------------------------------------------------------------------
[2006-02-26 01:00:04] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-02-18 16:30:43] mike@php.net
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
------------------------------------------------------------------------
[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