cvs: php4 /ext/standard reg.c

From: Date: Sat, 04 May 2002 11:20:12 +0000
Subject: cvs: php4 /ext/standard reg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11662@lists.php.net to get a copy of this message
hirokawa Sat May 4 07:20:12 2002 EDT Modified files: /php4/ext/standard reg.c Log: fixed a problem that ereg_replace() couldn't match with line stand/end marker. Index: php4/ext/standard/reg.c diff -u php4/ext/standard/reg.c:1.61 php4/ext/standard/reg.c:1.62 --- php4/ext/standard/reg.c:1.61 Mon Apr 8 14:43:35 2002 +++ php4/ext/standard/reg.c Sat May 4 07:20:12 2002 @@ -17,7 +17,7 @@ | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ -/* $Id: reg.c,v 1.61 2002/04/08 18:43:35 sniper Exp $ */ +/* $Id: reg.c,v 1.62 2002/05/04 11:20:12 hirokawa Exp $ */ #include <stdio.h> #include "php.h" @@ -372,7 +372,7 @@ && subs[walk[1] - '0'].rm_so > -1 && subs[walk[1] - '0'].rm_eo > -1 /* this next case shouldn't happen. it does. */ - && subs[walk[1] - '0'].rm_so < subs[walk[1] - '0'].rm_eo) { + && subs[walk[1] - '0'].rm_so <= subs[walk[1] - '0'].rm_eo) { tmp = subs[walk[1] - '0'].rm_eo - subs[walk[1] - '0'].rm_so; memcpy (walkbuf,

« previous php.cvs (#11662) next »