note 57078 rejected from function.imap-open by betz
| From: | betz@php.net | Date: | Mon, 26 Sep 2005 21:56:45 +0000 |
| Subject: | note 57078 rejected from function.imap-open by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-95814@lists.php.net to get a copy of this message | ||
Note Submitter: uphonesimon at gmail dot com
----
After working with this function for a while, i found this bug which is very weird.
if you build a string with format as "{xxx.xxx.xxx.xxx:143}" and use that to open imap
connection, it won't work. it will simply say unable to open connection to imap server
so this is not going to work
<?
$imap_ip="xxx.xxx.xxx.xxx";
$imap_port="143";
$imap_address="{$imap_ip:$imap_port}";
imap_open($imap_address, "testuser", "testpass");
?>
however this will work
<?
$imap_ip="xxx.xxx.xxx.xxx";
$imap_port="143";
imap_open("{" .$imap_ip .":" .$imap_port ."}", "testuser",
"testpass");
?>