-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
php 32 bit (arm) filemtime on large file issue #18971
Comments
Hi, I am also facing an issue with file:scan. I hope I am allowed to post it here. While running the file:scan command I am receiving many, many, many times the next message:
I am running OwnCloud on a Synology Diskstation. Synology implemented the Busybox shell on their Diskstations. I don't know if there is something going wrong nor how to solve this. |
After digging a little bit more I have found that there is already exist some large file support for file size: So probably the right way to fix filemtime issue is to add getFileMTime similar to getFileSize. @hoorna |
this is still an issue in 32bit x86 in owncloud 8.2.2 |
@polrus Someone from ownCloud team should probably do a complete fix to cover other platforms as I care only about linux. |
@cyberb not sure what other platforms you mean. Windows server support has been dropped a while ago and so far only Linux is supported. (some people run on FreeBSD but it's not officially supported) |
If that is true then it should be easy to integrate my fix |
Feel free to submit a pull request - THX |
PR #25428 got merged, closing |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am facing an issue with running file:scan on arm:
filemtime(): stat failed
Looks like the reason is filemtime [1] is not working for files over 2G on 32 bit php [2]
Fixing function according to php website comment solved the problem:
I am sure that worked fine in past with older owncloud/php versions on the same hardware.
Is there something I am missing or this never worked on php (32bit) / arm?
Or is it possible to have some if, like:
I cannot upgrade php to 64 bit on arm board as there there is no such thing yet as arm64 or at least not popular enough on single board computers yet.
[1] http://php.net/manual/en/function.filemtime.php#68814
[2] https://github.com/owncloud/core/blob/master/lib/private/files/storage/local.php#L159
My system:
ownCloud version 8.0.4
PHP Version => 5.6.9
System => Linux cubietruck 3.4.79-sun7i #13 SMP PREEMPT Thu Jul 3 06:34:55 CST 2014 armv7l
Configure Command => './configure' '--enable-fpm' '--with-pgsql' '--with-pdo-pgsql' '--enable-opcache' '--prefix' '--with-config-file-path=/root/build/install/config' '--with-gd' '--enable-zip' '--with-zlib' '--with-curl' '--with-readline' '--with-ldap' '--with-ldap-sasl' '--with-libdir=lib/arm-linux-gnueabihf' '--enable-mbstring'
The text was updated successfully, but these errors were encountered: