# Win32 snapshot build failing.

- Thread: https://externals.io/message/25466
- Original archive: https://news-web.php.net/php.internals/25466
- Started by Richard Quadling on 2006-09-01T08:07:17+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #25466 — Richard Quadling — 2006-09-01T08:07:17+00:00

URL: https://externals.io/message/25466#25466

Hi.
Line 2493+ of http://snaps.php.net/win32/snapshot-5.2.log

	cd Release_TS\php-5.2.0RC4
NMAKE : fatal error U1077: 'cd' : return code '0x1'
Stop.


Odd thing is that the win32/build/makedist.php copies the files to the
folder correctly.

There are a few blank filenames attempting to be copied in
makedist.php, but nothing critical. (Patch to tidy this :
http://rquadling.php1h.com/makedist.php.patch.diff.txt)

Index: mkdist.php
===================================================================
RCS file: /repository/php-src/win32/build/mkdist.php,v
retrieving revision 1.13
diff -u -u -r1.13 mkdist.php
--- mkdist.php	26 Mar 2005 21:32:20 -0000	1.13
+++ mkdist.php	1 Sep 2006 08:02:37 -0000
@@ -111,16 +111,18 @@
 	global $is_debug, $dist_dir;

 	foreach ($list as $item) {
-		echo "Copying $item from $source_dir to $dest_dir\n";
-		copy($source_dir . `DIRECTORY_SEPARATOR` . $item, $dest_dir .
 `DIRECTORY_SEPARATOR` . $item);
-		if ($is_debug) {
-			$itemdb = preg_replace("/\.(exe|dll|lib)$/i", ".pdb", $item);
-			if (file_exists("$source_dir/$itemdb")) {
-				copy("$source_dir/$itemdb", "$dist_dir/dev/$itemdb");
+		if ('' != trim($item)) {
+			echo "Copying $item from $source_dir to $dest_dir\n";
+			copy($source_dir . `DIRECTORY_SEPARATOR` . $item, $dest_dir .
 `DIRECTORY_SEPARATOR` . $item);
+			if ($is_debug) {
+				$itemdb = preg_replace("/\.(exe|dll|lib)$/i", ".pdb", $item);
+				if (file_exists("$source_dir/$itemdb")) {
+					copy("$source_dir/$itemdb", "$dist_dir/dev/$itemdb");
+				}
+			}
+			if (preg_match("/\.(exe|dll)$/i", $item)) {
+				get_depends($source_dir . '/' . $item);
 			}
-		}
-		if (preg_match("/\.(exe|dll)$/i", $item)) {
-			get_depends($source_dir . '/' . $item);
 		}
 	}
 }


-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&amp;r=213474731
"Standing on the shoulders of some very clever giants!"
