|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58315 64bit problems (int vs long)
Submitted: 2008-08-18 08:40 UTC Modified: 2008-08-18 14:39 UTC
From: Assigned:
Status: Closed Package: bbcode (PECL)
PHP Version: 1.0.1 OS: Any 64bit
Private report: No CVE-ID: None
 [2008-08-18 08:40 UTC]
int != long in 64bit systems. Please test under 64bit system, with non-debug PHP and you'll get nice crashes all over the place. For example: zend_hash_num_elements() does NOT return long but int. Resource id's are also int's NOT long's..etc. etc. 

Simply reverting back to 1.0.0 fixes most issues..


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-08-18 08:49 UTC] xdecock at gmail dot com
I've changed too many int to long, i'll check case by case and release the 1.0.2 asap, thanks for the bug report, the switch to long was needed by the fact that zend won't store int values in int on 64 bit systems.
 [2008-08-18 09:06 UTC]
Eh...what do you mean with Zend not storing int values in int on 64 bit systems..?
 [2008-08-18 09:10 UTC] tony at daylessday dot org especially for you =)
 [2008-08-18 09:48 UTC] xdecock at gmail dot com
thanks a lot for the doc, haven't seen it

I'm currently working on those problems and 'll make a release as soon as all problems are gone.
 [2008-08-18 14:39 UTC] xdecock at gmail dot com
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at

Should be fixed in the new release, thanks for your report.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 02 10:03:34 2021 UTC