diff options
Diffstat (limited to 'ext/pcre')
| -rw-r--r-- | ext/pcre/pcre.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
