note 46578 added to function.imap-search
| From: | DavidKoopman at osu1 dot php dot net | Date: | Fri, 15 Oct 2004 22:35:01 +0000 |
| Subject: | note 46578 added to function.imap-search | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78620@lists.php.net to get a copy of this message | ||
imap_search fails when I am trying to include an escaped double quote in my search string. For
example:
...
$search = 'David \"the bull\" Koopman';
$search = "BODY \"$search\"";
$result = imap_search($conn, $search, SE_UID);
Results in FALSE, the imap search command is never executed. I turned on tcpdump and watched the
traffic from my server, the SEARCH command is never run. Remove the double quotes and the command
is executed. I have tried double escaping, still doesn't work. I am going to report this as a
bug.
Raw telnet command works fine:
00000005 UID SEARCH BODY "David \"the bull\" Koopman"
* SEARCH 1773
00000005 OK SEARCH done.
----
Manual Page -- http://www.php.net/manual/en/function.imap-search.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46578
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46578&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46578&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46578&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46578&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46578&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46578&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46578&report=yes
Search -- http://master.php.net/manage/user-notes.php