CVS update: php3/functions

From: Date: Wed, 09 Jun 1999 21:22:11 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-6782@lists.php.net to get a copy of this message
Date: Wednesday June 9, 1999 @ 17:22 Author: andrey Update of /repository/php3/functions In directory php:/tmp/cvs-serv7092/functions Modified Files: pcre.c Log Message: Fixed a bug in preg_split. Index: php3/functions/pcre.c diff -u php3/functions/pcre.c:1.9 php3/functions/pcre.c:1.10 --- php3/functions/pcre.c:1.9 Wed Jun 9 11:00:09 1999 +++ php3/functions/pcre.c Wed Jun 9 17:22:10 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pcre.c,v 1.9 1999/06/09 15:00:09 andrey Exp $ */ +/* $Id: pcre.c,v 1.10 1999/06/09 21:22:10 andrey Exp $ */ #include "php.h" @@ -784,9 +784,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_val != 0) add_next_index_stringl(return_value, piece , subject_end-piece, 1);

« previous php.dev (#6782) next »