diff options
author | Sean Finney <seanius@debian.org> | 2009-06-30 19:11:48 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2009-06-30 19:11:48 +0200 |
commit | d3a8757891280dc6650ca7eead67830c794b0e7b (patch) | |
tree | fd17e4142019fe7af4eeb7a5c9e0bdade5388418 /win32 | |
parent | 84f4ca9b07fe5b73d840258f4aa7c1eb534c4253 (diff) | |
download | php-d3a8757891280dc6650ca7eead67830c794b0e7b.tar.gz |
Imported Upstream version 5.3.0upstream/5.3.0
Diffstat (limited to 'win32')
-rw-r--r-- | win32/build/Makefile | 4 | ||||
-rw-r--r-- | win32/build/config.w32.h.in | 6 | ||||
-rw-r--r-- | win32/build/mkdist.php | 58 |
3 files changed, 42 insertions, 26 deletions
diff --git a/win32/build/Makefile b/win32/build/Makefile index abc7908ba..f0cd9ead6 100644 --- a/win32/build/Makefile +++ b/win32/build/Makefile @@ -14,7 +14,7 @@ # | Author: Wez Furlong <wez@thebrainroom.com> | # +----------------------------------------------------------------------+ # -# $Id: Makefile,v 1.35.2.1.2.6.2.13 2009/06/11 14:39:37 cellog Exp $ +# $Id: Makefile,v 1.35.2.1.2.6.2.14 2009/06/23 01:37:23 kalle Exp $ # This is the makefile template for the win32 build CC="$(CL)" @@ -146,7 +146,7 @@ dist: all build-dist snap: build-snap build-dist $(BUILD_DIR)\deplister.exe: win32\build\deplister.c - $(CL) /Fo$(BUILD_DIR)\ /Fd$(BUILD_DIR)\ /Fp$(BUILD_DIR)\ /FR$(BUILD_DIR) -o$(BUILD_DIR)\deplister.exe win32\build\deplister.c imagehlp.lib + $(CL) /Fo$(BUILD_DIR)\ /Fd$(BUILD_DIR)\ /Fp$(BUILD_DIR)\ /FR$(BUILD_DIR) /Fe$(BUILD_DIR)\deplister.exe win32\build\deplister.c imagehlp.lib msi-installer: dist $(BUILD_DIR)\php.exe ..\php-installer\build-installer.php "$(BUILD_DIR)" "$(PHPDLL)" "$(SAPI_TARGETS)" "$(EXT_TARGETS)" "$(PECL_TARGETS)" diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index b9949a966..f3459bdac 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -1,6 +1,6 @@ /* Build Configuration Template for Win32. - $Id: config.w32.h.in,v 1.7.2.4.2.3.2.13 2009/05/29 08:11:36 pajoye Exp $ + $Id: config.w32.h.in,v 1.7.2.4.2.3.2.14 2009/06/23 06:56:45 kalle Exp $ */ /* Define the minimum supported version */ @@ -156,6 +156,10 @@ /* Win32 support proc_open */ #define PHP_CAN_SUPPORT_PROC_OPEN 1 +/* inet_ntop() / inet_pton() */ +#define HAVE_INET_PTON 1 +#define HAVE_INET_NTOP 1 + #define HAVE_MBLEN #undef HAVE_ATOF_ACCEPTS_NAN diff --git a/win32/build/mkdist.php b/win32/build/mkdist.php index 9fd9a35bc..37b46b305 100644 --- a/win32/build/mkdist.php +++ b/win32/build/mkdist.php @@ -1,4 +1,4 @@ -<?php # $Id: mkdist.php,v 1.13.4.1.2.12 2009/06/11 14:39:37 cellog Exp $ +<?php # $Id: mkdist.php,v 1.13.4.1.2.15 2009/06/24 11:51:05 pajoye Exp $ /* piece together a windows binary distro */ $build_dir = $argv[1]; @@ -227,11 +227,12 @@ if(sizeof($pecl_targets)) { /* populate reading material */ $text_files = array( - "LICENSE" => "license.txt", - "NEWS" => "news.txt", - "php.ini-development" => "php.ini-development", + "LICENSE" => "license.txt", + "NEWS" => "news.txt", + "README.REDIST.BINS" => "readme-redist-bins.txt", + "php.ini-development" => "php.ini-development", "php.ini-production" => "php.ini-production", - "win32/install.txt" => "install.txt", + "win32/install.txt" => "install.txt", "win32/pws-php5cgi.reg" => "pws-php5cgi.reg", "win32/pws-php5isapi.reg" => "pws-php5isapi.reg", ); @@ -381,7 +382,9 @@ function copy_test_dir($directory, $dest) $full_path = $directory . '/' . $file; if($file != '.' && $file != '..' && $file != 'CVS' && is_dir($full_path)) { if ($file == 'tests') { - mkdir($dest . '/' . $full_path , 0775, true); + if (!is_dir($dest . '/' . $full_path)) { + mkdir($dest . '/' . $full_path , 0775, true); + } copy_dir($full_path, $dest . '/' . $full_path . '/'); continue; } else { @@ -395,23 +398,32 @@ function copy_test_dir($directory, $dest) function make_phar_dot_phar($dist_dir) { - if (!extension_loaded('phar')) return; - $path_to_php = $dist_dir; - $path_to_phar = realpath(__DIR__ . '/../../ext/phar'); - echo "Generating pharcommand.phar\n"; - $phar = new Phar($path_to_php . '/pharcommand.phar', 0, 'pharcommand'); - foreach (new DirectoryIterator($path_to_phar . '/phar') as $file) { - if ($file->isDir() || $file == 'phar.php') continue; - echo 'adding ', $file, "\n"; - $phar[(string) $file] = file_get_contents($path_to_phar. '/phar/' . $file); - } - $phar->setSignatureAlgorithm(Phar::SHA1); - $stub = file($path_to_phar . '/phar/phar.php'); - unset($stub[0]); // remove hashbang - $phar->setStub(implode('', $stub)); - - echo "Creating phar.phar.bat\n"; - file_put_contents($path_to_php . '/phar.phar.bat', "%~dp0php.exe %~dp0pharcommand.phar %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n"); + if (!extension_loaded('phar')) { + return; + } + + $path_to_phar = realpath(__DIR__ . '/../../ext/phar'); + + echo "Generating pharcommand.phar\n"; + $phar = new Phar($dist_dir . '/pharcommand.phar', 0, 'pharcommand'); + + foreach (new DirectoryIterator($path_to_phar . '/phar') as $file) { + if ($file->isDir() || $file == 'phar.php') { + continue; + } + + echo 'adding ', $file, "\n"; + $phar[(string) $file] = file_get_contents($path_to_phar. '/phar/' . $file); + } + + $phar->setSignatureAlgorithm(Phar::SHA1); + $stub = file($path_to_phar . '/phar/phar.php'); + + unset($stub[0]); // remove hashbang + $phar->setStub(implode('', $stub)); + + echo "Creating phar.phar.bat\n"; + file_put_contents($dist_dir . '/phar.phar.bat', "%~dp0php.exe %~dp0pharcommand.phar %*\r\n"); } if (!is_dir($test_dir)) { |