athin / php-excel-reader

Automatically exported from code.google.com/p/php-excel-reader
0 stars 0 forks source link

split() is deprecated in PHP 5.3 #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
On line 79 and 844, the code makes references to the split() function,
which is deprecated in PHP 5.3.0 and will be removed in PHP 6.0.  The code
should be modified to use explode() (which is reverse compatible with older
versions of PHP).

Original issue reported on code.google.com by wiley14 on 12 Oct 2009 at 2:38

GoogleCodeExporter commented 9 years ago
Fixed in 2.22
Download at: http://code.google.com/p/php-excel-reader2/

Original comment by sirsh...@gmail.com on 19 Jan 2010 at 1:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
split is always depreacted  width php-excel-reader2.
Change to line 79 :
return(array_comb($k,split(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?time(
):$ts))));
with :
return(array_comb($k,explode(":",gmdate('s:i:G:j:w:n:Y:z:l:F:U',is_null($ts)?tim
e():$ts))));

and line 844 :
$parts = split(";",$format);
with :
$parts = explode(";",$format);

Best regards

Arnaud Méhat

Original comment by ame...@gmail.com on 12 Jun 2013 at 9:24