From:             fmaillet at vizfx dot ca
Operating system: Windows 2000
PHP version:      4.3.1
PHP Bug Type:     Scripting Engine problem
Bug description:  Declaring a function without () produces no output

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";
}

?>


-- 
Edit bug report at http://bugs.php.net/?id=24366&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24366&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24366&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24366&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24366&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24366&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24366&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24366&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24366&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24366&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24366&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24366&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24366&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24366&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24366&r=gnused

Reply via email to