Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001850 [Quercus] major always 07-05-07 07:21 07-09-07 14:40
Reporter feherg View Status public  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version 3.1.1
Summary 0001850: comparing an empty string and a string containg the 0 character in PHP
Description The condition "" == "0" evaluates true under quercus, but false under php. I've only tried it on my java 1.5.0_12 installation, with the following xml files:
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" [^] xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" [^] xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee [^] http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> [^]
    
    <servlet>
        <servlet-name>Quercus Servlet</servlet-name>
        <servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>
        <init-param>
            <param-name>script-encoding</param-name>
            <param-value>ISO-8859-1</param-value>
        </init-param>
    </servlet>
    
    <servlet-mapping>
        <servlet-name>Quercus Servlet</servlet-name>
        <url-pattern>*.php</url-pattern>
    </servlet-mapping>

    ...etc...

resin-web.xml
<web-app xmlns="http://caucho.com/ns/resin"> [^]
  <servlet-mapping url-pattern="*.php"
                  servlet-class="com.caucho.quercus.servlet.QuercusServlet">
    <init>
      <script-encoding>iso-8859-1</script-encoding>
      <php-ini>
        <unicode.output_encoding>iso-8859-1</unicode.output_encoding>
        <unicode.runtime_encoding>iso-8859-1</unicode.runtime_encoding>
      </php-ini>
    </init>
  </servlet-mapping>
</web-app>
Additional Information
Attached Files  example.php [^] (239 bytes) 07-05-07 07:21

- Relationships

- Notes
(0002105)
sam
07-09-07 14:40

php/[03]36l
 

- Issue History
Date Modified Username Field Change
07-05-07 07:21 feherg New Issue
07-05-07 07:21 feherg File Added: example.php
07-05-07 14:20 feherg Issue Monitored: feherg
07-09-07 14:40 sam Status new => closed
07-09-07 14:40 sam Note Added: 0002105
07-09-07 14:40 sam Resolution open => fixed
07-09-07 14:40 sam Fixed in Version  => 3.1.2


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker