From:             
Operating system: Windows 7 Ultimate
PHP version:      5.3.3
Package:          *General Issues
Bug Type:         Bug
Bug description:End tag ; ignored on last statement

Description:
------------
I'm not completely sure that this is an intended behavior.  In a php
script, the last statement can be left unclosed (without the ";").  Please
see below script.  The behavior does not seem to be negative as the last
statement is reached, however, the expected result is consistency and all
statements need to be closed.

Test script:
---------------
<?php

echo "test"

?>



Expected result:
----------------
In the short script provided, I expect php to provide an error stating that
the statement is not closed using the closing semi-colon (;).

Actual result:
--------------
The actual result is that the script runs as normal and echos the "test"
statement, though the statement is not closed.

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53060&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53060&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53060&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53060&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53060&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53060&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53060&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53060&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53060&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53060&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53060&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53060&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53060&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53060&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53060&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53060&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53060&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53060&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53060&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53060&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53060&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53060&r=mysqlcfg

Reply via email to