Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3240 | block | always | 01-12-09 17:28 | 01-13-09 10:58 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
Summary: | 0003240: json_decode fails on string values | ||||
Description: |
<?php print json_decode('foo.'); Regular PHP prints "foo." Quercus throws an exception: java.lang.ArrayIndexOutOfBoundsException at com.caucho.quercus.env.StringBuilderValue.<init>(StringBuilderValue.java:77) at com.caucho.quercus.env.StringBuilderValue.subSequence(StringBuilderValue.java:691) at com.caucho.quercus.env.StringValue.substring(StringValue.java:1699) at com.caucho.quercus.lib.json.JsonDecoder.errorReturn(JsonDecoder.java:466) at com.caucho.quercus.lib.json.JsonDecoder.jsonDecodeImpl(JsonDecoder.java:106) at com.caucho.quercus.lib.json.JsonDecoder.jsonDecode(JsonDecoder.java:54) at com.caucho.quercus.lib.json.JsonModule.json_decode(JsonModule.java:306) at _quercus._html._test._json_0decode__php.execute(_json_0decode__php.java:41) |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|