Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] 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  
Status closed   Product Version 3.0.20
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:

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.)
Additional Information
Attached Files

- Relationships

- Notes
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.
05-21-06 07:31


- 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