No graphs after upgrade to Feisty

Bug #127325 reported by Ivo Mans
12
Affects Status Importance Assigned to Milestone
libphp-phplot (Ubuntu)
Fix Released
Medium
Unassigned
Feisty
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: libphp-phplot

After I upgraded from Edgy to Feisty both my own graphs as well as by the package provided examples/example1.php don't produce a valid image. Only output is lots of warning messages:

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /usr/share/phplot/phplot.php on line 4084

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /usr/share/phplot/phplot.php on line 4084

TESTCASE:
1. Install libphp-phplot, php5-cli, php5-gd
2. cp /usr/share/doc/libphp-phplot/examples/data.php /tmp
3. sed 's|\.\./phplot\.php|/usr/share/phplot/phplot.php|' /usr/share/doc/libphp-phplot/examples/example1.php > /tmp/example1.php
4. cd /tmp
5. /usr/bin/php5 example1.php | file -

EXPECTED RESULT:
/dev/stdin: PNG image data, 600 x 400, 8-bit colormap, non-interlaced

Revision history for this message
Ivo Mans (ivomans) wrote :

I installed the newest phplot-5.0rc2.tar.gz from www.phplot.com. This package is working without a problem for me.

Daniel Hahler (blueyed)
Changed in libphp-phplot:
status: New → Confirmed
Revision history for this message
Daniel Hahler (blueyed) wrote :

I've not used the patch provided in the upstream report (http://sourceforge.net/tracker/index.php?func=detail&aid=1807476&group_id=14653&atid=114653).

My patch makes sure, that the parameters for array_merge are of type array always (to mimic the PHP4 behaviour).

This fix _should_ work, but I've not tested it. Please confirm, if it works for you (either by applying just the patch to phplot.php or building a new package using the whole debdiff, see https://wiki.ubuntu.com/UbuntuPackagingGuide/BuildFromDebdiff).

Revision history for this message
eocanha (eocanha) wrote :

I can confirm that the patch submitted by dAniel hAhler works fine.

Changed in libphp-phplot:
assignee: nobody → kitterman
status: Confirmed → In Progress
Changed in libphp-phplot:
assignee: nobody → blueyed
importance: Undecided → Medium
status: New → Triaged
importance: Undecided → Medium
assignee: kitterman → nobody
status: In Progress → Fix Committed
Revision history for this message
Daniel Hahler (blueyed) wrote :

Scott proposed a StableReleaseUpdate for Feisty, so here's the debdiff for it.

Changed in libphp-phplot:
assignee: blueyed → nobody
Revision history for this message
Daniel Hahler (blueyed) wrote :

libphp-phplot (4.4.6+5.0rc1.dfsg-0.1ubuntu2) gutsy; urgency=low

  * phplot.php: make sure that array_merge gets array parameters (LP: #127325)

 -- dAniel hAhler <email address hidden> Sun, 14 Oct 2007 23:48:21 +0200

Changed in libphp-phplot:
status: Fix Committed → Fix Released
Changed in libphp-phplot:
assignee: nobody → kitterman
status: Triaged → In Progress
Revision history for this message
Scott Kitterman (kitterman) wrote :

Uploaded. Once it's published to feisty-proposed, please send mail to the MOTU ML asking for testing help.

Changed in libphp-phplot:
assignee: kitterman → blueyed
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into feisty-proposed, please test.

Daniel Hahler (blueyed)
Changed in libphp-phplot:
assignee: blueyed → nobody
Daniel Hahler (blueyed)
description: updated
Revision history for this message
Daniel Schwitzgebel (schwitzd) wrote :

Work for me

Revision history for this message
Luca Falavigna (dktrkranz) wrote :

I get the output shown in EXPECTED RESULT, fix works for me.

Minimum aging period of seven days elapsed and two persons stated fix is good, marking verification-done as per https://wiki.ubuntu.com/StableReleaseUpdates (old policy).

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to feisty-updates.

Changed in libphp-phplot:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.