From: kgreene at i2intl dot com Operating system: ALL PHP version: 4.3.2 PHP Bug Type: Scripting Engine problem Bug description: php closing tag not required
Description: ------------ The closing php tag, ?>, doesn't seem to be required. Is it a bug or a feature? I consider it to be a feature since php has operated this way as long as I have been using it, but a contemporary considers it to be a bug, since it is not documented. I agree with him somewhat, but only on the fact that it does not appear to be documented anywhere whether this is acceptable or not. Reproduce code: --------------- <? echo "Hello World!"; Expected result: ---------------- Hello World! Actual result: -------------- Hello World! -- Edit bug report at http://bugs.php.net/?id=26269&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26269&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26269&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26269&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26269&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26269&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26269&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26269&r=support Expected behavior: http://bugs.php.net/fix.php?id=26269&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26269&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26269&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26269&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26269&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26269&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26269&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26269&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26269&r=float