[TYPO3-english] php's disable_functions

Stefano Kowalke blueduck at gmx.net
Mon Nov 30 16:56:39 CET 2009


Hi Claudio,

here, i have created a list:

arroba-2:phpdisableFunctions sok$ ./listDisabledPHPFunctions.sh 
../Sites/dev/t3/v4/trunk-git/trunk
system
208
exec
60
passthru
0
shell_exec
5
popen
0
phpinfo
22
escapeshellcmd
0
escapeshellarg
21
proc_open
0
show_source
0


And here the script:

#! /bin/bash

functions="system exec passthru shell_exec popen phpinfo escapeshellcmd 
escapeshellarg proc_open show_source"

for function in ${functions}
	do
		echo $function
		for i in `find ${1} -iname "*.php"`
			do
				for e in `grep -wr $function $i | wc -l`
					do SUM=$(($SUM + $e))
				done
		done
		echo $SUM
		SUM=0
done

Hope this helps.
Stefano


More information about the TYPO3-english mailing list