Bug #18392 Updated: imap functions stop working correctly when curl compiled in
ID: 18392
Updated by: sniper@php.net
Reported By: manu@php.net
-Status: Open
+Status: Feedback
Bug Type: IMAP related
Operating System: sun solaris 2.6
PHP Version: 4.2.1
New Comment:
First try this snapshot:
http://snaps.php.net/php4-latest.tar.gz
You're sure your c-client is not linked with SSL too?
And you don't (check it!) have any c-client headers installed anywhere
in your system?
Also, try adding 'echo imap_last_error()' after the imap_open() line.
Previous Comments:
------------------------------------------------------------------------
[2002-07-17 09:49:05] manu@php.net
The following script is working just as expected when php is compiled
--with-imap : It displays "conn ok" + a number.
But when php is compiled --with-curl as well, the script displays "conn
ok" + "empty".
There's no error nor warning.
Config :
./configure --enable-ucd-snmp-hack --with-apache=../apache_1.3.26
--enable-bcmath --enable-calendar --enable-ftp
--with-gd=/usr/local/gd1.2 --with-imap=../imap-2001a
--with-mysql=/usr/local/mysql --with-snmp --enable-inline-optimization
--enable-memory-limit --with-zlib --with-curl
The librairies used are :
imap-2001a : make gso
curl-7.9.8 : configure --with-ssl
--------------
<?php
$server="imap.server.net";
if ( $mbox = imap_open ("{".$server.":143}INBOX",
"email@server.net", "pass")) {
echo "conn ok<br>";
$headers = imap_headers ($mbox);
if ($headers == false){
echo "Empty<br>";
} else{
$size=sizeof($headers);
echo "$size";
}
imap_close($mbox);
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18392&edit=1
Thread (5 messages)