Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

64bit check fails on aarch64 #830

Closed
zvidrih opened this issue Jan 5, 2023 · 2 comments
Closed

64bit check fails on aarch64 #830

zvidrih opened this issue Jan 5, 2023 · 2 comments
Labels
external Issue is outside our code

Comments

@zvidrih
Copy link

zvidrih commented Jan 5, 2023

SnappyMail 2.24.4 fails with

[301] Your PHP version is 32bit, 64bit is required!

on 64bit ARM architecture (Raspberry Pi running kernel 5.15.76-v8+, PHP 7.4.33) Most probably a PHP bug as

php -r "echo PHP_INT_SIZE;"
returns 4

Currently reverted to 2.24.3, as 2.24.4 fails completely.

@the-djmaze
Copy link
Owner

the-djmaze commented Jan 5, 2023

Are you really using arm64 AND PHP 64bit?
Because when PHP_INT_SIZE = 4 it is 32bit.

The largest integer supported is 2147483647 in 32 bit and 9223372036854775807 in 64 bit.

32bit issues:

  1. Just like the Maya calendar ended in 2012, the Unix Epoch ends in 2038
  2. IMAP message UID's and UIDVALIDITY > 2147483647 will fail
  3. IMAP Quota > 2GB (2147483647 / 1024 / 1024 / 1024) will fail
  4. UID > 2147483647 then the messages list looks empty
  5. etc.

So, if we allow 32bit, this does have complications.

Are you accidentally using 32b userland on a 64b kernel?

You can test with: $file $(which php)
It should say: /usr/bin/php: ELF 64-bit LSB pie executable

@the-djmaze the-djmaze added the external Issue is outside our code label Jan 5, 2023
@zvidrih
Copy link
Author

zvidrih commented Jan 5, 2023

Just checked and apparently I really am running 32bit userland on 64bit kernel ... which came as quite a surprise to me ;) Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Issue is outside our code
Projects
None yet
Development

No branches or pull requests

2 participants