From:             [EMAIL PROTECTED]
Operating system: linux
PHP version:      4.0 Latest CVS (26/02/2001)
PHP Bug Type:     IMAP related
Bug description:  imap_open crash when connecting to nntp with username and password

function that causes crash
<?php>
imap_open('{newsserver/nntp}'.'test.test','username','password') || die("can't 
connect: ".imap_last_error());
</php>


backtrace from gdb ( i know it says nothing but i did as described in the backtrace 
faq.)
#0  0x0 in ?? ()

I have a problem with imap_open:
I can do imap_open on nntp server that has no authentication. But when i try on
a nntpserver that requires a password.. php dumps core (signal 11 gdb backtrace
is #0 0x0 in ?? ()) ( i executed the cgi version of php to be sure that apache
has nothing to do with it.)
i tested c-client with the mtest program and it worked perfectly.
I've tried to compile php4 with -enable-debug but i'm not so experienced with
gdb so when i load the core-file i still get no symbols or references to the
instruction that causes the problem.
it should be simple to test:


try to connect to a nntp server without username and password
try to connect to a nntp server that requires username and password


i have looked through the c-client code and the php4 extension and i could
imagine the problem might be in mm_login but i'm not certain.


the server is running:
php4.0.5-dev latest cvs
linux 2.2.12-20smp
imap (imap-2001.BETA.SNAP-0102201858) also tried (imap-4.7c)
All help is appreciated and if anybody wants more information or maybe a test
nntp account i can provide that (just send me a mail [EMAIL PROTECTED]).


-- 
Edit Bug report at: http://bugs.php.net/?id=9461&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]

Reply via email to