note 46578 deleted from function.imap-search by didou

From: Date: Sun, 14 Jan 2007 23:54:09 +0000
Subject: note 46578 deleted from function.imap-search by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121676@lists.php.net to get a copy of this message
Note Submitter: David Koopman ---- 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.

« previous php.notes (#121676) next »