diff options
author | Antony Dovgal <tony2001@php.net> | 2007-07-24 22:35:18 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-07-24 22:35:18 +0000 |
commit | 3afa134717dcfc2e18efb17967c4210a84fec3c3 (patch) | |
tree | 4430bd18db861af8f93481903241e7c06a8b155c /ext/pcre/php_pcre.c | |
parent | 99a162bb8b81c5982cb0258de0906a2712aa6314 (diff) | |
download | php-git-3afa134717dcfc2e18efb17967c4210a84fec3c3.tar.gz |
[DOC] MFH: add PCRE_VERSION constant to ext/pcre
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 04603e9676..22e467e155 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -56,7 +56,7 @@ enum { }; -ZEND_DECLARE_MODULE_GLOBALS(pcre); +ZEND_DECLARE_MODULE_GLOBALS(pcre) static void pcre_handle_exec_error(int pcre_code TSRMLS_DC) /* {{{ */ @@ -149,6 +149,7 @@ static PHP_MINIT_FUNCTION(pcre) REGISTER_LONG_CONSTANT("PREG_BACKTRACK_LIMIT_ERROR", PHP_PCRE_BACKTRACK_LIMIT_ERROR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("PREG_RECURSION_LIMIT_ERROR", PHP_PCRE_RECURSION_LIMIT_ERROR, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("PREG_BAD_UTF8_ERROR", PHP_PCRE_BAD_UTF8_ERROR, CONST_CS | CONST_PERSISTENT); + REGISTER_STRING_CONSTANT("PCRE_VERSION", (char *)pcre_version(), CONST_CS | CONST_PERSISTENT); return SUCCESS; } |