php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23805 [chm] bug on migration.if-endif.html
Submitted: 2003-05-25 17:27 UTC Modified: 2003-05-25 17:35 UTC
From: bartlouwagie at attbi dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 4.3.2RC4 OS: windows
Private report: No CVE-ID: None
 [2003-05-25 17:27 UTC] bartlouwagie at attbi dot com
I have found a bug on page migration.if-endif.html
[chm date: 2002-12-27]...

In the statement examples, the semicolon behind line 1 (and 3 and 5) should NOT be there.

if ($foo); 
   echo "yep\n"; 
elseif ($bar); 
   echo "almost\n"; 
else; 
   echo "nope\n"; 
endif; 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-25 17:35 UTC] alindeman@php.net
The docs are correct.  This is a migration section, telling you that this syntax no longer works.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 09:01:32 2025 UTC