Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003392 [Quercus] block always 03-16-09 10:28 03-18-09 15:35
Reporter koreth View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003392: Quercus doesn't decode hex integer strings
Description <?php
$x = 5000;
$y = '0x5000';
print $x < $y ? "yep" : "nope";

PHP prints "yep". Quercus prints "nope".
Additional Information
Attached Files  patch.txt [^] (4,946 bytes) 03-16-09 11:27
 patchv2.txt [^] (4,800 bytes) 03-16-09 13:47

- Relationships

- Notes
(0003880)
koreth
03-16-09 11:27

Patch attached. Not sure if that's how you'd want to do it but it fixes the problem for me.
 
(0003881)
koreth
03-16-09 12:04

Patch doesn't seem quite adequate; it fixes the test case but there seem to be at least one additional case involving strings that get turned into ConstStringValue that I haven't been able to distill to a simple test yet.
 
(0003882)
koreth
03-16-09 13:48

Updated patch attached; it was just a bug in the code I added.
 
(0003897)
nam
03-18-09 15:35

php/035r
 

- Issue History
Date Modified Username Field Change
03-16-09 10:28 koreth New Issue
03-16-09 11:27 koreth File Added: patch.txt
03-16-09 11:27 koreth Note Added: 0003880
03-16-09 12:04 koreth Note Added: 0003881
03-16-09 13:47 koreth File Added: patchv2.txt
03-16-09 13:48 koreth Note Added: 0003882
03-16-09 13:57 nam Status new => assigned
03-16-09 13:57 nam Assigned To  => nam
03-18-09 15:35 nam Status assigned => closed
03-18-09 15:35 nam Note Added: 0003897
03-18-09 15:35 nam Resolution open => fixed
03-18-09 15:35 nam Fixed in Version  => 4.0.0


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