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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 15:00:01 2025 UTC