@@ -12,13 +12,20 @@ Subject: Fix tests
12
12
ZipArchive::registerProgressCallback() is only available when using
13
13
libzip 1.3.0 or newer.
14
14
ZipArchive::RDONLY is available only with libzip >= 1.0.0
15
+
16
+ On Solaris 10, unlink() removes entire ext/standard/tests/file
17
+ directory, as the system unlink functionality is different. This bug
18
+ is not documented and should be probably resolved in a system-agnostic
19
+ way at some point. On Solaris 11.4 unlink() works as expected,
20
+ otherwise.
15
21
---
16
- ext/dom/tests/dom_xinclude.phpt | 4 ++--
17
- ext/zip/tests/gh18431.phpt | 4 ++++
18
- ext/zip/tests/oo_addemptydir_error.phpt | 2 +-
19
- ext/zip/tests/oo_addglob2.phpt | 6 ++++++
20
- ext/zip/tests/oo_encryption.phpt | 6 ++++++
21
- 5 files changed, 19 insertions(+), 3 deletions(-)
22
+ ext/dom/tests/dom_xinclude.phpt | 4 ++--
23
+ ext/standard/tests/file/copy_variation4.phpt | 12 +++++++++---
24
+ ext/zip/tests/gh18431.phpt | 4 ++++
25
+ ext/zip/tests/oo_addemptydir_error.phpt | 2 +-
26
+ ext/zip/tests/oo_addglob2.phpt | 6 ++++++
27
+ ext/zip/tests/oo_encryption.phpt | 6 ++++++
28
+ 6 files changed, 28 insertions(+), 6 deletions(-)
22
29
23
30
diff --git a/ext/dom/tests/dom_xinclude.phpt b/ext/dom/tests/dom_xinclude.phpt
24
31
index 0dfeb2dfb4a..410431de877 100644
@@ -37,6 +44,29 @@ index 0dfeb2dfb4a..410431de877 100644
37
44
<title>The Pearl</title>
38
45
<author>John Steinbeck</author>
39
46
</book>
47
+ diff --git a/ext/standard/tests/file/copy_variation4.phpt b/ext/standard/tests/file/copy_variation4.phpt
48
+ index d467cb4ce9a..f31a1ddb117 100644
49
+ --- a/ext/standard/tests/file/copy_variation4.phpt
50
+ +++ b/ext/standard/tests/file/copy_variation4.phpt
51
+ @@ -5,9 +5,15 @@
52
+ if(substr(PHP_OS, 0, 3) == "WIN")
53
+ die("skip Do not run on Windows");
54
+
55
+ - if(substr(PHP_OS, 0, 3) == "AIX")
56
+ - die("skip Do not run on AIX");
57
+ - ?>
58
+ + // unlink() removes entire ext/standard/tests/file directory on these systems:
59
+ + if(substr(PHP_OS, 0, 3) == "AIX") {
60
+ + die("skip Do not run on AIX");
61
+ + }
62
+ +
63
+ + // unlink() removes entire directory on Solaris 10 (on Solaris 11.4 it's ok):
64
+ + if(substr(PHP_OS, 0, 5) == "SunOS") {
65
+ + die("skip Do not run on Solaris/illumos");
66
+ + }
67
+ --FILE--
68
+ <?php
69
+ /* Test copy() function: In creation of destination file names with empty string, nulls & bools
40
70
diff --git a/ext/zip/tests/gh18431.phpt b/ext/zip/tests/gh18431.phpt
41
71
index d4eb89c36c6..dcd7db6f400 100644
42
72
--- a/ext/zip/tests/gh18431.phpt
0 commit comments