From:             nimce4u at gmail dot com
Operating system: Windows XP Pro
PHP version:      5.1.4
PHP Bug Type:     *General Issues
Bug description:  the character ; forgotten

Description:
------------
I learn PHP and I know that we have to type the ; character in  the end of
every line..
and one time I forgot to type ; in line 3 (mysql_select_db("magazine"))
and I didn't get any error about this!
I must get an error:
Parse error: parse error, unexpected T_STRING...
please fix it...
:-)

Reproduce code:
---------------
<?php
mysql_connect("localhost","nimce","");
mysql_select_db("magazine")
?>

Expected result:
----------------
I must get an error:
Parse error: parse error, unexpected T_STRING
because I forgot to type ; in the end of the line 3:
mysql_select_db("magazine")


Actual result:
--------------
I didn't get any error message...


-- 
Edit bug report at http://bugs.php.net/?id=37936&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37936&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=37936&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37936&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37936&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37936&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37936&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37936&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37936&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37936&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37936&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37936&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37936&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37936&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37936&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37936&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37936&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37936&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37936&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37936&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37936&r=mysqlcfg

Reply via email to