php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13183 \ at end of literal causes parsing error
Submitted: 2001-09-06 15:21 UTC Modified: 2001-09-06 15:41 UTC
From: php at workingsites dot co dot uk Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Linux
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:
26 - 3 = ?
Subscribe to this entry?

 
 [2001-09-06 15:21 UTC] php at workingsites dot co dot uk
Fails

<?

	echo 'Set ts = fso.CreateTextFile("c:\';

?>

Suceeds

<?

	echo 'Set ts = fso.CreateTextFile("c:\\';

?>

If a \ is the last character of a string literal then a parse error is raise.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-06 15:41 UTC] sander@php.net
Not a bug. \ escapes ' and "
See the manual for more info (http://www.php.net/manual/en/language.types.string.php)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 18:01:32 2024 UTC