Mailinglisten-Archive |
This is a multi-part message in MIME format.
--------------9B02E8906239EBEC2BE8A960
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Marc Logemann wrote:
> gibt es irgendwo eine ASCII liste aller PHP funktionen, im folgenden Format:
>
> function1
> function2
Hilft das?
Kristian
--
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.shonline.de/ (GPL)
--------------9B02E8906239EBEC2BE8A960
Content-Type: application/x-perl;
name="funclist.pl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="funclist.pl"
#! /usr/bin/perl --
use File::Find;
sub scanforfunction {
my($file) = shift;
my($inarray);
$x = $/;
open(IN, "<$file") or warn "Cannot open $file ";
undef $/;
$line = <IN>;
close IN;
$/ = $x;
$line =~ m!function_entry\s+(\w+)_functions\[\]\s*=\s*\{(.*?)\};!s;
if (!$1) {
return;
}
$mod = $1;
_(at)_lines = split "\n", $2;
foreach $i (_(at)_lines) {
$i =~ /\{\s*"(\w+)"\s*,/ && print "$1()\n";
$i =~ /PHP_FE\(\s*(\w+)\s*,/ && print "$1()\n";
}
}
sub wanted {
if (/\.c$/) {
&scanforfunction($_);
}
}
finddepth(\&wanted, ".");
--------------9B02E8906239EBEC2BE8A960--
php::bar PHP Wiki - Listenarchive