Re: Bug #10702: levenshtein doesn't handle odd arguments well
| From: | Zak Greant | Date: | Mon, 07 May 2001 09:49:44 +0000 |
| Subject: | Re: Bug #10702: levenshtein doesn't handle odd arguments well | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-54195@lists.php.net to get a copy of this message | ||
It works just fine for me on GNU/Linux as well. I guess that it is a Win32
specific issue...
--zak
----- Original Message -----
From: "Hartmut Holzgraefe" <hartmut@six.de>
To: <zak@php.net>
Cc: <php-dev@lists.php.net>
Sent: Monday, May 07, 2001 3:28 AM
Subject: Re: [PHP-DEV] Bug #10702: levenshtein doesn't handle odd arguments
well
> zak@php.net wrote:
> >
> > From: zak@php.net
> > Operating system: Win2k
> > PHP version: 4.0.5
> > PHP Bug Type: *Function Specific
> > Bug description: levenshtein doesn't handle odd arguments well
> >
> > Hello Hartmut,
> >
> > levenshtein ('foot','fot','0','0','1');
> > - and -
> > levenshtein ('foot','fot','0','1','1');
> >
> > return the following error:
> >
> > Warning: levenshtein(): argument string(s) too long in
f:/xitami/pub/php_er/mysql/test.php on line 3
>
> <?
> echo levenshtein
> ('foot','fot','0','0','1')."<br>\n";
> echo levenshtein
> ('foot','fot','0','1','1')."<br>\n";
> echo levenshtein
> ('foot','fot','1','1','0')."<br>\n";
> echo levenshtein
> ('foot','fot','1','0','0')."<br>\n";
> echo levenshtein
> ('foot','fot','0','0','0')."<br>\n";
> ?>
>
> gives
>
> 1
> 1
> 0
> 0
> 0
>
> for me (php-4.0.5 on a linux box)
>
> i know that it isn't checking for negative weights which would produce
> the message mentioned above, but zeros shouldn't break anything ... ?
>
> --
> Hartmut Holzgraefe hartmut@six.de http://www.six.de
> +49-711-99091-77
>
> --
> 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
>