Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001133 [Quercus] trivial always 05-19-06 18:09 05-21-06 07:31
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.0.20 Product Version 3.0.20
  Product Build
Summary 0001133: Quercus is a 32-bit PHP environment
Description Quercus emulates PHP on a 32-bit system. This is not a bug, exactly, but it may cause differences in behavior between existing (64-bit) PHP installations and Quercus. For example:

<?php
print crc32(1) . "\n";
?>

Quercus and Zend PHP compiled in 32-bit mode both return -2082672713. But PHP compiled in a 64-bit environment returns 2212294583.

At the very least, Quercus' 32-bit-ism should be documented somewhere. Or, ideally, there should be a config option to choose which mode to run in. (I believe the only difference from the point of view of PHP code is the default size of integers.)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0001160)
ferg
05-20-06 08:38

Actually, Quercus is 64-bits. All "int" values are 64-bit java longs. It's entirely possible that particular functions are buggy.
 
(0001163)
ferg
05-21-06 07:31

php/110a
 

- Issue History
Date Modified Username Field Change
05-19-06 18:09 koreth New Issue
05-20-06 08:38 ferg Note Added: 0001160
05-21-06 07:31 ferg Note Added: 0001163
05-21-06 07:31 ferg Assigned To  => ferg
05-21-06 07:31 ferg Status new => closed
05-21-06 07:31 ferg Resolution open => fixed
05-21-06 07:31 ferg Fixed in Version  => 3.0.20


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