Menu

[r328]: / trunk / test / bad_prohibited_2.php  Maximize  Restore  History

Download this file

23 lines (17 with data), 407 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* This file is an exemple of PHP file containing prohibited functions.
* This file should generate 2 warnings with the default config.
*/
class Prohibition {
/**
* Prohibited functions.
*
* @param String $a
* @param String $b
*/
function testAlCapone($a, $b) {
exec($a); // 1 - checkProhibitedFunctions
print($b); // 2 - checkProhibitedTokens
}
}
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.