From: Andrey Hristov Date: Wed, 9 Jun 1999 21:21:27 +0000 (+0000) Subject: A fix for a fix. X-Git-Tag: BEFORE_REMOVING_GC_STEP1~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b331ead5bf2b46c8b0511ccf88dcea57f6f45680;p=php A fix for a fix. --- 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);