From b331ead5bf2b46c8b0511ccf88dcea57f6f45680 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Wed, 9 Jun 1999 21:21:27 +0000 Subject: [PATCH] A fix for a fix. --- ext/pcre/pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pcre/pcre.c b/ext/pcre/pcre.c index 39662be2ec..e880e53cac 100644 --- a/ext/pcre/pcre.c +++ b/ext/pcre/pcre.c @@ -831,7 +831,7 @@ PHP_FUNCTION(preg_split) else { /* if no match */ /* Add the last piece to the return value, if there is something left */ - if (limit != 0) + if (limit_val != 0) add_next_index_stringl(return_value, piece, subject_end-piece, 1); -- 2.50.1