PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Testing » PHPUnit2 » Bug #6282

Invalid PHP syntax validation in Fileloader.php

Details

Submitted2005-12-18 21:52 UTC
Fromwired at evd dot ru
Assignedsebastian
StatusClosed
PackagePHPUnit2
PHP Version5.1.1
OSWinXP
Roadmaps(Not assigned)

Comments

[2005-12-18 21:52 UTC] wired at evd dot ru

Description:
------------
Line 89 of Fileloader.php:

$output = shell_exec('php -l ' . $filename);

Should be:

$output = shell_exec('php -l ' . escapeshellarg($filename));

Otherwise Fileloader.php issues syntax error for any test file with spaces in its path.

[2005-12-19 05:44 UTC] sebastian at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.