|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-17 11:34 UTC] sniper@php.net
[2002-07-18 03:43 UTC] manu@php.net
[2002-07-18 04:44 UTC] sniper@php.net
[2002-07-18 10:30 UTC] manu@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 13:00:01 2026 UTC |
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); } ?>