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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
NeilF
Forum Newbie
Posts: 3
Joined: Fri Mar 10, 2017 12:23 am

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

Post 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?
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

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

Post 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.
NeilF
Forum Newbie
Posts: 3
Joined: Fri Mar 10, 2017 12:23 am

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

Post 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!
Post Reply