Defect #944
Defect #828: Support for PHP7
PDF result differences between PHP5 and PHP7(fpdf)
Start date:
09/10/2016
Due date:
% Done:
0%
Estimated time:
Description
The unit-tests reveals that the PHP7 produces a slightly different PDF compared to the PHP5 version. The PDF itself is identical, as it seems that the additional content is "empty", for example:
q 0.784 0.039 0.039 rg BT 79.37 624.57 Td () Tj ET Q
See attached screenshot.
Files
Updated by Andrei Bintintan about 7 years ago
- Subject changed from PDF result differences between PHP5 and PHP7 to PDF result differences between PHP5 and PHP7(fpdf)
- Description updated (diff)
The reason seems to come from the MultiCell function in FPDF. I haven't investigated WHY, but a substring in php5 returns false, whereas in php7 returns "".
Solution: convert ->Cell calls to string.
Updated by Andrei Bintintan about 7 years ago
- Status changed from In Progress to Resolved
Solved with #954