Date: 06/09/99
- Next message: andrey: "[PHP-DEV] CVS update: php3"
- Previous message: Bug Database: "[PHP-DEV] Bug #1510 Updated: -R options needed for linking -lttf and -lpq"
- Next in thread: andrey: "[PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wednesday June 9, 1999 @ 11:00
Author: andrey
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv5025/functions
Modified Files:
pcre.c
Log Message:
Fixed a bug in pcre_replace.
Index: php3/functions/pcre.c
diff -u php3/functions/pcre.c:1.8 php3/functions/pcre.c:1.9
--- php3/functions/pcre.c:1.8 Fri Jun 4 10:03:33 1999
+++ php3/functions/pcre.c Wed Jun 9 11:00:09 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pcre.c,v 1.8 1999/06/04 14:03:33 andrey Exp $ */
+/* $Id: pcre.c,v 1.9 1999/06/09 15:00:09 andrey Exp $ */
#include "php.h"
@@ -448,15 +448,15 @@
/* {{{ int _pcre_get_backref(const char *walk, int *backref) */
static int _pcre_get_backref(const char *walk, int *backref)
{
- if (*walk < '0' && *walk > '9')
- return 0;
- else
+ if (*walk && *walk >= '0' && *walk <= '9')
*backref = *walk - '0';
+ else
+ return 0;
- if (walk[1] >= '0' && walk[1] <= '9')
+ if (walk[1] && walk[1] >= '0' && walk[1] <= '9')
*backref = *backref * 10 + walk[1] - '0';
- return 1;
+ return 1;
}
/* }}} */
-- PHP Development Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: andrey: "[PHP-DEV] CVS update: php3"
- Previous message: Bug Database: "[PHP-DEV] Bug #1510 Updated: -R options needed for linking -lttf and -lpq"
- Next in thread: andrey: "[PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

