Changes between Initial Version and Version 1 of Ticket #337, comment 10


Ignore:
Timestamp:
2014-09-12T04:45:18Z (5 years ago)
Author:
moo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #337, comment 10

    initial v1  
    44
    55for example, if {{{__DIR__}}} equals to /www/test1:
    6  * without constant optimization {{{__DIR__ . "/test"}} is compiled into two opcode, with separate literal string, "/www/test1" and "/test" which is recognized by XCache as {{__DIR__}}
    7  * with constant optimization {{{__DIR__ . "/test"}} is compiled into 1 opcode, with just signle literal string, "/www/test1/test" which is NOT recognized by XCache as {{__DIR__}}
     6 * without constant optimization {{{__DIR__ . "/test"}}} is compiled into two opcode, with separate literal string, "/www/test1" and "/test" which is recognized by XCache as {{{__DIR__}}}
     7 * with constant optimization {{{__DIR__ . "/test"}}} is compiled into 1 opcode, with just signle literal string, "/www/test1/test" which is NOT recognized by XCache as {{{__DIR__}}}
    88
    99please set opcache.optimization_level=0 to workaround the problem