comparison xml/en/docs/dev/development_guide.xml @ 2819:b7ff3d1915a1

Development guide: fixed misleading comment about rc.options. While ngx_regex_compile() indeed used to pass rc.options as is to pcre_compile(), this is certainly not a guaranteed property of the interface. Further, it is no longer true since introduction of PCRE2 support in nginx 1.21.5.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 13 Jan 2022 01:36:10 +0300
parents 5e3591372bf6
children 537b98ec3c83
comparison
equal deleted inserted replaced
2818:2594d336342d 2819:b7ff3d1915a1
7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> 7 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd">
8 8
9 <article name="Development guide" 9 <article name="Development guide"
10 link="/en/docs/dev/development_guide.html" 10 link="/en/docs/dev/development_guide.html"
11 lang="en" 11 lang="en"
12 rev="10"> 12 rev="11">
13 13
14 <section name="Introduction" id="introduction"> 14 <section name="Introduction" id="introduction">
15 15
16 16
17 <section name="Code layout" id="code_layout"> 17 <section name="Code layout" id="code_layout">
621 621
622 rc.pattern = value; 622 rc.pattern = value;
623 rc.pool = cf->pool; 623 rc.pool = cf->pool;
624 rc.err.len = NGX_MAX_CONF_ERRSTR; 624 rc.err.len = NGX_MAX_CONF_ERRSTR;
625 rc.err.data = errstr; 625 rc.err.data = errstr;
626 /* rc.options are passed as is to pcre_compile() */ 626 /* rc.options can be set to NGX_REGEX_CASELESS */
627 627
628 if (ngx_regex_compile(&amp;rc) != NGX_OK) { 628 if (ngx_regex_compile(&amp;rc) != NGX_OK) {
629 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%V", &amp;rc.err); 629 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "%V", &amp;rc.err);
630 return NGX_CONF_ERROR; 630 return NGX_CONF_ERROR;
631 } 631 }