1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-30 04:19:30 +01:00

In rebuildParser.php output stderr too (so there actually is output)

This commit is contained in:
nikic 2011-08-04 11:47:29 +02:00
parent afcf7777bf
commit 70306000e8

View File

@ -3,7 +3,7 @@
echo '<pre>';
echo 'Building parser. Output: "',
`kmyacc -l -L c -m php.kmyacc -p PHPParser_Parser zend_language_parser.phpy`,
trim(`kmyacc -l -L c -m php.kmyacc -p PHPParser_Parser zend_language_parser.phpy 2>&1`),
'"', "\n";
$source = file_get_contents('y.tab.c');
@ -24,7 +24,7 @@ file_put_contents(dirname(__DIR__) . '/lib/PHPParser/Parser.php', $source);
unlink(__DIR__ . '/y.tab.c');
echo 'Building debug parser. Output: "',
`kmyacc -l -t -L c -m php.kmyacc -p PHPParser_ParserDebug zend_language_parser.phpy`,
trim(`kmyacc -l -t -L c -m php.kmyacc -p PHPParser_ParserDebug zend_language_parser.phpy 2>&1`),
'"', "\n";
$source = file_get_contents('y.tab.c');