|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-03 15:34 UTC] iliaa@php.net
-Status: Open
+Status: Bogus
[2010-05-03 15:34 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 06:00:01 2025 UTC |
Description: ------------ Per RFC 3501 [9], spaces are valid characters in a username. Thus, 'username' != ' username '. However, imap_open() appears to be stripping leading/trailing whitespace from the username. Test script: --------------- <?php $mailbox = '{localhost:143}INBOX'; // 'username' is valid user; ' username ' is invalid user $username = ' username '; $password = 'password'; $res = imap_open($mailbox, $username, $password, OP_HALFOPEN); if (is_resource($res)) { print "SUCCESS\n"; } else { print "FAILED\n"; } Expected result: ---------------- FAILED Actual result: -------------- SUCCESS