Home » Images » Image_Graph » Bug #4430
Call-time pass-by-reference has been deprecated
Details
| Submitted | 2005-05-25 11:51 UTC |
|---|---|
| From | lmalgras at tennaxia dot com |
| Assigned | nosey |
| Status | Closed |
| Package | Image_Graph |
| PHP Version | 5.0.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2005-05-25 11:51 UTC] lmalgras at tennaxia dot com
Description:
------------
with Image_Graph 0.4.0
PHP Warning: Call-time pass-by-reference has been deprecated - argument passedby value; If you would like to pass it by reference, modify the declaration of[runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /usr/share/pear/Image/Graph/Simple.php on line 87
PHP Warning: Call-time pass-by-reference has been deprecated - argument passedby value; If you would like to pass it by reference, modify the declaration of[runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /usr/share/pear/Image/Graph/Plot/Pie.php on line 92
Reproduce code:
---------------
php -l /usr/share/pear/Image/Graph/Simple.php
php -l /usr/share/pear/Image/Graph/Plot/Pie.php
[2005-06-17 12:41 UTC] lodb at hotmail dot com
I've the same error with PHP4.3.11 on multiple platforms (all Apache).
It works fine if you just remove the & before &$Dataset.
$Plot =& $Plotarea->addNew('line', &$Dataset);
has to be
$Plot =& $Plotarea->addNew('line', $Dataset);
[2005-06-17 18:08 UTC] pear dot nosey at veggerby dot dk
Actually I'd have to be
$Plot =& $Plotarea->addNew('line', array(&$Dataset));
To enable to pass dataset by reference. Otherwise you could (would?) not be able to add points to the dataset afterwards.
However I have now fixed this and it will be available in CVS later (today/tomorrow/...) and released with the next version of course.
/Jesper
/Jesper
[2005-06-17 18:46 UTC] pear dot nosey at veggerby dot dk
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
[2005-08-01 13:30 UTC] jocke at selincite dot com
We recieved similar error in a different file.
============
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /usr/lib/php/Image/Graph/Plot/Pie.php on line 92
============
I'm not sure if it's still valid or if Jesper fixed all these issues.
Thanks!
[2005-08-01 13:33 UTC] pear dot nosey at veggerby dot dk
It was fixed at the same time (http://cvs.php.net/co.php/pear/Image_Graph/Graph/Plot/Pie.php?r=1.11)
But thanks anyway
regards
Jesper