Project

General

Profile

Defect #944

Defect #828: Addons don't work in PHP7

PDF result differences between PHP5 and PHP7(fpdf)

Added by Andrei Bintintan about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Start date:
09/10/2016
Due date:
% Done:

0%

Estimated time:

Description

<p>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:</p>

q 0.784 0.039 0.039 rg BT 79.37 624.57 Td () Tj ET Q

<p>See attached screenshot.</p>

Screenshot_22.png View Screenshot_22.png 140 KB Andrei Bintintan, 09/10/2016 03:23 PM
577

History

#1 Updated by Andrei Bintintan about 1 year ago

  • Subject changed from PDF result differences between PHP5 and PHP7 to PDF result differences between PHP5 and PHP7(fpdf)
  • Description updated (diff)

<p>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 "". <br />
<br />
Solution: convert ->Cell calls to string.</p>

#2 Updated by Andrei Bintintan about 1 year ago

  • Status changed from In Progress to Resolved

<p>Solved with #954</p>

#3 Updated by Andrei Bintintan about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF