cvs: php4(PHP_4_2_0) /ext/standard reg.c

From: Date: Sun, 05 May 2002 08:39:57 +0000
Subject: cvs: php4(PHP_4_2_0) /ext/standard reg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-11704@lists.php.net to get a copy of this message
hirokawa Sun May 5 04:39:57 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/standard reg.c Log: fixed 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.58 php4/ext/standard/reg.c:1.58.2.1 --- php4/ext/standard/reg.c:1.58 Thu Feb 28 03:26:49 2002 +++ php4/ext/standard/reg.c Sun May 5 04:39:57 2002 @@ -17,7 +17,7 @@ | Jaakko Hyvätti <jaakko@hyvatti.iki.fi> | +----------------------------------------------------------------------+ */ -/* $Id: reg.c,v 1.58 2002/02/28 08:26:49 sebastian Exp $ */ +/* $Id: reg.c,v 1.58.2.1 2002/05/05 08:39:57 hirokawa Exp $ */ #include <stdio.h> #include "php.h" @@ -371,7 +371,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 (#11704) next »