Closed (fixed)
Project:
Printer, email and PDF versions
Version:
6.x-1.10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2010 at 14:53 UTC
Updated:
27 Jul 2010 at 11:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
ela.m commentedComment #2
sammys commentedHi there. Thanks for the bug report and patch. It most certainly fixes the problem on PHP 5.3 and has solved my problem.
Unfortunately, Drupal 6 has a base level of PHP 4 and, as a result, your patch will most likely not work because objects/arrays are not passed by reference automatically. I.e
theme()will not send object references to thetheme_print_pdf_*()functions in PHP 4. This will probably prevent your patch from being accepted by the maintainer.As I said, it will most likely not work so I'm leaving this as needs review pending some testing and/or patch fixing on PHP 4.
I've rerolled the patch to remove the upper directories so the patch applies with -p0.
Comment #3
Strykerraven commentedThanks, This worked for me.
Comment #4
chrisssi commentedCan't get it to work because of HUNKs.
Drupal 6.17, print.module 6x 1.10 on ubuntu server 10.04 64Bit.
Program "patch" is installed and I did
patch print < xxxxx.patch
Comment #5
jcnventuraActually, because of this incompatibility between PHP 5.3 and the older versions, the solution is to stop passing stuff by reference..
When Drupal 8 comes around, maybe that will use PHP 5.3 as minimum and then we can safely assume that it is safe to use references. Until then, everything will be passed by value.
I have committed to CVS a patch that removes all the by-reference arguments.
João Ventura