merged fix for obsolete php split method