php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #60343 nmake clean results in root dir emptied in some cases
Submitted: 2011-11-21 00:14 UTC Modified: 2011-11-21 00:32 UTC
From: cataphract@php.net Assigned:
Status: Open Package: *Compile Issues
PHP Version: trunk-SVN-2011-11-20 (SVN) OS: Windows
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: cataphract@php.net
New email:
PHP Version: OS:

 

 [2011-11-21 00:14 UTC] cataphract@php.net
Description:
------------
When running buildconf and configure on the same source directory, but via different symlinks, the resulting Makefile produces rules that result in nmake clean causing all the files (but not directories) of the source dir being deleted.

Actual result:
--------------
The gist https://gist.github.com/1381227 contains two files.

In the first, both buildconf and configure were run under C:\Users\Cataphract_\Documents\php-src

In the second, buildconf was run under C:\Users\Cataphract\Documents\php-src and configure was run under C:\Users\Cataphract_\Documents\php-src

C:\Users\Cataphract_\Documents\php-src and C:\Users\Cataphract\Documents\php-src represent the same directory.

nmake clean was run under C:\Users\Cataphract_\Documents\php-src in both cases.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-21 00:32 UTC] cataphract@php.net
More worrisome is that it also deleted all the files one level up from the source directory, in my case C:\Users\Cataphract_\Documents...
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 03:01:24 2019 UTC