php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37936 the character ; forgotten
Submitted: 2006-06-27 20:23 UTC Modified: 2006-06-27 20:47 UTC
From: nimce4u at gmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.1.4 OS: Windows XP Pro
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nimce4u at gmail dot com
New email:
PHP Version: OS:

 

 [2006-06-27 20:23 UTC] nimce4u at gmail dot com
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...


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-27 20:47 UTC] tony2001@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 19:00:03 2025 UTC