ID: 14000 Updated by: sniper Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: IMAP related Operating System: FreeBSD PHP Version: 4.0.6 New Comment:
If you don't have c-client.h file, the version is below imap-2000. So you better update the libs. Previous Comments: ------------------------------------------------------------------------ [2001-11-10 11:11:27] [EMAIL PROTECTED] How do I tell what version I have of c-client? I did a "grep -i version *" in "/usr/local/include/c-client" and it returned: bash-2.05$ pwd /usr/local/include/c-client bash-2.05$ grep -i version * imap4r1.h: * This original version of this file is misc.h: * This original version of this file is osdep.h: * Program: Operating-system dependent routines -- FreeBSD version portrevision.h:#define CCLIENT_PORTVERSION "0106191041" rfc822.h: * This original version of this file is smtp.h: * This original version of this file is utf8.h:/* UTF-8 size and conversion routines from UCS-2 values. This will need to utf8.h: /* 6/1 Norwegian version 2 (withdrawn) */ utf8.h: cstext_t dsp; /* text conversion dispatch */ utf8.h: void *tab; /* conversion table */ bash-2.05$ ------------------------------------------------------------------------ [2001-11-10 10:46:11] [EMAIL PROTECTED] This is not bug in PHP but propably in the version of c-client you have. Which version is it? I just tried with imap-2001a.RELEASE-CANDIDATE.4 and it worked just fine. --Jani ------------------------------------------------------------------------ [2001-11-09 16:19:11] [EMAIL PROTECTED] Hosting Server: --------------- FreeBSD fbsd.austin.rr.com 4.4-RELEASE FreeBSD 4.4-RELEASE #0: Tue Sep 18 11:57:08 PDT 2001 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC i386 Pop3 Server: ------------ +OK Qpopper (version 4.0.3) at dual.spysatcentral.net starting. +<[EMAIL PROTECTED]> Error in /var/log/httpd-error.log: ---------------------------------- [Fri Nov 9 13:23:56 2001] [notice] child pid 95700 exit signal Segmentation fault (11) PHP Version 4.0.6 options: './configure' '--with-apxs=/usr/local/sbin/apxs' '--with-config-file-path=/usr/local/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--without-gd' '--without-mysql' '--with-imap=/usr/local' '--prefix=/usr/local' 'i386--freebsd4.4' HTML/PHP code: -------------- <HTML><HEAD></HEAD><BODY> <?php $mbox = imap_open ("{dual.spysatcentral.net:110/pop3}INBOX", "someuser", "somepass"); imap_close($mbox); ?> </BODY></HTML> Comments: --------- I don't know any c programming much less how to use a debugger. but I set this up with a fresh install of FreeBSD 4.4-stable, and installed from /usr/ports/www/mod_php4 and added imap options. I was able to get imap to connext to the pop3 on a Lotus Domino servers pop3 port and work so it apears to be a bug in the the way php4.0.6 talks to Qpopper( also found in the FreeBSD ports ) then again maby I am just doing something stupid. :P my original code has much more to it but I can get the segfault with just the little code I provided. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14000&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]