Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001257 [Quercus] minor always 07-18-06 13:56 07-18-06 16:32
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.20 Product Version 3.0.19
  Product Build
Summary 0001257: in_array causes NumberFormatException
Description PHP:

<?php
if (in_array(".", array(1))) error_log("yep");
?>

This dies with an exception:

java.lang.NumberFormatException: For input string: "."
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
    at java.lang.Double.parseDouble(Double.java:482)
    at com.caucho.quercus.env.StringBuilderValue.toDouble(StringBuilderValue.java:317)
    at com.caucho.quercus.env.Value.eq(Value.java:170)
    at com.caucho.quercus.env.ArrayValue.contains(ArrayValue.java:626)
    at com.caucho.quercus.lib.ArrayModule.in_array(ArrayModule.java:1473)
...
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0001418)
ferg
07-18-06 16:32

php/036g
 

- Issue History
Date Modified Username Field Change
07-18-06 13:56 koreth New Issue
07-18-06 16:32 ferg Note Added: 0001418
07-18-06 16:32 ferg Assigned To  => ferg
07-18-06 16:32 ferg Status new => closed
07-18-06 16:32 ferg Resolution open => fixed
07-18-06 16:32 ferg Fixed in Version  => 3.0.20


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