Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003240 [Quercus] block always 01-12-09 17:28 01-13-09 10:58
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product 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)
Additional Information
Attached Files

- Relationships

- Notes
(0003726)
nam
01-13-09 10:58

php/4739
 

- Issue History
Date Modified Username Field Change
01-12-09 17:28 koreth New Issue
01-12-09 17:31 nam Status new => assigned
01-12-09 17:31 nam Assigned To  => nam
01-13-09 10:58 nam Status assigned => closed
01-13-09 10:58 nam Note Added: 0003726
01-13-09 10:58 nam Resolution open => fixed
01-13-09 10:58 nam Fixed in Version  => 4.0.0


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