php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35680 backslash curl not handled correctly
Submitted: 2005-12-15 14:18 UTC Modified: 2005-12-15 14:24 UTC
From: cristiklein at net dot utcluj dot ro Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.1.1 OS: FreeBSD 5.4
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: cristiklein at net dot utcluj dot ro
New email:
PHP Version: OS:

 

 [2005-12-15 14:18 UTC] cristiklein at net dot utcluj dot ro
Description:
------------
I recently noticed that "\{$var}" retains the backslash. Older versions of php don't do so, because backslash is meant to escape the curly.

Reproduce code:
---------------
<?php
        $length = 100;
        $sent_folder = "INBOX.Sent";

        echo "APPEND \"$sent_folder\" (\\Seen) \{$length}\r\n";
?>


Expected result:
----------------
APPEND "INBOX.Sent" (\Seen) {100}

Actual result:
--------------
APPEND "INBOX.Sent" (\Seen) \{100}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-15 14:21 UTC] tony2001@php.net
See bug #31341.
 [2005-12-15 14:24 UTC] cristiklein at net dot utcluj dot ro
I have read that bug, but I don't consider it to be correct.

Due to this "transformation", applications like squirrelmail stopped working. This is why I considered submitting this bug is vital.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 02:01:33 2025 UTC