Artifact [ca5b0b8903]
Artifact ca5b0b89036cfc4c5ebf838b6d1d385921b73714:
- Executable file doc/devtools/listemu — part of check-in [6c573fe397] at 2010-06-23 00:28:35 on branch trunk — header_remove() accept empty param (user: mario size: 507)
#!/usr/bin/php -q <?php /* Prints the list of emulated functions. */ #-- basedir $dir = dirname(dirname(dirname(__FILE__))); #-- read files $text = file_get_contents("$dir/upgrade.php"); foreach (glob("$dir/ext/*.php") as $add) { $text .= file_get_contents($add); } #-- grep if (preg_match_all("/function[ ]+([_\w\d]+)\s*\(/", $text, $uu)) { $list = array_unique($uu[1]); } #-- print echo "Following functions can be emulated currently:\n"; foreach ($list as $func) { echo "· $func\n"; } ?>