php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38558 [patch] run-tests.php: spaces in path
Submitted: 2006-08-23 04:25 UTC Modified: 2006-08-23 12:41 UTC
From: danielc at analysisandsolutions dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 5.2.0RC2 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
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:
41 - 31 = ?
Subscribe to this entry?

 
 [2006-08-23 04:25 UTC] danielc at analysisandsolutions dot com
Description:
------------
run-tests.php doesn't account for spaces in the path to it.  This oversight produces the following errors:

"Could not open input file: c:\Program" (2 times)
"parse error, unexpected $end in Command line code on line 1"

In addition, those errors cause $php_info section from parsing/outputting correctly.  The following patch fixes it.

http://www.analysisandsolutions.com/php/run-tests--pathspace.diff

Thanks.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-23 07:03 UTC] tony2001@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Committed, thanks.
 [2006-08-23 12:26 UTC] danielc at analysisandsolutions dot com
Thanks for the prompt action, Tony.  Here are patches for 5.1 and 5.0:
http://www.analysisandsolutions.com/php/run-tests--pathspace-51.diff
http://www.analysisandsolutions.com/php/run-tests--pathspace-50.diff
 [2006-08-23 12:41 UTC] tony2001@php.net
Both 5.1 and 5.0 are dead branches.
I'll probably commit it to 5_1, but there is no point in committing it to 5_0.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 18:01:28 2024 UTC