Skip to content

Commit 10c420f

Browse files
committed
Replace fakemail with minimal PHP script
1 parent 6463304 commit 10c420f

File tree

5 files changed

+2
-48
lines changed

5 files changed

+2
-48
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,6 @@ php
213213
/main/config.w32.h
214214
/win32/build/deplister.exe
215215
/win32/build/deplister.obj
216-
/win32/build/fakemail.exe
217-
/win32/build/fakemail.obj
218216
/win32/*.aps
219217
/win32/*.positions
220218
/win32/*.suo

run-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2110,7 +2110,7 @@ function run_test($php, $file, $env)
21102110
$section_text['INI'] = str_replace('{PWD}', dirname($file), $section_text['INI']);
21112111
$section_text['INI'] = str_replace('{TMP}', sys_get_temp_dir(), $section_text['INI']);
21122112
if (PHP_OS_FAMILY === 'Windows') {
2113-
$replacement = 'fakemail $1';
2113+
$replacement = '"' . PHP_BINARY . ' -r \"while ($in = fgets(STDIN)) echo $in;\" > $1"';
21142114
} else {
21152115
$replacement = 'tee $1 >/dev/null';
21162116
}

win32/build/Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ build-snap: set-tmp-env generated_files
203203
-for %T in ($(EXT_TARGETS)) do $(MAKE) /I /nologo "%T"
204204
-for %T in ($(PECL_TARGETS)) do $(MAKE) /I /nologo "%T"
205205

206-
build-dist: $(BUILD_DIR)\deplister.exe $(BUILD_DIR)\fakemail.exe
206+
build-dist: $(BUILD_DIR)\deplister.exe
207207
-rd /s /q $(BUILD_DIR)\php-$(PHP_VERSION_STRING)
208208
-rd /s /q $(BUILD_DIR)\pecl-$(PHP_VERSION_STRING)
209209
-del /f /q $(BUILD_DIR)\$(DIST_ZIP_SNAP)
@@ -227,9 +227,6 @@ snap: build-snap build-devel build-dist
227227
$(BUILD_DIR)\deplister.exe: win32\build\deplister.c
228228
$(CC) /nologo /Fo$(BUILD_DIR)\ /Fd$(BUILD_DIR)\ /Fp$(BUILD_DIR)\ /FR$(BUILD_DIR) /Fe$(BUILD_DIR)\deplister.exe win32\build\deplister.c imagehlp.lib
229229

230-
$(BUILD_DIR)\fakemail.exe: win32\build\fakemail.c
231-
$(CC) /nologo /Fo$(BUILD_DIR)\ /Fd$(BUILD_DIR)\ /Fp$(BUILD_DIR)\ /FR$(BUILD_DIR) /Fe$(BUILD_DIR)\fakemail.exe win32\build\fakemail.c
232-
233230
install: really-install install-sdk
234231

235232
build-lib: build-ext-libs

win32/build/fakemail.c

Lines changed: 0 additions & 40 deletions
This file was deleted.

win32/build/mkdist.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ function make_phar_dot_phar($dist_dir)
497497
copy_test_dir($dir, $test_dir);
498498
}
499499
copy('run-tests.php', $test_dir . '/run-test.php');
500-
copy($build_dir . '/fakemail.exe', $test_dir . '/fakemail.exe');
501500

502501
/* change this next line to true to use good-old
503502
* hand-assembled go-pear-bundle from the snapshot template */

0 commit comments

Comments
 (0)