Menu

#68 pData::loadColorPalette throws deprecated error

open
nobody
None
5
2010-06-24
2010-06-24
Anonymous
No

Hello.

File pChart.php line 198 (method pChart::loadColorPalette) the function split is deprecated and throws errors on the trace :
>> ERROR TRACER STARTS : 2010/Jun/24 10:06:09 ----------------------------------------------------------------------------------------------------------------
Function split() is deprecated in /home/web/html/backoffice/library/pChart/pChart.class.php at line 198
Function split() is deprecated in /home/web/html/backoffice/library/pChart/pChart.class.php at line 198
Function split() is deprecated in /home/web/html/backoffice/library/pChart/pChart.class.php at line 198
Function split() is deprecated in /home/web/html/backoffice/library/pChart/pChart.class.php at line 198
Function split() is deprecated in /home/web/html/backoffice/library/pChart/pChart.class.php at line 198
Function split() is deprecated in /home/web/html/backoffice/library/pChart/pChart.class.php at line 198
Function split() is deprecated in /home/web/html/backoffice/library/pChart/pChart.class.php at line 198

This can be easily fixed by using 'explode' instead of 'split'.

I also suggest to use the function 'file_get_content' to retrieve file's buttfer insteead of 'fopen'.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB