Browse Source

A fix for a fix.

experimental/newoperator
Andrey Hristov 27 years ago
parent
commit
b331ead5bf
  1. 2
      ext/pcre/pcre.c

2
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);

Loading…
Cancel
Save