summaryrefslogtreecommitdiff
path: root/ext/ereg
diff options
context:
space:
mode:
authorFrank M. Kromann <fmk@php.net>2001-12-03 05:15:29 +0000
committerFrank M. Kromann <fmk@php.net>2001-12-03 05:15:29 +0000
commit03b5cb6775aeb4adf82d31a05be6d1034807d584 (patch)
treedfbd80da754c33a5b2831512ab5b3ab279300fdf /ext/ereg
parente7ef5041d52933660f84c8994186b88be7718b04 (diff)
downloadphp-git-03b5cb6775aeb4adf82d31a05be6d1034807d584.tar.gz
Make php_reg_replace available from shared extensions
Diffstat (limited to 'ext/ereg')
-rw-r--r--ext/ereg/ereg.c2
-rw-r--r--ext/ereg/php_ereg.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c
index 5bc7639c0f..a711f4abb5 100644
--- a/ext/ereg/ereg.c
+++ b/ext/ereg/ereg.c
@@ -263,7 +263,7 @@ PHP_FUNCTION(eregi)
/* {{{ php_reg_replace
* this is the meat and potatoes of regex replacement! */
-char *php_reg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended)
+PHPAPI char *php_reg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended)
{
regex_t re;
regmatch_t subs[NS];
diff --git a/ext/ereg/php_ereg.h b/ext/ereg/php_ereg.h
index c8adf74956..26edfe9af9 100644
--- a/ext/ereg/php_ereg.h
+++ b/ext/ereg/php_ereg.h
@@ -22,7 +22,7 @@
#ifndef REG_H
#define REG_H
-char *php_reg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended);
+PHPAPI char *php_reg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended);
PHP_FUNCTION(ereg);
PHP_FUNCTION(eregi);