Bug #18392 Updated: imap functions stop working correctly when curl compiled in
| From: | manu@php.net | Date: | Thu, 18 Jul 2002 14:30:21 +0000 |
| Subject: | Bug #18392 Updated: imap functions stop working correctly when curl compiled in | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14534@lists.php.net to get a copy of this message | ||
ID: 18392
Updated by: manu@php.net
Reported By: manu@php.net
-Status: Feedback
+Status: Closed
Bug Type: IMAP related
Operating System: sun solaris 2.6
PHP Version: 4.2.1
New Comment:
Ok. After >100 compilations and some waste of bandwith from
snaps.php.net, the issue is resolved.
As you hinted, it was old c-client headers.
I wonder how it has worked so far ? (before I need curl).
what's odd is that they were picked in /usr/local/include despite I
./configure --with-imap=../imap-2001a...
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2002-07-18 04:44:11] sniper@php.net
Try with that exact package I posted url to..NOT the 'STABLE' one.
Also, what was in config.log when you used --with-imap-ssl and it
failed?
------------------------------------------------------------------------
[2002-07-18 03:43:30] manu@php.net
I should I've mentionned that I tried php4-STABLE-200207170300. No
success.
echo imap_last_error() doesn't display anything.
I'll check if there's not some old c-client headers.
And I tought that the c-client wasn't compiled with ssl ( compiling php
--with-imap-ssl complained...)
But nm -A c-client.a | grep -i ssl shows me that "ssl_server_init" is
there.
So regarding the issues involved with curl + ssl initialization in the
past, it may well be the pb.
I'll try and report.
Thanks
------------------------------------------------------------------------
[2002-07-17 11:34:32] sniper@php.net
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.
------------------------------------------------------------------------
[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