Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #13943 tests fail when php.exe path contains spaces
Submitted: 2008-05-19 20:08 UTC
From: jorrit Assigned: dufuz
Status: Closed Package: PEAR (version CVS)
PHP Version: 5.2.4 OS: Windows
Roadmaps: 1.8.0alpha1    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 47 - 37 = ?

 
 [2008-05-19 20:08 UTC] jorrit (Jorrit Schippers)
Description: ------------ When php.exe is for instance located in c:\program files\php\ running pear run-tests -u on a package or a cvs checkout fails silently. This is because when a command is run on Windows, it actually is a call to cmd.exe with the command as a parameter. The solution is to wrap the complete command line in quotes, as demonstrated in the attached path Test script: --------------- cvs co Net_FTP cd Net_FTP pear run-tests -ru Expected result: ---------------- Running 1 tests PHPUnit 3.2.19 by Sebastian Bergmann. ............ Time: 14 seconds OK (12 tests) TOTAL TIME: 00:24 1 PASSED TESTS 0 SKIPPED TESTS Actual result: -------------- Running 1 tests TOTAL TIME: 00:00 1 PASSED TESTS 0 SKIPPED TESTS

Comments

 [2008-06-14 12:07 UTC] dufuz (Helgi Þormar Þorbjörnsson)
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. phpt and phpunit tests fail - this is fixed in PHP 5.3 patch had to be altered a bit for that reason.