silverstripe/sapphire — pull request #276 by halkyon (2012-03-27 10:04:42+00:00)
Title: E_DEPRECATED fixes - split() replaced with preg_split()

Fixed all the E_DEPRECATED things I could find, split() replaced with preg_split() and usage of "&new Class()". Tests all seem to pass now, even with E_DEPRECATED enabled in error reporting level. There's a companion pull request for silverstripe-cms which replaces a usage of ereg_replace() with preg_replace().

Debug now handles E_DEPRECATED and E_USER_DEPRECATED as notice level errors, so these get revealed in unit tests.

Next step is E_STRICT compliance!