Page 1 of 1

PHP 5.5 - PHP Deprecated: Function split().... Safe to leave

Posted: Fri Mar 10, 2017 8:31 am
by NeilF
Having upgrade from PHP 5.3 to 5.5 I can see some warning along the lines of:-

Code: Select all

PHP Deprecated:  Function split() is deprecated in /xxxxxxxxxx.php(791) : eval()'d code on line 2
Now, is this reporting a problem? Or it is just a warning that can be ignored? The manual suggests it's still in 5.5? - http://php.net/manual/en/function.split.php


So is this an urgent issue for the moment, and I can track down the code in the coming weeks knowing it's just a warning as such?

Re: PHP 5.5 - PHP Deprecated: Function split().... Safe to l

Posted: Fri Mar 10, 2017 8:46 am
by Celauran
Seeing as it was removed in PHP 7 -- current version now is 7.1.2 -- I would start looking at replacing it. It will continue to work on 5.5, though.

Re: PHP 5.5 - PHP Deprecated: Function split().... Safe to l

Posted: Fri Mar 10, 2017 9:35 am
by NeilF
Celauran wrote:Seeing as it was removed in PHP 7 -- current version now is 7.1.2 -- I would start looking at replacing it. It will continue to work on 5.5, though.
That's what I was hoping... So it was working under 5.3, and as long as it's working the same under 5.5, that's fine.


Means I can find and address is in a few weeks, rather than being a warning of something no longer working under 5.5.

Thanks!