diff options
author | Andrey Hristov <andrey@php.net> | 2005-03-12 12:03:50 +0000 |
---|---|---|
committer | Andrey Hristov <andrey@php.net> | 2005-03-12 12:03:50 +0000 |
commit | 9e939133d2a1cd1e05d2f2f1afe49efc055a3d3e (patch) | |
tree | 69464185514a7c4d4beda71caba36407ccfed340 /main/SAPI.c | |
parent | 070147105f68e3361e724080962f60e560cb2cfc (diff) | |
download | php-git-9e939133d2a1cd1e05d2f2f1afe49efc055a3d3e.tar.gz |
FR 32275 - fifth parameter to preg_replace() to count number of replaces
made.
#it would be nice if someone of the doc team documents it. thanks!
Diffstat (limited to 'main/SAPI.c')
-rw-r--r-- | main/SAPI.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 7e5ed94128..c0c95ae95e 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -637,7 +637,7 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) result = php_pcre_replace("/realm=\"(.*?)\"/i", 16, ptr, ptr_len, repl_temp, - 0, &result_len, -1 TSRMLS_CC); + 0, &result_len, -1, NULL TSRMLS_CC); if(result_len==ptr_len) { efree(result); sprintf(Z_STRVAL_P(repl_temp), "realm=\\1-%ld\\2", myuid); @@ -645,7 +645,7 @@ SAPI_API int sapi_header_op(sapi_header_op_enum op, void *arg TSRMLS_DC) result = php_pcre_replace("/realm=([^\\s]+)(.*)/i", 21, ptr, ptr_len, repl_temp, - 0, &result_len, -1 TSRMLS_CC); + 0, &result_len, -1, NULL TSRMLS_CC); if(result_len==ptr_len) { char *lower_temp = estrdup(ptr); char conv_temp[32]; |