Issues

ZF-10085: Can't create index on 64bit os running 32bit php

Issue Type: Bug Created: 2010-06-30T20:23:23.000+0000 Last Updated: 2012-11-23T06:51:21.000+0000 Status: Closed Fix version(s): Reporter: Dylan Arnold (dtron) Assignee: None Tags: - Zend_Search_Lucene

Related issues: Attachments:

Description

When trying to create a lucene index on a 64bit Centos machine running 32bit php I get the following exception.

Fatal error: Uncaught exception 'Zend_Search_Lucene_Exception' with message 'Long integers lower than -2147483648 (0x80000000) are not supported on 32-bit platforms.' in /mypath/ZendFramework-1.10.6/library/Zend/Search/Lucene/Storage/File.php:283

Stack trace:

0 /mypath/ZendFramework-1.10.6/library/Zend/Search/Lucene/Storage/File.php(230): Zend_Search_Lucene_Storage_File->writeLong32Bit(1)

1 /mypath/ZendFramework-1.10.6/library/Zend/Search/Lucene/Index/Writer.php(199): Zend_Search_Lucene_Storage_File->writeLong(1)

2 /mypath/ZendFramework-1.10.6/library/Zend/Search/Lucene.php(559): Zend_Search_Lucene_Index_Writer::createIndex(Object(Zend_Search_Lucene_Storage_Directory_Filesystem), 1, 0)

3 /mypath/ZendFramework-1.10.6/library/Zend/Search/Lucene/Storage/File.php on line 283

Comments

Posted by Ewg (ewg) on 2010-07-05T02:53:42.000+0000

Is this a problem ZF? Why run 32-bit php under 64-bit OS?

Posted by Dylan Arnold (dtron) on 2010-07-15T19:12:49.000+0000

I found the problem. It appears there is an issue with php 5.3.1 or at least my build of php 5.3.1

php-5.3.1/bin/php -r 'var_dump((int)0x80000000);' int(2147483647)

php-5.3.2/bin/php -r 'var_dump((int)0x80000000);' int(-2147483648)

All working with php-5.3.2

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-07-15T19:16:50.000+0000

proposing to close as wont-fix since php5.3.1 will not be supported with zf2, and it is generally wellknown that 5.3.0 and 5.3.1 are buggy.

Posted by Dylan Arnold (dtron) on 2012-11-22T23:19:49.000+0000

Feel free to close this, it was more for book keeping for other users. Not using this version of PHP / ended up migrating away from Zend_Search_Lucene.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts