From 97f105e45021c19c5dbe87de23b19b9dfd415f65 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Thu, 30 Sep 1999 20:03:32 +0000 Subject: [PATCH] Fix nl2br crash. --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index b382cc4d4e..54343085fe 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1755,7 +1755,7 @@ PHP_FUNCTION(nl2br) { pval **str; - if (ARG_COUNT(ht)!=1 || getParametersEx(ht, 1, &str)==FAILURE) { + if (ARG_COUNT(ht)!=1 || getParametersEx(1, &str)==FAILURE) { WRONG_PARAM_COUNT; } -- 2.40.0