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 :

http://bugs.php.net/bug.php?id=54518

Re: Filesize and reafile incosistencies with pdf file

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.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Filesize and reafile incosistencies with pdf file

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. :-)