|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-06-27 13:46 UTC] fmaillet at vizfx dot ca
Description:
------------
I'm not sure if this is a bug but I think there should be an error message. When you declare a function and don't add () before the {, you get no output at all, not even an error message.
I posted an exemple of code. I know I'm not calling the function but something should happen. Either "This is a test" being printed or an error concerning the function declaration.
Reproduce code:
---------------
<?
echo "This is a test<br>";
function MyFunction {
echo "This is an other test";
}
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sun Mar 29 12:00:01 2026 UTC |
I get: Parse error: parse error, expecting `'('' in /tmp/24366.php on line 6 Be sure to check your error settings, like display_errors and error_reporting.