[SearchEngine] Fix build on 32bit systems

This commit is contained in:
Romain Neutron
2012-10-23 11:34:01 +02:00
parent ac83a2f135
commit cf01631da7
10 changed files with 62 additions and 50 deletions

View File

@@ -41,13 +41,13 @@ class module_console_sphinxGenerateSuggestion extends Command
$params = phrasea::sbas_params($this->container);
foreach ($params as $sbas_id => $p) {
$index = crc32(
$index = sprintf("%u", crc32(
str_replace(
array('.', '%')
, '_'
, sprintf('%s_%s_%s_%s', $p['host'], $p['port'], $p['user'], $p['dbname'])
)
);
));
$tmp_file = $this->container['phraseanet.registry']->get('GV_RootPath') . 'tmp/dict' . $index . '.txt';