Defect #828: Addons don't work in PHP7
PDF result differences between PHP5 and PHP7(fpdf)
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.
Updated by Andrei Bintintan about 4 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.