summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2011-08-11 07:52:04 +0000
committerXinchen Hui <laruence@php.net>2011-08-11 07:52:04 +0000
commite780e7bfb96cac4e7de6ce7639a85ab86edac232 (patch)
tree99a7f52cca4ab882d2198e03af0ffdc3749f6f43
parenta652bb991dad987f873737af0cc3b02f8fcd6c88 (diff)
downloadphp-git-e780e7bfb96cac4e7de6ce7639a85ab86edac232.tar.gz
Recored change into regex.patch
-rw-r--r--ext/ereg/regex.patch20
1 files changed, 13 insertions, 7 deletions
diff --git a/ext/ereg/regex.patch b/ext/ereg/regex.patch
index c1e1d7d483..9bc448d7a7 100644
--- a/ext/ereg/regex.patch
+++ b/ext/ereg/regex.patch
@@ -1,9 +1,15 @@
-Only in regex: regcomp.lo
-Only in regex: regcomp.o
diff -u regex.orig/regerror.c regex/regerror.c
--- regex.orig/regerror.c 2011-08-09 19:49:30.000000000 +0800
-+++ regex/regerror.c 2011-08-09 19:46:15.000000000 +0800
-@@ -74,7 +74,7 @@
++++ regex/regerror.c 2011-08-11 15:13:42.000000000 +0800
+@@ -8,6 +8,7 @@
+ #include "regex.h"
+ #include "utils.h"
+ #include "regerror.ih"
++#include "php.h"
+
+ /*
+ = #define REG_OKAY 0
+@@ -74,7 +75,7 @@
char convbuf[50];
if (errcode == REG_ATOI)
@@ -12,7 +18,7 @@ diff -u regex.orig/regerror.c regex/regerror.c
else {
for (r = rerrs; r->code >= 0; r++)
if (r->code == target)
-@@ -82,9 +82,9 @@
+@@ -82,9 +83,9 @@
if (errcode&REG_ITOA) {
if (r->code >= 0)
@@ -24,7 +30,7 @@ diff -u regex.orig/regerror.c regex/regerror.c
assert(strlen(convbuf) < sizeof(convbuf));
s = convbuf;
} else
-@@ -106,12 +106,13 @@
+@@ -106,12 +107,13 @@
/*
- regatoi - internal routine to implement REG_ATOI
@@ -40,7 +46,7 @@ diff -u regex.orig/regerror.c regex/regerror.c
{
register const struct rerr *r;
-@@ -121,6 +122,6 @@
+@@ -121,6 +123,6 @@
if (r->code < 0)
return("0");