RE: [PHP-DEV] Bug #2651: if one is using imap4-v1 php crashes permanently
| From: | Greg Ross | Date: | Thu, 04 Nov 1999 02:08:52 +0000 |
| Subject: | RE: [PHP-DEV] Bug #2651: if one is using imap4-v1 php crashes permanently | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-12111@lists.php.net to get a copy of this message | ||
After more checking I think I've found the issue, when rfc822_date() is
called from functions/imap.c it is passed a char date[50], unfortunatly the
windows code for c-client can pass back a string longer than 50 characters,
which then crashes php.
Changing date[50] (on lines 1458 and 2330 of imap.c) to date[75] fixes the
issue.
Greg
> -----Original Message-----
> From: Greg Ross [mailto:greg@darkphoton.com]
> Sent: Tuesday, November 02, 1999 8:29 AM
> To: Andreas.Dolleschal@maxmobil.at; php-dev@lists.php.net
> Subject: RE: [PHP-DEV] Bug #2651: if one is using imap4-v1 php crashes
> permanently
>
>
>
> Hi, I'm one of the developers on TWIG and I've run in to
> this problem as
> well so I can give a few more details. Whenever imap_check() is
> called php
> crashes.
>
> imap_check() is generally called for checking new messages and total
> messages in a folder, if however imap_check() is replaced with
> imap_num_msg() and imap_num_recent() php does not crash.
>
> I believe this might be an issue with whatever version of
> c-client was used
> to build the imap dll on windows but have not had time to track down the
> issue any farther.
>
> Greg
>
> > -----Original Message-----
> > From: Andreas.Dolleschal@maxmobil.at
> > [mailto:Andreas.Dolleschal@maxmobil.at]
> > Sent: Tuesday, November 02, 1999 3:35 AM
> > To: php-dev@lists.php.net
> > Subject: [PHP-DEV] Bug #2651: if one is using imap4-v1 php crashes
> > permanently
> >
> >
> > From: Andreas.Dolleschal@maxmobil.at
> > Operating system: Windows NT 4
> > PHP version: 3.0.11
> > PHP Bug Type: Reproduceable crash
> > Bug description: if one is using imap4-v1 php crashes permanently
> >
> > i'm using twig from http://twig.screwdriver.net, and
> > if i'm
> > trying to use the imap feature of this scripts php crashes permanently.
> >
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-dev-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>