X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=reflection2php.php;h=aa238ed1980fc144a3a555bcbf28f8e96d700d36;hp=e319bd4074cfbd3fb18bc73f026e7044f99d0ca3;hb=d5de4f9eae86ae1dab0f8a906bf9543710ae124d;hpb=5bbb9fb7e8a807d3c06db151662b38daf3e26b60 diff --git a/reflection2php.php b/reflection2php.php index e319bd4..aa238ed 100755 --- a/reflection2php.php +++ b/reflection2php.php @@ -31,6 +31,8 @@ function c($n, $c) { if (!strlen($ext = $argv[1])) die(sprintf("Usage: %s \n", $argv[0])); +printf("getConstants() as $constant => $value) { printf("const %s = %s;\n", $constant, $value); @@ -111,7 +113,12 @@ foreach ($classes as $class) { } $ps[] = $p1; } - printf("%s) {\n\t\t}\n", implode(", ", $ps)); + printf("%s)", implode(", ", $ps)); + if ($m->isAbstract()) { + printf(";\n\n"); + } else { + printf(" {\n\t\t}\n\n"); + } } }