php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6785 { needs to be backslashed if followed by a variable
Submitted: 2000-09-17 01:58 UTC Modified: 2000-09-17 02:03 UTC
From: alain at onesite dot org Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.2 OS: Linux RedHat 5.2 2.0.36, gcc 2.9
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: alain at onesite dot org
New email:
PHP Version: OS:

 

 [2000-09-17 01:58 UTC] alain at onesite dot org
I'm not sure this is a bug :

this works :

====================
<?php
echo "{\n";
?>
====================

this fails :

====================
<?php   
$s="hello";
echo "{$s";  
?>
====================

Parse error:  parse error, expecting `'}'' on line 3

Just in case :
http://www.onesite.org/phpinfo.php

Alain


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-17 02:03 UTC] stas@php.net
This is not a bug. Please read http://www.php.net/version4/incompatibilities.php
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 15:01:32 2025 UTC