Re: Re: PHP SEGV bug tracing.
| From: | Christian Robottom Reis | Date: | Thu, 24 Feb 2000 17:07:07 +0000 |
| Subject: | Re: Re: PHP SEGV bug tracing. | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-15953@lists.php.net to get a copy of this message | ||
On Thu, 24 Feb 2000 thies@digicol.de wrote:
> > <?
> > $str="[brain] =?iso-8859-1?B?RWR1Y2Hn428g4CBEaXN04m5jaWE=?=";
> > if (eregi("=?([A-Z,0-9,-]+)?([A-Z,0-9,-]+)?([A-Z,0-9,-,=,_]+)?=", $str)) {
> > $coded_strings = explode(' =?', $str);
> > while ($counter < sizeof($coded_strings)) {
> > $elements = explode('?', $coded_strings[$counter]);
> > base64_decode(str_replace('=', '',$elements[2]));
> > $counter++;
> > }
> > }
> > ?>
> >
> > Better?
>
> i'm pretty sure i fixed this one some days ago (in PHP 3 and
> 4) - please try one of the later snapshits (snaps.php.net) or
> use the CVS version. the problem bas a short buffer in
> base64_decode().
>
Any idea why, when I remove the eregi, it runs fine (and even decodes
properly)?
Cheers,
--
_/\ Christian Reis is sometimes kiko@radiumsystems.com.br
\/~ suicide architect | free software advocate | mountain biker