CVS update: php4/ext/pcre
| From: | andrey | Date: | Wed, 09 Jun 1999 21:13:05 +0000 |
| Subject: | CVS update: php4/ext/pcre | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-1436@lists.php.net to get a copy of this message | ||
Date: Wednesday June 9, 1999 @ 17:13
Author: andrey
Update of /repository/php4/ext/pcre
In directory php:/tmp/cvs-serv2879/ext/pcre
Modified Files:
pcre.c
Log Message:
Fixed a bug in preg_split.
Fixed a bug in array_shift/array_pop.
Index: php4/ext/pcre/pcre.c
diff -u php4/ext/pcre/pcre.c:1.16 php4/ext/pcre/pcre.c:1.17
--- php4/ext/pcre/pcre.c:1.16 Wed Jun 9 11:02:56 1999
+++ php4/ext/pcre/pcre.c Wed Jun 9 17:13:05 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pcre.c,v 1.16 1999/06/09 15:02:56 andrey Exp $ */
+/* $Id: pcre.c,v 1.17 1999/06/09 21:13:05 andrey Exp $ */
#include "php.h"
@@ -829,9 +829,9 @@
limit_val--;
}
else { /* if no match */
- /* Add the last piece to the return value, if there
- were matches before */
- if (piece > subject->value.str.val)
+ /* Add the last piece to the return value, if there is
+ something left */
+ if (limit != 0)
add_next_index_stringl(return_value,
piece,
subject_end-piece, 1);