Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003184 [Quercus] minor always 12-16-08 20:16 12-17-08 10:01
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 4.0.0
  Product Build
Summary 0003184: NPE in base_convert when called with function return value
Description <?php
base_convert(md5('xyz'), 16, 36);

Throws an exception:

java.lang.NullPointerException
    at com.caucho.quercus.env.ObjectValue.<init>(ObjectValue.java:56)
    at com.caucho.quercus.env.JavaValue.<init>(JavaValue.java:62)
    at com.caucho.quercus.env.BigIntegerValue.<init>(BigIntegerValue.java:49)
    at com.caucho.quercus.lib.MathModule.baseToValue(MathModule.java:189)
    at com.caucho.quercus.lib.MathModule.base_convert(MathModule.java:364)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0003663)
koreth
12-16-08 20:20

Ah, my title is a bit wrong. This seems to happen when you pass in a large value, nothing to do with the function call -- md5() produces the error just because its results are always big. This throws the same exception:

<?php
base_convert('a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0', 16, 36);
 
(0003665)
nam
12-17-08 10:01

php/132a
 

- Issue History
Date Modified Username Field Change
12-16-08 20:16 koreth New Issue
12-16-08 20:20 koreth Note Added: 0003663
12-17-08 06:26 nam Status new => assigned
12-17-08 06:26 nam Assigned To  => nam
12-17-08 10:01 nam Status assigned => closed
12-17-08 10:01 nam Note Added: 0003665
12-17-08 10:01 nam Resolution open => fixed
12-17-08 10:01 nam Fixed in Version  => 4.0.0


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