openbsd-ports/www/php4/patches/patch-ext_standard_basic_functions_c
bernd a99421ea2d Fix a nasty bug in the new php-4.4.1 release. Some php applications
are badly broken without this patch. (e.g. squirrelmail and phpadsnew)

Fix from php cvs. (BugID #35067)

http://bugs.php.net/bug.php?id=35067
http://marc.theaimsgroup.com/?l=php-cvs&m=113095430113617&w=2

ok robert@
2005-11-07 21:33:58 +00:00

15 lines
630 B
Plaintext

$OpenBSD: patch-ext_standard_basic_functions_c,v 1.1 2005/11/07 21:33:58 bernd Exp $
--- ext/standard/basic_functions.c.orig Mon Nov 7 17:07:59 2005
+++ ext/standard/basic_functions.c Mon Nov 7 17:08:25 2005
@@ -802,8 +802,8 @@ function_entry basic_functions[] = {
PHP_FE(prev, first_arg_force_ref)
PHP_FE(next, first_arg_force_ref)
PHP_FE(reset, first_arg_force_ref)
- PHP_FE(current, NULL)
- PHP_FE(key, NULL)
+ PHP_FE(current, first_arg_force_ref)
+ PHP_FE(key, first_arg_force_ref)
PHP_FE(min, NULL)
PHP_FE(max, NULL)
PHP_FE(in_array, NULL)