I've recently started experimenting with PHP's imap_* functions
I can connect to our IMAP server over SSL, list folders, count messages... but as soon as I introduce the imap_search function, the user gets prompted to download the PHP file rather than it displaying in the browser.
When I look at the downloaded file, it's empty, 0 bytes.
No PHP error message. When I look in httpd error.log there's nothing that corresponds to that event, nothing for today in fact since it's my test server.
As soon as I take the imap_search function out, the output is displayed in the browser again!
I'm running php 5.2.10 on Apache 2.2.8 on CentOS 5.4 64bit and never had this .php download problem before. Normally when I see that happening it means the file handlers in httpd.conf are messed up but our intranet users have been using this server for about 6 months and never mentioned seeing a .php file download prompt.
I installed the PHP imap extension by doing: yum install php-imap in CentOS, then restarting httpd
I use the centos-test repo as that gives me access to later versions of Apache/PHP/MySQL than the standard CentOS repo.
According to the IMAP section in phpinfo...
Code: Select all
IMAP c-Client Version 2004
SSL Support enabled
Kerberos Support enabledI noticed that this bug... http://bugs.php.net/bug.php?id=44339 was fixed as of 5.2.5 so that shouldn't affect me. So it appears I probably am using version 2004.
Anyone aware of any bugs/issues that I might be stumbling on?
I had a search through bugs.php.net but couldn't see much IMAP related.
Cheers, B