Skip to content

Commit a841390

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Fix #76929: zip-based phar does not respect phar.require_hash
2 parents 5276ca6 + 9f96b2b commit a841390

23 files changed

+100
-0
lines changed

ext/phar/tests/zip/badalias.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Phar: invalid aliases
3+
--INI--
4+
phar.require_hash=0
35
--SKIPIF--
46
<?php if (!extension_loaded("phar")) die("skip"); ?>
57
<?php if (!extension_loaded("zlib")) die("skip no zlib"); ?>

ext/phar/tests/zip/bzip2.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Phar: process bzip2-compressed zip entry
3+
--INI--
4+
phar.require_hash=0
35
--SKIPIF--
46
<?php if (!extension_loaded("phar")) die("skip"); ?>
57
<?php if (!extension_loaded("bz2")) die("skip bz2 not available"); ?>

ext/phar/tests/zip/frontcontroller1.phar.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Phar front controller other zip-based
3+
--INI--
4+
phar.require_hash=0
35
--SKIPIF--
46
<?php if (!extension_loaded("phar")) die("skip"); ?>
57
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>

ext/phar/tests/zip/frontcontroller11.phar.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Phar front controller mime type extension is not a string zip-based
33
--INI--
44
default_charset=
5+
phar.require_hash=0
56
--SKIPIF--
67
<?php if (!extension_loaded("phar")) die("skip phar extension not loaded"); ?>
78
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>

ext/phar/tests/zip/frontcontroller12.phar.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Phar front controller mime type unknown int zip-based
33
--INI--
44
default_charset=UTF-8
5+
phar.require_hash=0
56
--SKIPIF--
67
<?php if (!extension_loaded("phar")) die("skip"); ?>
78
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>

ext/phar/tests/zip/frontcontroller13.phar.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Phar front controller mime type not string/int zip-based
33
--INI--
44
default_charset=UTF-8
5+
phar.require_hash=0
56
--SKIPIF--
67
<?php if (!extension_loaded("phar")) die("skip"); ?>
78
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>

ext/phar/tests/zip/frontcontroller14.phar.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Phar front controller mime type override, other zip-based
3+
--INI--
4+
phar.require_hash=0
35
--SKIPIF--
46
<?php if (!extension_loaded("phar")) die("skip"); ?>
57
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>

ext/phar/tests/zip/frontcontroller15.phar.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Phar front controller mime type override, Phar::PHPS zip-based
33
--INI--
44
default_charset=UTF-8
5+
phar.require_hash=0
56
--SKIPIF--
67
<?php if (!extension_loaded("phar")) die("skip"); ?>
78
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>

ext/phar/tests/zip/frontcontroller16.phar.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Phar front controller mime type override, Phar::PHP zip-based
33
--INI--
44
default_charset=UTF-8
5+
phar.require_hash=0
56
--SKIPIF--
67
<?php if (!extension_loaded("phar")) die("skip"); ?>
78
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>

ext/phar/tests/zip/frontcontroller17.phar.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
--TEST--
22
Phar front controller mime type unknown zip-based
3+
--INI--
4+
phar.require_hash=0
35
--SKIPIF--
46
<?php if (!extension_loaded("phar")) die("skip"); ?>
57
<?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?>

0 commit comments

Comments
 (0)