#232 Usage of functions and ini directives deprecated in PHP 5.3

v2.3.2
open
nobody
Core (82)
5
2013-01-23
2011-02-13
Tuurlijk
No

Checking for deprectated functions ______________________________________
// checking for 'split()'
functions.inc.php:1186: $result = split('{|}', $pw_db, 3);
list-virtual.php:249: $goto_split = split(",", $row['goto']);
upgrade.php:766: $all_sql = split("\n", trim("
upgrade.php:828: $all_sql = split("\n", trim("
upgrade.php:961: $all_sql = split("\n", trim("
upgrade.php:999: $all_sql = split("\n", trim("

Checking for deprectated ini directives _________________________________
// checking for 'magic_quotes_runtime'
common.php:26:(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1');

// checking for 'magic_quotes_sybase'
common.php:27:(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_sybase', '0') : '1');

Discussion

  • Tuurlijk

    Tuurlijk - 2011-02-13

    PHP deprecated check

     
  • Tuurlijk

    Tuurlijk - 2011-02-13

    Updated Check script gives:

    // checking for 'split()'
    functions.inc.php:1186: $result = split('{|}', $pw_db, 3);
    list-virtual.php:249: $goto_split = split(",", $row['goto']);
    upgrade.php:766: $all_sql = split("\n", trim("
    upgrade.php:828: $all_sql = split("\n", trim("
    upgrade.php:961: $all_sql = split("\n", trim("
    upgrade.php:999: $all_sql = split("\n", trim("
    tests/simpletest/url.php:109: $parts = split(":", $matches[1]);
    tests/simpletest/url.php:187: foreach (split("&", $raw) as $pair) {
    tests/simpletest/http.php:319: foreach (split("\r\n", $headers) as $header_line) {
    tests/simpletest/http.php:460: $parts = split(";", $cookie_line);
    tests/simpletest/http.php:524: list($headers, $this->_content) = split("\r\n\r\n", $raw, 2);
    tests/simpletest/web_tester.php:193: $lines = split("\r\n", $compare);
    tests/simpletest/web_tester.php:209: if (count($parsed = split(':', $line, 2)) < 2) {

    // checking for 'magic_quotes_runtime'
    common.php:26:(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1');

    // checking for 'magic_quotes_sybase'
    common.php:27:(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_sybase', '0') : '1');

     
  • Christian Boltz

    Christian Boltz - 2011-02-14

    Sounds like a nice test script :-) Thanks for attaching it to this bugreport!

    I replaced split() everywhere in svn trunk and the 2.3 branch - with the exception of tests/simpletest/ (because that's an external library I don't want to touch, and only used by developers), so this part should be fixed.

    magic_quotes_* are a different issue and not yet fixed.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks