php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45428 PHP echoes nothing when it is told to echo a PHP opening tag
Submitted: 2008-07-03 15:39 UTC Modified: 2008-07-03 16:23 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: eladnava at gmail dot com Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.6 OS: Linux
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: eladnava at gmail dot com
New email:
PHP Version: OS:

 

 [2008-07-03 15:39 UTC] eladnava at gmail dot com
Description:
------------
PHP echoes nothing when it is told to echo a PHP opening tag:
echo( "<?php" ); // echoes ""
echo( "<?" ); // echoes ""


It can echo ?>.

Reproduce code:
---------------
<?php
echo( "<?php" ); // echoes ""
echo( "<?" ); // echoes ""
?>

Expected result:
----------------
<?php or <?

Actual result:
--------------
""

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-03 15:42 UTC] eladnava at gmail dot com
Incorrect PHP version.
 [2008-07-03 16:23 UTC] scottmac@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

View the source of the page, the browser thinks its HTML.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Jul 16 17:00:01 2026 UTC