Project

General

Profile

Defect #944

Defect #828: Support for PHP7

PDF result differences between PHP5 and PHP7(fpdf)

Added by Andrei Bintintan over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
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

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

Updated by Andrei Bintintan over 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.

#2

Updated by Andrei Bintintan over 7 years ago

  • Status changed from In Progress to Resolved

Solved with #954

#3

Updated by Andrei Bintintan over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF