php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39893 Image/Graph/Plot/Odo.php syntax error
Submitted: 2006-12-19 22:11 UTC Modified: 2006-12-19 22:20 UTC
From: dvboom at hotmail dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.4.4 OS: windowsxp
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dvboom at hotmail dot com
New email:
PHP Version: OS:

 

 [2006-12-19 22:11 UTC] dvboom at hotmail dot com
Description:
------------
the function setRangeMarkerFillStyle was set to return a reference object.  This function does not return anything. 

OLD:  function &setRangeMarkerFillStyle(&$rangeMarkerFillStyle )

NEW:  function setRangeMarkerFillStyle(&$rangeMarkerFillStyle)

I removed the & from the function name - and the error was resolved. 



Reproduce code:
---------------
Just create a graph and call setRangeMarkerFillStyle

See:  http://pear.veggerby.dk/samples/code/id/plot_odo/



Actual result:
--------------
Notice: Only variable references should be returned by reference in D:\PHP\PEAR\Image\Graph\Plot\Odo.php on line 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-19 22:20 UTC] tony2001@php.net
Please report PEAR problems using PEAR bug tracker.
http://pear.php.net/package/Image_Graph
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Dec 02 06:00:01 2025 UTC