Hello!

After about three days' active development, I'm happy to annouce the
new development version of ngx_openresty, 1.2.1.3:

   http://openresty.org/#Download

Below is the change log for this release (compared with the last release,
1.2.1.1):

 *   upgraded EchoNginxModule to 0.40.

     *   feature: added new directive echo_status which can be used
         to specify a different default response status code other
         than 200. thanks Maxime Corbeau for requesting this.

 *   upgraded LuaNginxModule to 0.5.3.

     *   bugfix: ngx.say and ngx.print might cause nginx to crash
         when table-typed arguments were given. thanks sztanpet for
         reporting this in github issue #54.

 *   applied location_if_inherits_proxy.patch to the nginx core. see
     <http://mailman.nginx.org/pipermail/nginx-devel/2012-June/002374.html>
for details.

The HTML version of the change log with lots of helpful hyper-links can
be browsed here:

   http://openresty.org/#ChangeLog1002001

Special thanks go to all our contributors and users for helping make this
happen :)

OpenResty (aka. ngx_openresty) is a full-fledged web application
server by bundling the standard Nginx core, lots of 3rd-party Nginx
modules, as well as most of their external dependencies. See
OpenResty's homepage for details:

    http://openresty.org/

Have fun!
-agentzh
    Good!

    如果升级,需要注意些神马吗?

    2012/6/25 agentzh <age...@gmail.com>
    Hello!

    After about three days' active development, I'm happy to annouce the
    new development version of ngx_openresty, 1.2.1.3:

      http://openresty.org/#Download

    Below is the change log for this release (compared with the last release,
    1.2.1.1):

     *   upgraded EchoNginxModule to 0.40.

        *   feature: added new directive echo_status which can be used
            to specify a different default response status code other
            than 200. thanks Maxime Corbeau for requesting this.

     *   upgraded LuaNginxModule to 0.5.3.

        *   bugfix: ngx.say and ngx.print might cause nginx to crash
            when table-typed arguments were given. thanks sztanpet for
            reporting this in github issue #54.

     *   applied location_if_inherits_proxy.patch to the nginx core. see
        <http://mailman.nginx.org/pipermail/nginx-devel/2012-June/002374.html>
    for details.

    The HTML version of the change log with lots of helpful hyper-links can
    be browsed here:

      http://openresty.org/#ChangeLog1002001

    Special thanks go to all our contributors and users for helping make this
    happen :)

    OpenResty (aka. ngx_openresty) is a full-fledged web application
    server by bundling the standard Nginx core, lots of 3rd-party Nginx
    modules, as well as most of their external dependencies. See
    OpenResty's homepage for details:

       http://openresty.org/

    Have fun!
    -agentzh




    --
    Wendal Chen
    GuangDong China
      Hello!
      
      On Mon, Jun 25, 2012 at 12:40 PM, Wendal Chen <wend...@gmail.com> wrote:
      > Good!
      >
      > 如果升级,需要注意些神马吗?
      >
      
      注意总是先在测试环境运行自己的业务测试集就可以了 :) 虽然向后兼容性是我一直在努力保证的,但升级前自己进行必要的回归测试还是必要的 :)
      
      Regards,
      -agentzh
      
        在OpenSUSE 11.4上编译,会报以下错误很多次

        ../redis-nginx-module-0.3.6/ngx_http_redis_module.c:500:24: warning: array index of '3' indexes past the end of an array (that contains 2 elements) [-Warray-bounds]
            if (ngx_strncmp(p, "$", sizeof("$") - 1) == 0) {
                ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
        src/core/ngx_string.h:53:75: note: expanded from:
        #define ngx_strncmp(s1, s2, n)  strncmp((const char *) s1, (const char *) s2, n)
                                                                                  ^
        /usr/include/bits/string2.h:926:19: note: expanded from:
                          ? strcmp (s1, s2) : strncmp (s1, s2, n)))
                                        ^
        /usr/include/bits/string2.h:817:28: note: expanded from:
                       : __strcmp_gc (s1, s2, __s2_len))                              \
                                          ^
        /usr/include/bits/string2.h:911:27: note: expanded from:
                                            (__const char *) (s2))[3]);               \
                                                              ^    ~

        只要是用到了ngx_strncmp地方,都报警告


        在 2012年6月25日 下午12:46,agentzh <age...@gmail.com>写道:
        Hello!

        On Mon, Jun 25, 2012 at 12:40 PM, Wendal Chen <wend...@gmail.com> wrote:
        > Good!
        >
        > 如果升级,需要注意些神马吗?
        >

        注意总是先在测试环境运行自己的业务测试集就可以了 :) 虽然向后兼容性是我一直在努力保证的,但升级前自己进行必要的回归测试还是必要的 :)

        Regards,
        -agentzh




        --
        Wendal Chen
        GuangDong China
          补充以下,我用的是clang(LLVM)

          在 2012年6月25日 下午7:05,Wendal Chen <wend...@gmail.com>写道:
          在OpenSUSE 11.4上编译,会报以下错误很多次

          ../redis-nginx-module-0.3.6/ngx_http_redis_module.c:500:24: warning: array index of '3' indexes past the end of an array (that contains 2 elements) [-Warray-bounds]
              if (ngx_strncmp(p, "$", sizeof("$") - 1) == 0) {
                  ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
          src/core/ngx_string.h:53:75: note: expanded from:
          #define ngx_strncmp(s1, s2, n)  strncmp((const char *) s1, (const char *) s2, n)
                                                                                    ^
          /usr/include/bits/string2.h:926:19: note: expanded from:
                            ? strcmp (s1, s2) : strncmp (s1, s2, n)))
                                          ^
          /usr/include/bits/string2.h:817:28: note: expanded from:
                         : __strcmp_gc (s1, s2, __s2_len))                              \
                                            ^
          /usr/include/bits/string2.h:911:27: note: expanded from:
                                              (__const char *) (s2))[3]);               \
                                                                ^    ~

          只要是用到了ngx_strncmp地方,都报警告


          在 2012年6月25日 下午12:46,agentzh <age...@gmail.com>写道:

          Hello!

          On Mon, Jun 25, 2012 at 12:40 PM, Wendal Chen <wend...@gmail.com> wrote:
          > Good!
          >
          > 如果升级,需要注意些神马吗?
          >

          注意总是先在测试环境运行自己的业务测试集就可以了 :) 虽然向后兼容性是我一直在努力保证的,但升级前自己进行必要的回归测试还是必要的 :)

          Regards,
          -agentzh




          --
          Wendal Chen
          GuangDong China



          --
          Wendal Chen
          GuangDong China
            Hello!
            
            2012/6/25 Wendal Chen <wend...@gmail.com>:
            > 补充以下,我用的是clang(LLVM)
            >
            > 在 2012年6月25日 下午7:05,Wendal Chen <wend...@gmail.com>写道:
            >
            >> 在OpenSUSE 11.4上编译,会报以下错误很多次
            >>
            >> ../redis-nginx-module-0.3.6/ngx_http_redis_module.c:500:24: warning: array
            >> index of '3' indexes past the end of an array (that contains 2 elements)
            >> [-Warray-bounds]
            >>     if (ngx_strncmp(p, "$", sizeof("$") - 1) == 0) {
            >>         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
            >> src/core/ngx_string.h:53:75: note: expanded from:
            
            我在 Slackware Linux 13.5 上使用 clang 3.1 同时加上了 -Wall -Warray-bounds
            选项,无法捕捉到这样的警告,也没有其他警告。。。你使用的是什么版本的 clang? clang -v 命令的输出是?在我这里是
            
                $ clang -v
                clang version 3.1 (trunk 148392)
                Target: x86_64-unknown-linux-gnu
                Thread model: posix
            
            Best regards,
            -agentzh
            
              悲催... 重现不了了

              在 2012年6月28日 上午12:40,agentzh <age...@gmail.com>写道:
              Hello!

              2012/6/25 Wendal Chen <wend...@gmail.com>:
              > 补充以下,我用的是clang(LLVM)
              >
              > 在 2012年6月25日 下午7:05,Wendal Chen <wend...@gmail.com>写道:
              >
              >> 在OpenSUSE 11.4上编译,会报以下错误很多次
              >>
              >> ../redis-nginx-module-0.3.6/ngx_http_redis_module.c:500:24: warning: array
              >> index of '3' indexes past the end of an array (that contains 2 elements)
              >> [-Warray-bounds]
              >>     if (ngx_strncmp(p, "$", sizeof("$") - 1) == 0) {
              >>         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
              >> src/core/ngx_string.h:53:75: note: expanded from:

              我在 Slackware Linux 13.5 上使用 clang 3.1 同时加上了 -Wall -Warray-bounds
              选项,无法捕捉到这样的警告,也没有其他警告。。。你使用的是什么版本的 clang? clang -v 命令的输出是?在我这里是

                 $ clang -v
                 clang version 3.1 (trunk 148392)
                 Target: x86_64-unknown-linux-gnu
                 Thread model: posix

              Best regards,
              -agentzh




              --
              Wendal Chen
              GuangDong China
                Write a Reply...