Permalink
Browse files

Revert http://cvs.php.net/viewvc.cgi/pear/PHPUnit2/Util/Fileloader.ph…

  • Loading branch information...
1 parent 4c7de89 commit 3c54cc9d352e01013ebe77287342f058064a4a4a @sebastianbergmann committed Nov 8, 2006
Showing with 1 addition and 7 deletions.
  1. +1 −7 PHPUnit/Util/Fileloader.php
@@ -152,13 +152,7 @@ protected static function load($filename)
*/
protected static function syntaxCheck($filename)
{
- if (isset($_SERVER['PHPBIN'])) {
- $phpbin = $_SERVER['PHPBIN'];
- } else {
- $phpbin = 'php';
- }
-
- $output = shell_exec($phpbin . ' -l ' . escapeshellarg($filename));
+ $output = shell_exec('php -l ' . escapeshellarg($filename));
if (strpos($output, 'Errors parsing') === TRUE) {
throw new RuntimeException($output);

0 comments on commit 3c54cc9

Please sign in to comment.