php.net |  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: jani@php.net Assigned:
Status: Closed Package: bbcode (PECL)
PHP Version: 1.0.1 OS: Any 64bit
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
44 - 37 = ?
Subscribe to this entry?

 
 [2008-08-18 08:40 UTC] jani@php.net
Description:
------------
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..


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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] jani@php.net
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
http://news.php.net/php.cvs/52491 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
http://pecl.php.net/get/bbcode

Should be fixed in the new release, thanks for your report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 00:01:32 2024 UTC