Welche Unterschiede gibt es in der Verwendung von imap_open() zwischen PHP 4 und PHP 5?

In PHP 4, the imap_open() function requires the mailbox parameter to be passed by reference using the & symbol. However, in PHP 5, this is no longer necessary as the function now accepts the parameter by value. Therefore, when using imap_open() in PHP 5, you should not pass the mailbox parameter by reference.

// PHP 4
$mailbox = '{imap.example.com:993/ssl}INBOX';
$connection = imap_open(&$mailbox, 'username', 'password');

// PHP 5
$mailbox = '{imap.example.com:993/ssl}INBOX';
$connection = imap_open($mailbox, 'username', 'password');