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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 + 39 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 15:01:29 2024 UTC