Changeset 13fc574


Ignore:
Timestamp:
01/25/12 08:57:32 (4 months ago)
Author:
mrook
Branches:
master
Children:
ca1d246
Parents:
2469001 (diff), 0483922 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Michiel Rook <mrook@…> (01/25/12 08:57:32)
git-committer:
Michiel Rook <mrook@…> (01/25/12 08:57:32)
Message:

Merge pull request #73 from bd808/bug-split-deprecated

Remove deprecated split() usage.

Location:
classes/phing/tasks/ext
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • classes/phing/tasks/ext/coverage/CoverageReportTask.php

    r42f77c6 r0483922  
    239239            $html = $geshi->parse_code(); 
    240240 
    241             $lines = split("<li>|</li>", $html); 
     241            $lines = preg_split("#</?li>#", $html); 
    242242 
    243243            // skip first and last line 
  • classes/phing/tasks/ext/phk/PhkPackageTask.php

    rf05a911 r0483922  
    225225         */ 
    226226        $output = trim(ob_get_clean()); 
    227         $output = split("\n", $output); 
     227        $output = explode("\n", $output); 
    228228        foreach ($output as $line) { 
    229229            /* 
  • classes/phing/tasks/ext/coverage/CoverageReportTransformer.php

    r9afe919 r2eb9b25  
    108108 
    109109        $proc = new XSLTProcessor(); 
    110         if (version_compare(PHP_VERSION,'5.4',"<")) 
     110        if (defined('XSL_SECPREF_WRITE_FILE')) 
    111111        { 
    112             ini_set("xsl.security_prefs", XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 
    113         } 
    114         else 
    115         { 
    116             $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 
     112            if (version_compare(PHP_VERSION,'5.4',"<")) 
     113            { 
     114                ini_set("xsl.security_prefs", XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 
     115            } 
     116            else 
     117            { 
     118                $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 
     119            } 
    117120        } 
    118121         
  • classes/phing/tasks/ext/phpunit/PHPUnitReportTask.php

    r9afe919 r2eb9b25  
    150150 
    151151        $proc = new XSLTProcessor(); 
    152         if (version_compare(PHP_VERSION,'5.4',"<")) 
    153         { 
    154             ini_set("xsl.security_prefs", XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 
    155         } 
    156         else 
    157         { 
    158             $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 
     152        if (defined('XSL_SECPREF_WRITE_FILE')) 
     153        { 
     154            if (version_compare(PHP_VERSION,'5.4',"<")) 
     155            { 
     156                ini_set("xsl.security_prefs", XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 
     157            } 
     158            else 
     159            { 
     160                $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 
     161            } 
    159162        } 
    160163         
Note: See TracChangeset for help on using the changeset viewer.