php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31267 Parse error after adding '@' to echo
Submitted: 2004-12-23 13:37 UTC Modified: 2004-12-23 13:53 UTC
From: josef dot buk at ge dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.0.3 OS: W2k
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: josef dot buk at ge dot com
New email:
PHP Version: OS:

 

 [2004-12-23 13:37 UTC] josef dot buk at ge dot com
Description:
------------
After putting '@' before echo command PHP compilator writes this message:

Parse error: syntax error, unexpected T_ECHO in D:\110028239\Documents\Prgm\Apache2\htdocs\Include\class.document.php on line 53

Reproduce code:
---------------
echo("________ trace".$this->df->tracelevel.",log=".$this->df->logfile.",file=".__FILE__.",".__LINE__.",qq=$qq");



Expected result:
----------------
There should be no inflence in compilatin (I suppose).

Actual result:
--------------
without '@' all is O.K. Otherwise the parse error appears.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-23 13:53 UTC] derick@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

echo is not a function, but a language construct
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC