php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51455 Semi-colon after <?php does nothing.
Submitted: 2010-04-01 14:44 UTC Modified: 2010-04-01 15:02 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sthulbourn@php.net Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.3.2 OS: Mac OS X 10.6.3
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: sthulbourn@php.net
New email:
PHP Version: OS:

 

 [2010-04-01 14:44 UTC] sthulbourn@php.net
Description:
------------
A semi-colon after the opening PHP tag ends the script.

Test script:
---------------
<?php;
  echo 'foobar';
?>

Expected result:
----------------
An error, a warning, something.

Actual result:
--------------
NULL

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-01 15:02 UTC] sthulbourn@php.net
-Status: Open +Status: Bogus
 [2010-04-01 15:02 UTC] sthulbourn@php.net
Not PHP's problem, since <?php; might be handled by something else.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 08 14:00:02 2025 UTC