magpierss 0.72 obsoleted with split
magpierss is a really handy PHP RSS parser. The latest version is 0.72 and it hasn't been updated in a while. Even worse, the 'split' PHP function, used in 'rss_parse.inc', "has been DEPRECATED as of PHP 5.3.0."
Good news is that it's rather easy to fix by yourself. You just have to replace 'split' with 'preg_split' and slight modification to its arguments. The following is the original line of code:
list($ns, $el) = split( ':', $element, 2);
The replacement code is as follows:
list($ns, $el) = preg_split( '/:/', $element, 2);
The two different lines of code should work exactly the same. With this simple line change, magpierss 0.72 should work with the new version of PHP without any warnings nor failure.
Thank you so much for this post!
Thank you for this, I recently updated php only to find magpie on the fritz and this fix worked great!
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
27 Users Online
Copyright © 1996 - 2020. All Rights Reserved.