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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: danielc at analysisandsolutions dot com
New email:
PHP Version: OS:

 

 [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-2022 The PHP Group
All rights reserved.
Last updated: Sun Jul 03 17:05:45 2022 UTC