-
Notifications
You must be signed in to change notification settings - Fork 58
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
Update Sapi.php #61
Update Sapi.php #61
Conversation
Our of curiosity.. what problem does this solve? |
from: owncloud/core#23788 |
If the Sapi receives a string with a number in it, this will work just fine. PHP will cast it. The only case that error is triggered is when the received value is not a number at all, in which case What should happen is :
|
@evert I guess php7 is used with strict types in the above warning/error case |
@staabm , not possible. Strict types are set by the caller and strict is off per-file by default. Only if |
It was never clear what the root cause was for this issue, however.. I've now made a change that fixes this as a side-effect of using PHP 7 strict_types everywhere. |
In nextcloud this problem arises when downloading files > 2 GB on 32 bit machines. In my comment I showed a possible fix, but it involves changing sabre/http |
@evert please consider taking this change over. This effectively enables owncloud and nextcloud users to be able to transfer large files even on 32 Bit machines. Thanks @rikmeijer 👍 Patch is here: nextcloud/server#1707 (comment) |
ensure $contentLength is integer value.