Menu

[r241]: / trunk / test / bad_deprecation_5.php  Maximize  Restore  History

Download this file

29 lines (20 with data), 575 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* This file is an exemple of PHP file containing deprecated code.
* This file should generate 5 warnings with the default config.
*/
class Deprecation {
/**
* Depretacted functions.
*
* @param String $a
* @param String $b
*/
function testDeprecation($a, $b) {
$a = split(",", $a); // 1 - checkDeprecation
$a = ereg("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $b); // 2
session_register("barney"); // 3
$a = mysql_db_query('mysql_database', 'mysql_query'); // 4
$a = $HTTP_GET_VARS['var']; // 5
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.