Quercus: strict

From Resin 3.0

Jump to: navigation, search

Quercus has a strict mode which reports errors when attempting to execute certain questionable code, e.g.

  • Case insensitive function calls (foo() versus FOO())
  • Declaring the same argument twice in a function
  • Using a bare assignment expression in an if statement

To enable strict mode in Resin:

 <servlet-mapping url-pattern="*.php"
                  servlet-class="com.caucho.quercus.servlet.QuercusServlet">
   <init strict="true"/>
 </servlet-mapping>
Personal tools