Mantis - Quercus
Viewing Issue Advanced Details
1257 minor always 07-18-06 13:56 07-18-06 16:32
koreth  
ferg  
normal  
closed 3.0.19  
fixed  
none    
none 3.0.20  
0001257: in_array causes NumberFormatException
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)
...

Notes
(0001418)
ferg   
07-18-06 16:32   
php/036g