Topic: Filesize and reafile incosistencies with pdf file
Not sure if this is relevant to your RPM but since I got the problem running PHP from your repo I thought I'd share the bug report here :
You are not logged in. Please login or register.
Please STOP WAR NOW! | |
For proper configuration and installation, please use the Configuration Wizard |
Versions: PHP ≤ 8.0 is EOL - PHP 8.1.28 - PHP 8.2.18 - PHP 8.2.19RC1 - PHP 8.3.6 - PHP 8.3.7RC1
More information: #remirepo IRC channel - Twitter: @RemiRepository - Discord server
Remi's RPM repository - Forum → User support → Filesize and reafile incosistencies with pdf file
Not sure if this is relevant to your RPM but since I got the problem running PHP from your repo I thought I'd share the bug report here :
I don't think the proposed code is a good code.
readfile send the result, so I think the "ob_get_clean" is truncated when larger than the output buffer size (part already sent). Which seems the right behavior.
Using file_get_contents or even better stat function seems a better solution.
Thanks Rémi. But I found out the problem was coming from an included file that had line returns after the ?>. I guess what threw me in the
wrong direction is that it was still working fine with some PDFs. So false alarm, case closed. :-)
Remi's RPM repository - Forum → User support → Filesize and reafile incosistencies with pdf file
Generated in 0.004 seconds (60% PHP - 40% DB) with 8 queries
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 2 official extensions. Copyright © 2003–2009 PunBB.