php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #33337 The semicolon in C is not an instruction separator
Submitted: 2005-06-14 14:08 UTC Modified: 2005-06-14 14:29 UTC
From: fogbank at fogbank dot org Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
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: fogbank at fogbank dot org
New email:
PHP Version: OS:

 

 [2005-06-14 14:08 UTC] fogbank at fogbank dot org
Description:
------------
The documentation for Basic Syntax -> Instruction 
Separation states that C is like PHP with respect to using 
the semicolon as separator between instructions. 
 
That's not true: in C the semicolon is an instruction 
terminator, not a separator, i.e.: the last instruction in 
a block must be terminated as well. 
 
If you need a language to compare PHP with, you might 
choose Pascal, where the semicolon is actually an 
instruction separator. 
 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-14 14:23 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 [2005-06-14 14:23 UTC] hholzgra@php.net
PHP *does* behave like C, not like PASCAL, in this
so the comparison is right while the wording might be discussed
 [2005-06-14 14:29 UTC] derick@php.net
Hartmut, that's how the bug was fixed too ;-)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 12:01:33 2025 UTC