PHP 4 added the ability to evaluate complex variables in strings with the use of the { } characters. This makes users of the imap extension have to escape the open statement.
i.e.
$mbox = imap_open("{localhost:143}INBOX", "user_id", "password");
Notice the slash before the {.
Hope this helps,
Jack