[GH-ISSUE #355] large files not listed on armv7l GNU/Linux #261

Closed
opened 2026-03-02 15:57:18 +03:00 by kerem · 0 comments
Owner

Originally created by @plenaerts on GitHub (May 5, 2020).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/355

Files >2GB are not shown on armv7l, probably not on 32-bit in general.

The problem is with the use of built-in is_file().

A suggestion might be to use bash on linux: https://www.php.net/manual/en/function.is-file.php#81316

$ uname -m -o
armv7l GNU/Linux
$ ls -lh
total 2.1G
-rw-r--r-- 4 pieter pieter 2.1G May  3 09:17 test.large
-rw-r--r-- 1 pieter pieter    0 May  5 07:30 test.small
$ php -r 'echo "is_file(test.small) : " . is_file("test.small") . "\n"; echo "is_file(test.large) : " . is_file("test.large") . "\n";'
is_file(test.small) : 1
is_file(test.large) :
$ file /usr/bin/php
/usr/bin/php: ELF 32-bit LSB pie executable, ARM, etc etc
Originally created by @plenaerts on GitHub (May 5, 2020). Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/355 Files >2GB are not shown on armv7l, probably not on 32-bit in general. The problem is with the use of built-in is_file(). A suggestion might be to use bash on linux: https://www.php.net/manual/en/function.is-file.php#81316 ``` $ uname -m -o armv7l GNU/Linux $ ls -lh total 2.1G -rw-r--r-- 4 pieter pieter 2.1G May 3 09:17 test.large -rw-r--r-- 1 pieter pieter 0 May 5 07:30 test.small $ php -r 'echo "is_file(test.small) : " . is_file("test.small") . "\n"; echo "is_file(test.large) : " . is_file("test.large") . "\n";' is_file(test.small) : 1 is_file(test.large) : $ file /usr/bin/php /usr/bin/php: ELF 32-bit LSB pie executable, ARM, etc etc ```
kerem closed this issue 2026-03-02 15:57:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#261
No description provided.