Skip to content

Commit

Permalink
Merge branch 'master' of github.com:laruence/php-yaf
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed May 20, 2013
2 parents 87800b9 + 3b5e27d commit d17e017
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/yaf.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

$useNamespace = (bool) ini_get("yaf.use_namespace");
$yafClassPrefix = sprintf("Yaf%s", $useNamespace ? "\\" : "_");
$classes = get_declared_classes();
$classes = array_merge(get_declared_classes(), get_declared_interfaces());
foreach ($classes as $key => $value) {
if (strncasecmp($value, $yafClassPrefix, 4)) {
unset($classes[$key]);
Expand Down Expand Up @@ -68,7 +68,7 @@
echo $indent, "/* constants */\n";

foreach ($constants as $k => $v) {
echo $indent, "const ", $k , " = ", $v , ";\n";
echo $indent, "const ", $k , " = \"", $v , "\";\n";
}
echo "\n";
}
Expand Down

0 comments on commit d17e017

Please sign in to comment.