1

Resolved

Remove deprecated function split() in PHP v5.3

description

  1. Validating PHP Sources for WebRole directory.
    Error: C:\Users\a-jetann.REDMOND\Tasks\2010_05_26_D\wa_cml_php\lib\util\BasicSupport.class.php::325
    UNKNOWN ERROR TYPE 8192: "Function split() is deprecated"
    Error: C:\Users\a-jetann.REDMOND\Tasks\2010_05_26_D\wa_cml_php\lib\util\BasicSupport.class.php::326
    UNKNOWN ERROR TYPE 8192: "Function split() is deprecated"

comments

jeff00seattle wrote May 27, 2010 at 8:54 PM

Must be fixed. In 5.3, deprecated fails to function! Thereby, fails building of project.

fix: in BasicSupport.class.php @ line 323:
    if ( strlen($strCheckPath) >= strlen($strDirPath) ) {    
        $strDelimiter = '/[:\/\\\]/';
        $aDirPath = preg_split($strDelimiter, $strDirPath);
        $aCheckPath = preg_split($strDelimiter, $strCheckPath);

narendra_rajput wrote Jun 3, 2010 at 5:20 AM

Fixed Now: Use preg_split() function for instead of split()

wrote Jun 3, 2010 at 6:01 AM

wrote Feb 13, 2013 at 6:07 PM

wrote May 16, 2013 at 2:25 AM

wrote May 16, 2013 at 2:25 AM

wrote Jun 14, 2013 at 7:09 AM