From: michal dot hantl at gmail dot com
Operating system: Windows
PHP version: 5.1.2
PHP Bug Type: Compile Failure
Bug description: php exits script (without error) when finds code like
"function xxx(); {}"
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 bug report at http://bugs.php.net/?id=36441&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=36441&r=trysnapshot44
Try a CVS snapshot (PHP 5.1):
http://bugs.php.net/fix.php?id=36441&r=trysnapshot51
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=36441&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36441&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=36441&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36441&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36441&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36441&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36441&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36441&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=36441&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=36441&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36441&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36441&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36441&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36441&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36441&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36441&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36441&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36441&r=mysqlcfg