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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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: Sat Dec 21 16:01:28 2024 UTC