summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2005-03-12 12:03:50 (GMT)
committerAndrey Hristov <andrey@php.net>2005-03-12 12:03:50 (GMT)
commit9e939133d2a1cd1e05d2f2f1afe49efc055a3d3e (patch)
tree69464185514a7c4d4beda71caba36407ccfed340 /main
parent070147105f68e3361e724080962f60e560cb2cfc (diff)
downloadphp-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')
-rw-r--r--main/SAPI.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 7e5ed94..c0c95ae 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];