]> granicus.if.org Git - php/commitdiff
A fix for a fix.
authorAndrey Hristov <andrey@php.net>
Wed, 9 Jun 1999 21:21:27 +0000 (21:21 +0000)
committerAndrey Hristov <andrey@php.net>
Wed, 9 Jun 1999 21:21:27 +0000 (21:21 +0000)
ext/pcre/pcre.c

index 39662be2ecfb4b0c350c0a0acdde8c59c3b9e5b9..e880e53cac22ca0dd52431d761bea6c7bfc0d454 100644 (file)
@@ -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);