#11071 [Bgs->Csd]: probs displaying backslash with HERE statements

From: Date: Fri, 30 Apr 2004 08:39:22 +0000
Subject: #11071 [Bgs->Csd]: probs displaying backslash with HERE statements
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59057@lists.php.net to get a copy of this message
ID: 11071 User updated by: simon at studio24 dot net Reported By: simon at studio24 dot net -Status: Bogus +Status: Closed Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.3.5 New Comment: that's ok then! Previous Comments: ------------------------------------------------------------------------ [2004-04-29 23:14:29] sniper@php.net Of course it won't work. It's a feature.. ------------------------------------------------------------------------ [2004-04-28 15:40:13] simon at studio24 dot net Problem still occurs with PHP 4.3.5 (version updated in edit submission form) Test script prints: heredoc : { string : \{ I am presuming this is because curly braces can be used to include more complex variables in a heredoc syntax, ie. {$this->var['key']} See: http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc PHP seems to be spotting \{ and treating this as an escaped curly brace, even though there is no matching closing brace. best wishes, Simon ------------------------------------------------------------------------ [2002-09-19 01:00:01] php-bugs at lists dot php dot net No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-08-17 01:34:25] kalowsky@php.net is this still valid in 4.2? ------------------------------------------------------------------------ [2001-12-12 08:09:40] yohgaki@php.net PHP Version update ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/11071 -- Edit this bug report at http://bugs.php.net/?id=11071&edit=1

« previous php.bugs (#59057) next »