Anonymous | Login | Signup for a new account | 12-17-2024 11:40 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003134 | [Quercus] | minor | always | 12-07-08 00:30 | 12-10-08 09:15 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.0 | Product Version | 3.2.1 | ||||
Product Build | |||||||||
Summary | 0003134: json_decode throws exception on empty input | ||||||||
Description |
<?php json_decode('', true); Vanilla PHP executes this script; Quercus throws an exception: [00:28:52.271] {http--8080-7} java.lang.ArrayIndexOutOfBoundsException [00:28:52.271] {http--8080-7} at com.caucho.quercus.env.StringBuilderValue.<init>(StringBuilderValue.java:74) [00:28:52.271] {http--8080-7} at com.caucho.quercus.env.StringBuilderValue.subSequence(StringBuilderValue.java:660) [00:28:52.271] {http--8080-7} at com.caucho.quercus.env.StringValue.substring(StringValue.java:1671) [00:28:52.271] {http--8080-7} at com.caucho.quercus.lib.json.JsonDecoder.errorReturn(JsonDecoder.java:409) [00:28:52.271] {http--8080-7} at com.caucho.quercus.lib.json.JsonDecoder.errorReturn(JsonDecoder.java:392) [00:28:52.271] {http--8080-7} at com.caucho.quercus.lib.json.JsonDecoder.jsonDecodeImpl(JsonDecoder.java:115) [00:28:52.271] {http--8080-7} at com.caucho.quercus.lib.json.JsonDecoder.jsonDecode(JsonDecoder.java:54) [00:28:52.271] {http--8080-7} at com.caucho.quercus.lib.json.JsonModule.json_decode(JsonModule.java:303) [00:28:52.271] {http--8080-7} at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |