cvs: php4 /ext/standard/ array.c levenshtein.c

From: Date: Wed, 24 May 2000 19:07:17 +0000
Subject: cvs: php4 /ext/standard/ array.c levenshtein.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-15698@lists.php.net to get a copy of this message
andrei Wed May 24 21:07:17 2000 EDT Modified files: /php4/ext/standard array.c levenshtein.c Log: @ Fixed min()/max() segfault. (Andrei) Index: php4/ext/standard/array.c diff -u php4/ext/standard/array.c:1.45 php4/ext/standard/array.c:1.46 --- php4/ext/standard/array.c:1.45 Wed May 24 10:41:35 2000 +++ php4/ext/standard/array.c Wed May 24 21:07:17 2000 @@ -853,6 +853,7 @@ php_error(E_WARNING, "min: must be passed at least 1 value"); RETURN_NULL(); } + set_compare_func(SORT_REGULAR); if (argc == 1) { pval **arr; @@ -904,6 +905,7 @@ php_error(E_WARNING, "max: must be passed at least 1 value"); RETURN_NULL(); } + set_compare_func(SORT_REGULAR); if (argc == 1) { pval **arr; Index: php4/ext/standard/levenshtein.c diff -u php4/ext/standard/levenshtein.c:1.6 php4/ext/standard/levenshtein.c:1.7 --- php4/ext/standard/levenshtein.c:1.6 Tue May 23 22:13:10 2000 +++ php4/ext/standard/levenshtein.c Wed May 24 21:07:17 2000 @@ -15,7 +15,7 @@ | Author: Hartmut Holzgraefe <hartmut@six.de> | +----------------------------------------------------------------------+ */ -/* $Id: levenshtein.c,v 1.6 2000/05/23 20:13:10 hholzgra Exp $ */ +/* $Id: levenshtein.c,v 1.7 2000/05/24 19:07:17 andrei Exp $ */ #include "php.h" #include <stdlib.h> @@ -97,7 +97,8 @@ /* {{{ proto int levenshtein(string str1, string str2) Calculate Levenshtein distance between two strings */ -PHP_FUNCTION(levenshtein){ +PHP_FUNCTION(levenshtein) +{ zval **str1, **str2; int l;

« previous php.version4 (#15698) next »