summaryrefslogtreecommitdiff
path: root/ext/phar/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests')
-rw-r--r--ext/phar/tests/009.phpt2
-rw-r--r--ext/phar/tests/010.phpt4
-rw-r--r--ext/phar/tests/014.phpt2
-rw-r--r--ext/phar/tests/016.phpt6
-rw-r--r--ext/phar/tests/019.phpt2
-rw-r--r--ext/phar/tests/020.phpt2
-rw-r--r--ext/phar/tests/021.phpt2
-rw-r--r--ext/phar/tests/033a.phpt2
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller12.pharbin588 -> 581 bytes
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller12.phar.inc14
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller14.pharbin450 -> 448 bytes
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller14.phar.inc4
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller3.pharbin437 -> 436 bytes
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller3.phar.inc2
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller4.pharbin433 -> 432 bytes
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller4.phar.inc2
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller8.pharbin8970 -> 8968 bytes
-rw-r--r--ext/phar/tests/cache_list/files/frontcontroller8.phar.inc2
-rw-r--r--ext/phar/tests/cache_list/files/write24.pharbin327 -> 326 bytes
-rw-r--r--ext/phar/tests/cache_list/files/write24.phar.inc2
-rw-r--r--ext/phar/tests/create_new_and_modify.phpt6
-rw-r--r--ext/phar/tests/files/frontcontroller12.pharbin588 -> 581 bytes
-rw-r--r--ext/phar/tests/files/frontcontroller12.phar.inc14
-rw-r--r--ext/phar/tests/files/frontcontroller14.pharbin450 -> 448 bytes
-rw-r--r--ext/phar/tests/files/frontcontroller14.phar.inc4
-rw-r--r--ext/phar/tests/files/frontcontroller3.pharbin438 -> 436 bytes
-rw-r--r--ext/phar/tests/files/frontcontroller3.phar.inc2
-rw-r--r--ext/phar/tests/files/frontcontroller4.pharbin433 -> 432 bytes
-rw-r--r--ext/phar/tests/files/frontcontroller4.phar.inc2
-rw-r--r--ext/phar/tests/files/frontcontroller8.pharbin8970 -> 8968 bytes
-rw-r--r--ext/phar/tests/files/frontcontroller8.phar.inc2
-rw-r--r--ext/phar/tests/fopen_edgecases2.phpt6
-rw-r--r--ext/phar/tests/open_for_write_existing.phpt2
-rw-r--r--ext/phar/tests/open_for_write_newfile.phpt2
-rw-r--r--ext/phar/tests/phar_ctx_001.phpt8
-rw-r--r--ext/phar/tests/phar_oo_compressed_002.phpt8
-rw-r--r--ext/phar/tests/phar_oo_compressed_002b.phpt8
-rw-r--r--ext/phar/tests/phar_stub.phpt4
-rw-r--r--ext/phar/tests/phar_stub_error.phpt2
-rw-r--r--ext/phar/tests/phar_stub_write.phpt2
-rw-r--r--ext/phar/tests/phar_stub_write_file.phpt2
-rw-r--r--ext/phar/tests/refcount1.phpt4
-rw-r--r--ext/phar/tests/rmdir.phpt2
-rw-r--r--ext/phar/tests/tar/files/frontcontroller12.phar.inc14
-rw-r--r--ext/phar/tests/tar/files/frontcontroller12.phar.tarbin4096 -> 4096 bytes
-rw-r--r--ext/phar/tests/tar/files/frontcontroller3.phar.inc2
-rw-r--r--ext/phar/tests/tar/files/frontcontroller3.phar.tarbin6144 -> 6144 bytes
-rw-r--r--ext/phar/tests/tar/files/frontcontroller4.phar.inc2
-rw-r--r--ext/phar/tests/tar/files/frontcontroller4.phar.tarbin6144 -> 6144 bytes
-rw-r--r--ext/phar/tests/tar/open_for_write_existing.phpt2
-rw-r--r--ext/phar/tests/tar/open_for_write_existing_b.phpt2
-rw-r--r--ext/phar/tests/tar/open_for_write_newfile.phpt2
-rw-r--r--ext/phar/tests/tar/phar_stub.phpt6
-rw-r--r--ext/phar/tests/tar/refcount1.phpt2
-rw-r--r--ext/phar/tests/zip/files/frontcontroller12.phar.inc14
-rw-r--r--ext/phar/tests/zip/files/frontcontroller12.phar.zipbin793 -> 964 bytes
-rw-r--r--ext/phar/tests/zip/files/frontcontroller3.phar.inc2
-rw-r--r--ext/phar/tests/zip/files/frontcontroller3.phar.zipbin818 -> 994 bytes
-rw-r--r--ext/phar/tests/zip/files/frontcontroller4.phar.inc2
-rw-r--r--ext/phar/tests/zip/files/frontcontroller4.phar.zipbin813 -> 990 bytes
-rw-r--r--ext/phar/tests/zip/open_for_write_existing.phpt2
-rw-r--r--ext/phar/tests/zip/open_for_write_existing_b.phpt2
-rw-r--r--ext/phar/tests/zip/open_for_write_existing_c.phpt2
-rw-r--r--ext/phar/tests/zip/open_for_write_newfile.phpt2
-rw-r--r--ext/phar/tests/zip/open_for_write_newfile_b.phpt2
-rw-r--r--ext/phar/tests/zip/open_for_write_newfile_c.phpt2
-rw-r--r--ext/phar/tests/zip/phar_stub.phpt6
-rw-r--r--ext/phar/tests/zip/refcount1.phpt2
68 files changed, 99 insertions, 99 deletions
diff --git a/ext/phar/tests/009.phpt b/ext/phar/tests/009.phpt
index 61933b3814..7f55f3987d 100644
--- a/ext/phar/tests/009.phpt
+++ b/ext/phar/tests/009.phpt
@@ -6,7 +6,7 @@ Phar::mapPhar too many manifest entries
phar.require_hash=0
--FILE--
<?php
-$file = b"<?php
+$file = "<?php
Phar::mapPhar('hio');
__HALT_COMPILER(); ?>";
$file .= (binary) pack(b'VVnVVV', 500, 500, 0x1000, 0x00000000, 0, 0) . (binary) str_repeat((binary)'A', 500);
diff --git a/ext/phar/tests/010.phpt b/ext/phar/tests/010.phpt
index d1e2f40c9c..3dce5f8f4c 100644
--- a/ext/phar/tests/010.phpt
+++ b/ext/phar/tests/010.phpt
@@ -6,13 +6,13 @@ Phar::mapPhar buffer overrun
phar.require_hash=0
--FILE--
<?php
-$file = b"<?php
+$file = "<?php
Phar::mapPhar('hio');
__HALT_COMPILER(); ?>";
// this fails because the manifest length does not include the other 10 byte manifest data
-$manifest = pack('V', 1) . 'a' . pack('VVVVVV', 0, time(), 0, crc32(b''), 0x00000000, 0);
+$manifest = pack('V', 1) . 'a' . pack('VVVVVV', 0, time(), 0, crc32(''), 0x00000000, 0);
$file .= pack('VVnVV', strlen($manifest), 1, 0x1000, 0x00000000, 3) . 'hio' . pack('V', 0) . $manifest;
file_put_contents(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php', $file);
diff --git a/ext/phar/tests/014.phpt b/ext/phar/tests/014.phpt
index cb83ea55bd..d08e6550b6 100644
--- a/ext/phar/tests/014.phpt
+++ b/ext/phar/tests/014.phpt
@@ -12,7 +12,7 @@ $file = "<?php __HALT_COMPILER(); ?>";
// wrong crc32
$files = array();
-$files['a'] = array('cont'=>'a', 'crc32'=>crc32(b'aX'));
+$files['a'] = array('cont'=>'a', 'crc32'=>crc32('aX'));
include 'files/phar_test.inc';
echo file_get_contents($pname.'/a');
diff --git a/ext/phar/tests/016.phpt b/ext/phar/tests/016.phpt
index 3288e8eca4..302d06d3cb 100644
--- a/ext/phar/tests/016.phpt
+++ b/ext/phar/tests/016.phpt
@@ -9,14 +9,14 @@ phar.require_hash=0
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$file = b"<?php __HALT_COMPILER(); ?>";
+$file = "<?php __HALT_COMPILER(); ?>";
// file length is too short
$files = array();
// "hi" gzdeflated
-$files['a'] = array('cont'=>b'a','comp'=> (binary)pack('H*', 'cbc80400'),'flags'=>0x00001000, 'ulen' => 1, 'clen' => 4);
+$files['a'] = array('cont'=>'a','comp'=> pack('H*', 'cbc80400'),'flags'=>0x00001000, 'ulen' => 1, 'clen' => 4);
$files['b'] = $files['a'];
-$files['c'] = array('cont'=>b'*');
+$files['c'] = array('cont'=>'*');
$files['d'] = $files['a'];
include 'files/phar_test.inc';
diff --git a/ext/phar/tests/019.phpt b/ext/phar/tests/019.phpt
index 0a5a7d7b57..860edad236 100644
--- a/ext/phar/tests/019.phpt
+++ b/ext/phar/tests/019.phpt
@@ -9,7 +9,7 @@ phar.require_hash=0
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$file = b"<?php
+$file = "<?php
Phar::mapPhar('hio');
__HALT_COMPILER(); ?>";
diff --git a/ext/phar/tests/020.phpt b/ext/phar/tests/020.phpt
index 7d01681b6f..289fc39c95 100644
--- a/ext/phar/tests/020.phpt
+++ b/ext/phar/tests/020.phpt
@@ -8,7 +8,7 @@ phar.require_hash=0
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$file = b"<?php
+$file = "<?php
Phar::mapPhar('hio');
__HALT_COMPILER(); ?>";
diff --git a/ext/phar/tests/021.phpt b/ext/phar/tests/021.phpt
index bfd6576952..3e3278b9f8 100644
--- a/ext/phar/tests/021.phpt
+++ b/ext/phar/tests/021.phpt
@@ -8,7 +8,7 @@ phar.require_hash=0
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$file = b"<?php
+$file = "<?php
Phar::mapPhar('hio');
__HALT_COMPILER(); ?>";
diff --git a/ext/phar/tests/033a.phpt b/ext/phar/tests/033a.phpt
index 4586f35e3f..e8725bdda6 100644
--- a/ext/phar/tests/033a.phpt
+++ b/ext/phar/tests/033a.phpt
@@ -9,7 +9,7 @@ phar.require_hash=0
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.1.phar.php';
$pname = 'phar://hio';
-$file = b'<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>';
+$file = '<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>';
$files = array();
$files['a.php'] = '<?php echo "This is a\n"; include "'.$pname.'/b.php"; ?>';
diff --git a/ext/phar/tests/cache_list/files/frontcontroller12.phar b/ext/phar/tests/cache_list/files/frontcontroller12.phar
index 1cf3629282..beebf034cb 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller12.phar
+++ b/ext/phar/tests/cache_list/files/frontcontroller12.phar
Binary files differ
diff --git a/ext/phar/tests/cache_list/files/frontcontroller12.phar.inc b/ext/phar/tests/cache_list/files/frontcontroller12.phar.inc
index f1e4645e2f..ba17df37e1 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller12.phar.inc
+++ b/ext/phar/tests/cache_list/files/frontcontroller12.phar.inc
@@ -3,13 +3,13 @@
$a = new Phar(dirname(__FILE__) . '/frontcontroller12.phar');
$a['index.php'] = '<?php
var_dump($_SERVER["PHP_SELF"]);
-var_dump($_SERVER[b"SCRIPT_NAME"]);
-var_dump($_SERVER[b"SCRIPT_FILENAME"]);
-var_dump($_SERVER[b"REQUEST_URI"]);
-var_dump($_SERVER[b"PHAR_PHP_SELF"]);
-var_dump($_SERVER[b"PHAR_SCRIPT_NAME"]);
-var_dump($_SERVER[b"PHAR_SCRIPT_FILENAME"]);
-var_dump($_SERVER[b"PHAR_REQUEST_URI"]);
+var_dump($_SERVER["SCRIPT_NAME"]);
+var_dump($_SERVER["SCRIPT_FILENAME"]);
+var_dump($_SERVER["REQUEST_URI"]);
+var_dump($_SERVER["PHAR_PHP_SELF"]);
+var_dump($_SERVER["PHAR_SCRIPT_NAME"]);
+var_dump($_SERVER["PHAR_SCRIPT_FILENAME"]);
+var_dump($_SERVER["PHAR_REQUEST_URI"]);
';
$a->setStub('<?php
Phar::mungServer(array("PHP_SELF", "SCRIPT_NAME", "SCRIPT_FILENAME", "REQUEST_URI"));
diff --git a/ext/phar/tests/cache_list/files/frontcontroller14.phar b/ext/phar/tests/cache_list/files/frontcontroller14.phar
index ebc3e9b408..31b4cb92d6 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller14.phar
+++ b/ext/phar/tests/cache_list/files/frontcontroller14.phar
Binary files differ
diff --git a/ext/phar/tests/cache_list/files/frontcontroller14.phar.inc b/ext/phar/tests/cache_list/files/frontcontroller14.phar.inc
index 23104a642f..d0ebd9a45a 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller14.phar.inc
+++ b/ext/phar/tests/cache_list/files/frontcontroller14.phar.inc
@@ -2,8 +2,8 @@
@unlink(dirname(__FILE__) . '/frontcontroller14.phar');
$a = new Phar(dirname(__FILE__) . '/frontcontroller14.phar');
$a['html/index.php'] = '<?php
-var_dump($_SERVER[b"PATH_INFO"]);
-var_dump($_SERVER[b"PATH_TRANSLATED"]);
+var_dump($_SERVER["PATH_INFO"]);
+var_dump($_SERVER["PATH_TRANSLATED"]);
';
$a->setStub('<?php
function s($a)
diff --git a/ext/phar/tests/cache_list/files/frontcontroller3.phar b/ext/phar/tests/cache_list/files/frontcontroller3.phar
index 35a23eadff..04a7ae7b95 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller3.phar
+++ b/ext/phar/tests/cache_list/files/frontcontroller3.phar
Binary files differ
diff --git a/ext/phar/tests/cache_list/files/frontcontroller3.phar.inc b/ext/phar/tests/cache_list/files/frontcontroller3.phar.inc
index 6f9126ff44..2759d9ee45 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller3.phar.inc
+++ b/ext/phar/tests/cache_list/files/frontcontroller3.phar.inc
@@ -7,7 +7,7 @@ $a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
function s($a)
{
- static $b = array(b"/hi" => "a.phps");
+ static $b = array("/hi" => "a.phps");
if (isset($b[$a])) return $b[$a];
return $a;
}
diff --git a/ext/phar/tests/cache_list/files/frontcontroller4.phar b/ext/phar/tests/cache_list/files/frontcontroller4.phar
index 8359461810..439f74479d 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller4.phar
+++ b/ext/phar/tests/cache_list/files/frontcontroller4.phar
Binary files differ
diff --git a/ext/phar/tests/cache_list/files/frontcontroller4.phar.inc b/ext/phar/tests/cache_list/files/frontcontroller4.phar.inc
index daf807e419..5c6a43f954 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller4.phar.inc
+++ b/ext/phar/tests/cache_list/files/frontcontroller4.phar.inc
@@ -7,7 +7,7 @@ $a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
function s($a)
{
- static $b = array(b"/hi" => false);
+ static $b = array("/hi" => false);
if (isset($b[$a])) return $b[$a];
return $a;
}
diff --git a/ext/phar/tests/cache_list/files/frontcontroller8.phar b/ext/phar/tests/cache_list/files/frontcontroller8.phar
index c9c0e409ec..fe133dfba1 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller8.phar
+++ b/ext/phar/tests/cache_list/files/frontcontroller8.phar
Binary files differ
diff --git a/ext/phar/tests/cache_list/files/frontcontroller8.phar.inc b/ext/phar/tests/cache_list/files/frontcontroller8.phar.inc
index 8629f0890d..1dfb654a03 100644
--- a/ext/phar/tests/cache_list/files/frontcontroller8.phar.inc
+++ b/ext/phar/tests/cache_list/files/frontcontroller8.phar.inc
@@ -2,7 +2,7 @@
@unlink(dirname(__FILE__) . '/frontcontroller8.phar');
$a = new Phar(dirname(__FILE__) . '/frontcontroller8.phar');
$a['a.phps'] = 'hio1';
-$a['a1.phps'] = '<?php var_dump($_SERVER[b"REQUEST_URI"], $_SERVER[b"PATH_INFO"]);';
+$a['a1.phps'] = '<?php var_dump($_SERVER["REQUEST_URI"], $_SERVER["PATH_INFO"]);';
$a['a.jpg'] = 'hio2';
$a['a.php'] = '<?php function hio(){}';
$a['fronk.gronk'] = 'hio3';
diff --git a/ext/phar/tests/cache_list/files/write24.phar b/ext/phar/tests/cache_list/files/write24.phar
index 36972f3663..50759703e4 100644
--- a/ext/phar/tests/cache_list/files/write24.phar
+++ b/ext/phar/tests/cache_list/files/write24.phar
Binary files differ
diff --git a/ext/phar/tests/cache_list/files/write24.phar.inc b/ext/phar/tests/cache_list/files/write24.phar.inc
index 216f7c46d0..ac96731960 100644
--- a/ext/phar/tests/cache_list/files/write24.phar.inc
+++ b/ext/phar/tests/cache_list/files/write24.phar.inc
@@ -8,7 +8,7 @@ $phar->setStub('<?php
$p = new Phar(__FILE__);
var_dump(isset($p["newname"]));
$fp = fopen("phar://" . __FILE__ . "/newname", "w");
-fwrite($fp, b"hi");
+fwrite($fp, "hi");
fclose($fp);
var_dump(isset($p["newname"]));
echo "ok\n";
diff --git a/ext/phar/tests/create_new_and_modify.phpt b/ext/phar/tests/create_new_and_modify.phpt
index c924d74c68..940e3e9776 100644
--- a/ext/phar/tests/create_new_and_modify.phpt
+++ b/ext/phar/tests/create_new_and_modify.phpt
@@ -35,9 +35,9 @@ file_put_contents($pname .'/b.php', "another!\n");
$phar = new Phar($fname);
$sig2 = $phar->getSignature();
-var_dump($sig1[b'hash']);
-var_dump($sig2[b'hash']);
-var_dump($sig1[b'hash'] != $sig2[b'hash']);
+var_dump($sig1['hash']);
+var_dump($sig2['hash']);
+var_dump($sig1['hash'] != $sig2['hash']);
include $pname . '/a.php';
include $pname . '/b.php';
diff --git a/ext/phar/tests/files/frontcontroller12.phar b/ext/phar/tests/files/frontcontroller12.phar
index 315c2901e0..2a654baf7f 100644
--- a/ext/phar/tests/files/frontcontroller12.phar
+++ b/ext/phar/tests/files/frontcontroller12.phar
Binary files differ
diff --git a/ext/phar/tests/files/frontcontroller12.phar.inc b/ext/phar/tests/files/frontcontroller12.phar.inc
index f1e4645e2f..ba17df37e1 100644
--- a/ext/phar/tests/files/frontcontroller12.phar.inc
+++ b/ext/phar/tests/files/frontcontroller12.phar.inc
@@ -3,13 +3,13 @@
$a = new Phar(dirname(__FILE__) . '/frontcontroller12.phar');
$a['index.php'] = '<?php
var_dump($_SERVER["PHP_SELF"]);
-var_dump($_SERVER[b"SCRIPT_NAME"]);
-var_dump($_SERVER[b"SCRIPT_FILENAME"]);
-var_dump($_SERVER[b"REQUEST_URI"]);
-var_dump($_SERVER[b"PHAR_PHP_SELF"]);
-var_dump($_SERVER[b"PHAR_SCRIPT_NAME"]);
-var_dump($_SERVER[b"PHAR_SCRIPT_FILENAME"]);
-var_dump($_SERVER[b"PHAR_REQUEST_URI"]);
+var_dump($_SERVER["SCRIPT_NAME"]);
+var_dump($_SERVER["SCRIPT_FILENAME"]);
+var_dump($_SERVER["REQUEST_URI"]);
+var_dump($_SERVER["PHAR_PHP_SELF"]);
+var_dump($_SERVER["PHAR_SCRIPT_NAME"]);
+var_dump($_SERVER["PHAR_SCRIPT_FILENAME"]);
+var_dump($_SERVER["PHAR_REQUEST_URI"]);
';
$a->setStub('<?php
Phar::mungServer(array("PHP_SELF", "SCRIPT_NAME", "SCRIPT_FILENAME", "REQUEST_URI"));
diff --git a/ext/phar/tests/files/frontcontroller14.phar b/ext/phar/tests/files/frontcontroller14.phar
index 2bca006653..ecfc5d7864 100644
--- a/ext/phar/tests/files/frontcontroller14.phar
+++ b/ext/phar/tests/files/frontcontroller14.phar
Binary files differ
diff --git a/ext/phar/tests/files/frontcontroller14.phar.inc b/ext/phar/tests/files/frontcontroller14.phar.inc
index 23104a642f..d0ebd9a45a 100644
--- a/ext/phar/tests/files/frontcontroller14.phar.inc
+++ b/ext/phar/tests/files/frontcontroller14.phar.inc
@@ -2,8 +2,8 @@
@unlink(dirname(__FILE__) . '/frontcontroller14.phar');
$a = new Phar(dirname(__FILE__) . '/frontcontroller14.phar');
$a['html/index.php'] = '<?php
-var_dump($_SERVER[b"PATH_INFO"]);
-var_dump($_SERVER[b"PATH_TRANSLATED"]);
+var_dump($_SERVER["PATH_INFO"]);
+var_dump($_SERVER["PATH_TRANSLATED"]);
';
$a->setStub('<?php
function s($a)
diff --git a/ext/phar/tests/files/frontcontroller3.phar b/ext/phar/tests/files/frontcontroller3.phar
index 5c5ff9cae7..4859fdd10f 100644
--- a/ext/phar/tests/files/frontcontroller3.phar
+++ b/ext/phar/tests/files/frontcontroller3.phar
Binary files differ
diff --git a/ext/phar/tests/files/frontcontroller3.phar.inc b/ext/phar/tests/files/frontcontroller3.phar.inc
index c2095947bd..2759d9ee45 100644
--- a/ext/phar/tests/files/frontcontroller3.phar.inc
+++ b/ext/phar/tests/files/frontcontroller3.phar.inc
@@ -7,7 +7,7 @@ $a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
function s($a)
{
- static $b = array(b"/hi" => b"a.phps");
+ static $b = array("/hi" => "a.phps");
if (isset($b[$a])) return $b[$a];
return $a;
}
diff --git a/ext/phar/tests/files/frontcontroller4.phar b/ext/phar/tests/files/frontcontroller4.phar
index 004d1ffd16..3d4783f64b 100644
--- a/ext/phar/tests/files/frontcontroller4.phar
+++ b/ext/phar/tests/files/frontcontroller4.phar
Binary files differ
diff --git a/ext/phar/tests/files/frontcontroller4.phar.inc b/ext/phar/tests/files/frontcontroller4.phar.inc
index daf807e419..5c6a43f954 100644
--- a/ext/phar/tests/files/frontcontroller4.phar.inc
+++ b/ext/phar/tests/files/frontcontroller4.phar.inc
@@ -7,7 +7,7 @@ $a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
function s($a)
{
- static $b = array(b"/hi" => false);
+ static $b = array("/hi" => false);
if (isset($b[$a])) return $b[$a];
return $a;
}
diff --git a/ext/phar/tests/files/frontcontroller8.phar b/ext/phar/tests/files/frontcontroller8.phar
index 27280a3270..295143edb9 100644
--- a/ext/phar/tests/files/frontcontroller8.phar
+++ b/ext/phar/tests/files/frontcontroller8.phar
Binary files differ
diff --git a/ext/phar/tests/files/frontcontroller8.phar.inc b/ext/phar/tests/files/frontcontroller8.phar.inc
index 8629f0890d..1dfb654a03 100644
--- a/ext/phar/tests/files/frontcontroller8.phar.inc
+++ b/ext/phar/tests/files/frontcontroller8.phar.inc
@@ -2,7 +2,7 @@
@unlink(dirname(__FILE__) . '/frontcontroller8.phar');
$a = new Phar(dirname(__FILE__) . '/frontcontroller8.phar');
$a['a.phps'] = 'hio1';
-$a['a1.phps'] = '<?php var_dump($_SERVER[b"REQUEST_URI"], $_SERVER[b"PATH_INFO"]);';
+$a['a1.phps'] = '<?php var_dump($_SERVER["REQUEST_URI"], $_SERVER["PATH_INFO"]);';
$a['a.jpg'] = 'hio2';
$a['a.php'] = '<?php function hio(){}';
$a['fronk.gronk'] = 'hio3';
diff --git a/ext/phar/tests/fopen_edgecases2.phpt b/ext/phar/tests/fopen_edgecases2.phpt
index d55c97d228..4510fbd801 100644
--- a/ext/phar/tests/fopen_edgecases2.phpt
+++ b/ext/phar/tests/fopen_edgecases2.phpt
@@ -13,14 +13,14 @@ $pname = 'phar://' . $fname;
fopen(array(), 'r');
chdir(dirname(__FILE__));
-file_put_contents($fname, b"blah\n");
-file_put_contents("foob", b"test\n");
+file_put_contents($fname, "blah\n");
+file_put_contents("foob", "test\n");
$a = fopen($fname, 'rb');
echo fread($a, 1000);
fclose($a);
unlink($fname);
mkdir($pname . '/oops');
-file_put_contents($pname . '/foo/hi', b'<?php
+file_put_contents($pname . '/foo/hi', '<?php
$context = stream_context_create();
$a = fopen("foob", "rb", false, $context);
echo fread($a, 1000);
diff --git a/ext/phar/tests/open_for_write_existing.phpt b/ext/phar/tests/open_for_write_existing.phpt
index 9d27cd84ec..2a3ec8b824 100644
--- a/ext/phar/tests/open_for_write_existing.phpt
+++ b/ext/phar/tests/open_for_write_existing.phpt
@@ -18,7 +18,7 @@ $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
include 'files/phar_test.inc';
$fp = fopen($pname . '/b/c.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $pname . '/b/c.php';
?>
diff --git a/ext/phar/tests/open_for_write_newfile.phpt b/ext/phar/tests/open_for_write_newfile.phpt
index 735e3b4dd7..13114072da 100644
--- a/ext/phar/tests/open_for_write_newfile.phpt
+++ b/ext/phar/tests/open_for_write_newfile.phpt
@@ -18,7 +18,7 @@ $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
include 'files/phar_test.inc';
$fp = fopen($pname . '/b/new.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $pname . '/b/c.php';
include $pname . '/b/new.php';
diff --git a/ext/phar/tests/phar_ctx_001.phpt b/ext/phar/tests/phar_ctx_001.phpt
index 72edc5a99e..13b4d6a781 100644
--- a/ext/phar/tests/phar_ctx_001.phpt
+++ b/ext/phar/tests/phar_ctx_001.phpt
@@ -28,12 +28,12 @@ var_dump($phar['b']->isCompressed());
var_dump(file_get_contents($pname . '/c'));
var_dump($phar['c']->isCompressed());
-$context = stream_context_create(array('phar'=> array('compress'=>Phar::GZ, 'metadata' => array(2, b'hi' => 3))));
+$context = stream_context_create(array('phar'=> array('compress'=>Phar::GZ, 'metadata' => array(2, 'hi' => 3))));
$context2 = stream_context_create(array('phar' => array('metadata' => array(4))));
-file_put_contents($pname . '/a', b'new a', 0); // no compression
-file_put_contents($pname . '/b', b'new b', 0, $context);
-file_put_contents($pname . '/d', b'new d', 0, $context2);
+file_put_contents($pname . '/a', 'new a', 0); // no compression
+file_put_contents($pname . '/b', 'new b', 0, $context);
+file_put_contents($pname . '/d', 'new d', 0, $context2);
$phar = new Phar($fname);
var_dump(file_get_contents($pname . '/a'));
diff --git a/ext/phar/tests/phar_oo_compressed_002.phpt b/ext/phar/tests/phar_oo_compressed_002.phpt
index d4ec5cb720..d03d6f1a98 100644
--- a/ext/phar/tests/phar_oo_compressed_002.phpt
+++ b/ext/phar/tests/phar_oo_compressed_002.phpt
@@ -30,10 +30,10 @@ var_dump($phar['c']->isCompressed());
$context = stream_context_create(array('phar'=>array('compress'=>Phar::GZ)));
-file_put_contents($pname . '/b', b'new b');
-file_put_contents($pname . '/c', b'new c', 0, $context);
-file_put_contents($pname . '/d', b'new d');
-file_put_contents($pname . '/e', b'new e', 0, $context);
+file_put_contents($pname . '/b', 'new b');
+file_put_contents($pname . '/c', 'new c', 0, $context);
+file_put_contents($pname . '/d', 'new d');
+file_put_contents($pname . '/e', 'new e', 0, $context);
$phar = new Phar($fname);
var_dump(file_get_contents($pname . '/a'));
diff --git a/ext/phar/tests/phar_oo_compressed_002b.phpt b/ext/phar/tests/phar_oo_compressed_002b.phpt
index d7213fdbaa..0e167012b7 100644
--- a/ext/phar/tests/phar_oo_compressed_002b.phpt
+++ b/ext/phar/tests/phar_oo_compressed_002b.phpt
@@ -30,10 +30,10 @@ var_dump($phar['c']->isCompressed());
$context = stream_context_create(array('phar'=>array('compress'=>Phar::BZ2)));
-file_put_contents($pname . '/b', b'new b');
-file_put_contents($pname . '/c', b'new c', 0, $context);
-file_put_contents($pname . '/d', b'new d');
-file_put_contents($pname . '/e', b'new e', 0, $context);
+file_put_contents($pname . '/b', 'new b');
+file_put_contents($pname . '/c', 'new c', 0, $context);
+file_put_contents($pname . '/d', 'new d');
+file_put_contents($pname . '/e', 'new e', 0, $context);
$phar = new Phar($fname);
var_dump(file_get_contents($pname . '/a'));
diff --git a/ext/phar/tests/phar_stub.phpt b/ext/phar/tests/phar_stub.phpt
index 832dc409bd..ed306816e2 100644
--- a/ext/phar/tests/phar_stub.phpt
+++ b/ext/phar/tests/phar_stub.phpt
@@ -33,7 +33,7 @@ echo fread($fp, strlen($file)) . "\n";
fclose($fp);
$fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phartmp.php';
-$file = b'<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
+$file = '<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
$fp = fopen($fname2, 'wb');
fwrite($fp, $file);
fclose($fp);
@@ -48,7 +48,7 @@ echo fread($fp, strlen($file)) . "\n";
fclose($fp);
$fp = fopen($fname2, 'ab');
-fwrite($fp, b'booya');
+fwrite($fp, 'booya');
fclose($fp);
echo file_get_contents($fname2) . "\n";
diff --git a/ext/phar/tests/phar_stub_error.phpt b/ext/phar/tests/phar_stub_error.phpt
index bb5d63bcf7..99f313bc2f 100644
--- a/ext/phar/tests/phar_stub_error.phpt
+++ b/ext/phar/tests/phar_stub_error.phpt
@@ -9,7 +9,7 @@ phar.readonly=0
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$stub = b'<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
+$stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
$file = $stub;
$files = array();
diff --git a/ext/phar/tests/phar_stub_write.phpt b/ext/phar/tests/phar_stub_write.phpt
index ecdb3b9b63..9e5d6d5635 100644
--- a/ext/phar/tests/phar_stub_write.phpt
+++ b/ext/phar/tests/phar_stub_write.phpt
@@ -9,7 +9,7 @@ phar.readonly=0
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$stub = b'<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
+$stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
$file = $stub;
$files = array();
diff --git a/ext/phar/tests/phar_stub_write_file.phpt b/ext/phar/tests/phar_stub_write_file.phpt
index e4c8676816..c5a0a1eba9 100644
--- a/ext/phar/tests/phar_stub_write_file.phpt
+++ b/ext/phar/tests/phar_stub_write_file.phpt
@@ -10,7 +10,7 @@ allow_url_fopen=1
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$stub = b'<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
+$stub = '<?php echo "first stub\n"; __HALT_COMPILER(); ?>';
$file = $stub;
$files = array();
diff --git a/ext/phar/tests/refcount1.phpt b/ext/phar/tests/refcount1.phpt
index 67ba93641b..3c717eb37d 100644
--- a/ext/phar/tests/refcount1.phpt
+++ b/ext/phar/tests/refcount1.phpt
@@ -10,7 +10,7 @@ phar.require_hash=0
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$file = b"<?php __HALT_COMPILER(); ?>";
+$file = "<?php __HALT_COMPILER(); ?>";
$files = array();
$files['a.php'] = '<?php echo "This is a\n"; ?>';
@@ -19,7 +19,7 @@ $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
include 'files/phar_test.inc';
$fp = fopen($pname . '/b/c.php', 'wb');
-fwrite($fp, b"extra");
+fwrite($fp, "extra");
fclose($fp);
echo "===CLOSE===\n";
$p = new Phar($fname);
diff --git a/ext/phar/tests/rmdir.phpt b/ext/phar/tests/rmdir.phpt
index 726e2cfbac..ef061bf7c2 100644
--- a/ext/phar/tests/rmdir.phpt
+++ b/ext/phar/tests/rmdir.phpt
@@ -9,7 +9,7 @@ phar.require_hash=0
<?php
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
$pname = 'phar://' . $fname;
-$file = b"<?php
+$file = "<?php
Phar::mapPhar('hio');
__HALT_COMPILER(); ?>";
diff --git a/ext/phar/tests/tar/files/frontcontroller12.phar.inc b/ext/phar/tests/tar/files/frontcontroller12.phar.inc
index 0a9422a299..693ef0aa01 100644
--- a/ext/phar/tests/tar/files/frontcontroller12.phar.inc
+++ b/ext/phar/tests/tar/files/frontcontroller12.phar.inc
@@ -3,13 +3,13 @@
$a = new Phar(dirname(__FILE__) . '/frontcontroller12.phar.tar');
$a['index.php'] = '<?php
var_dump($_SERVER["PHP_SELF"]);
-var_dump($_SERVER[b"SCRIPT_NAME"]);
-var_dump($_SERVER[b"SCRIPT_FILENAME"]);
-var_dump($_SERVER[b"REQUEST_URI"]);
-var_dump($_SERVER[b"PHAR_PHP_SELF"]);
-var_dump($_SERVER[b"PHAR_SCRIPT_NAME"]);
-var_dump($_SERVER[b"PHAR_SCRIPT_FILENAME"]);
-var_dump($_SERVER[b"PHAR_REQUEST_URI"]);
+var_dump($_SERVER["SCRIPT_NAME"]);
+var_dump($_SERVER["SCRIPT_FILENAME"]);
+var_dump($_SERVER["REQUEST_URI"]);
+var_dump($_SERVER["PHAR_PHP_SELF"]);
+var_dump($_SERVER["PHAR_SCRIPT_NAME"]);
+var_dump($_SERVER["PHAR_SCRIPT_FILENAME"]);
+var_dump($_SERVER["PHAR_REQUEST_URI"]);
';
$a->setStub('<?php
Phar::mungServer(array("PHP_SELF", "SCRIPT_NAME", "SCRIPT_FILENAME", "REQUEST_URI"));
diff --git a/ext/phar/tests/tar/files/frontcontroller12.phar.tar b/ext/phar/tests/tar/files/frontcontroller12.phar.tar
index e945e49bd4..2d31581373 100644
--- a/ext/phar/tests/tar/files/frontcontroller12.phar.tar
+++ b/ext/phar/tests/tar/files/frontcontroller12.phar.tar
Binary files differ
diff --git a/ext/phar/tests/tar/files/frontcontroller3.phar.inc b/ext/phar/tests/tar/files/frontcontroller3.phar.inc
index 800f65e819..9729d0065b 100644
--- a/ext/phar/tests/tar/files/frontcontroller3.phar.inc
+++ b/ext/phar/tests/tar/files/frontcontroller3.phar.inc
@@ -7,7 +7,7 @@ $a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
function s($a)
{
- static $b = array(b"/hi" => b"a.phps");
+ static $b = array("/hi" => "a.phps");
if (isset($b[$a])) return $b[$a];
return $a;
}
diff --git a/ext/phar/tests/tar/files/frontcontroller3.phar.tar b/ext/phar/tests/tar/files/frontcontroller3.phar.tar
index 16853bd10f..81a89b23c3 100644
--- a/ext/phar/tests/tar/files/frontcontroller3.phar.tar
+++ b/ext/phar/tests/tar/files/frontcontroller3.phar.tar
Binary files differ
diff --git a/ext/phar/tests/tar/files/frontcontroller4.phar.inc b/ext/phar/tests/tar/files/frontcontroller4.phar.inc
index bfb9b4104c..eb1d56f0d4 100644
--- a/ext/phar/tests/tar/files/frontcontroller4.phar.inc
+++ b/ext/phar/tests/tar/files/frontcontroller4.phar.inc
@@ -7,7 +7,7 @@ $a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
function s($a)
{
- static $b = array(b"/hi" => false);
+ static $b = array("/hi" => false);
if (isset($b[$a])) return $b[$a];
return $a;
}
diff --git a/ext/phar/tests/tar/files/frontcontroller4.phar.tar b/ext/phar/tests/tar/files/frontcontroller4.phar.tar
index 5a1d4ee10c..04787536e8 100644
--- a/ext/phar/tests/tar/files/frontcontroller4.phar.tar
+++ b/ext/phar/tests/tar/files/frontcontroller4.phar.tar
Binary files differ
diff --git a/ext/phar/tests/tar/open_for_write_existing.phpt b/ext/phar/tests/tar/open_for_write_existing.phpt
index a034b8fc3c..641e5ce21d 100644
--- a/ext/phar/tests/tar/open_for_write_existing.phpt
+++ b/ext/phar/tests/tar/open_for_write_existing.phpt
@@ -27,7 +27,7 @@ foreach ($files as $n => $file) {
$phar->stopBuffering();
$fp = fopen($alias . '/b/c.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
diff --git a/ext/phar/tests/tar/open_for_write_existing_b.phpt b/ext/phar/tests/tar/open_for_write_existing_b.phpt
index 8d80847733..752192835d 100644
--- a/ext/phar/tests/tar/open_for_write_existing_b.phpt
+++ b/ext/phar/tests/tar/open_for_write_existing_b.phpt
@@ -36,7 +36,7 @@ function err_handler($errno, $errstr, $errfile, $errline) {
set_error_handler("err_handler", E_RECOVERABLE_ERROR);
$fp = fopen($alias . '/b/c.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
diff --git a/ext/phar/tests/tar/open_for_write_newfile.phpt b/ext/phar/tests/tar/open_for_write_newfile.phpt
index e2efb3486a..31e9d4a7e9 100644
--- a/ext/phar/tests/tar/open_for_write_newfile.phpt
+++ b/ext/phar/tests/tar/open_for_write_newfile.phpt
@@ -27,7 +27,7 @@ foreach ($files as $n => $file) {
$phar->stopBuffering();
$fp = fopen($alias . '/b/new.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
diff --git a/ext/phar/tests/tar/phar_stub.phpt b/ext/phar/tests/tar/phar_stub.phpt
index 5a61eae4a2..e0d728f6f8 100644
--- a/ext/phar/tests/tar/phar_stub.phpt
+++ b/ext/phar/tests/tar/phar_stub.phpt
@@ -22,14 +22,14 @@ copy($fname2, $fname);
$phar = new Phar($fname);
echo $phar->getStub();
-$file = b'<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
+$file = '<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
//// 2
$phar->setStub($file);
echo $phar->getStub();
$fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phartmp.php';
-$file = b'<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
+$file = '<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
$fp = fopen($fname3, 'wb');
fwrite($fp, $file);
fclose($fp);
@@ -42,7 +42,7 @@ fclose($fp);
echo $phar->getStub();
$fp = fopen($fname3, 'ab');
-fwrite($fp, b'booya');
+fwrite($fp, 'booya');
fclose($fp);
echo file_get_contents($fname3) . "\n";
diff --git a/ext/phar/tests/tar/refcount1.phpt b/ext/phar/tests/tar/refcount1.phpt
index 4d2c34e51e..9d1cb5e415 100644
--- a/ext/phar/tests/tar/refcount1.phpt
+++ b/ext/phar/tests/tar/refcount1.phpt
@@ -30,7 +30,7 @@ foreach ($files as $n => $file) {
$tar->close();
$fp = fopen($alias . '/b/c.php', 'wb');
-fwrite($fp, b"extra");
+fwrite($fp, "extra");
fclose($fp);
echo "===CLOSE===\n";
$phar = new Phar($fname);
diff --git a/ext/phar/tests/zip/files/frontcontroller12.phar.inc b/ext/phar/tests/zip/files/frontcontroller12.phar.inc
index c5f38ffd19..77c4a1dd0e 100644
--- a/ext/phar/tests/zip/files/frontcontroller12.phar.inc
+++ b/ext/phar/tests/zip/files/frontcontroller12.phar.inc
@@ -3,13 +3,13 @@
$a = new Phar(dirname(__FILE__) . '/frontcontroller12.phar.zip');
$a['index.php'] = '<?php
var_dump($_SERVER["PHP_SELF"]);
-var_dump($_SERVER[b"SCRIPT_NAME"]);
-var_dump($_SERVER[b"SCRIPT_FILENAME"]);
-var_dump($_SERVER[b"REQUEST_URI"]);
-var_dump($_SERVER[b"PHAR_PHP_SELF"]);
-var_dump($_SERVER[b"PHAR_SCRIPT_NAME"]);
-var_dump($_SERVER[b"PHAR_SCRIPT_FILENAME"]);
-var_dump($_SERVER[b"PHAR_REQUEST_URI"]);
+var_dump($_SERVER["SCRIPT_NAME"]);
+var_dump($_SERVER["SCRIPT_FILENAME"]);
+var_dump($_SERVER["REQUEST_URI"]);
+var_dump($_SERVER["PHAR_PHP_SELF"]);
+var_dump($_SERVER["PHAR_SCRIPT_NAME"]);
+var_dump($_SERVER["PHAR_SCRIPT_FILENAME"]);
+var_dump($_SERVER["PHAR_REQUEST_URI"]);
';
$a->setStub('<?php
Phar::mungServer(array("PHP_SELF", "SCRIPT_NAME", "SCRIPT_FILENAME", "REQUEST_URI"));
diff --git a/ext/phar/tests/zip/files/frontcontroller12.phar.zip b/ext/phar/tests/zip/files/frontcontroller12.phar.zip
index ed9be3d00b..41ae5873d6 100644
--- a/ext/phar/tests/zip/files/frontcontroller12.phar.zip
+++ b/ext/phar/tests/zip/files/frontcontroller12.phar.zip
Binary files differ
diff --git a/ext/phar/tests/zip/files/frontcontroller3.phar.inc b/ext/phar/tests/zip/files/frontcontroller3.phar.inc
index ccd55b73f9..ab28f7b3d0 100644
--- a/ext/phar/tests/zip/files/frontcontroller3.phar.inc
+++ b/ext/phar/tests/zip/files/frontcontroller3.phar.inc
@@ -7,7 +7,7 @@ $a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
function s($a)
{
- static $b = array(b"/hi" => b"a.phps");
+ static $b = array("/hi" => "a.phps");
if (isset($b[$a])) return $b[$a];
return $a;
}
diff --git a/ext/phar/tests/zip/files/frontcontroller3.phar.zip b/ext/phar/tests/zip/files/frontcontroller3.phar.zip
index 6f35a8042c..c830fd060e 100644
--- a/ext/phar/tests/zip/files/frontcontroller3.phar.zip
+++ b/ext/phar/tests/zip/files/frontcontroller3.phar.zip
Binary files differ
diff --git a/ext/phar/tests/zip/files/frontcontroller4.phar.inc b/ext/phar/tests/zip/files/frontcontroller4.phar.inc
index 9f664cf2c6..d78399142e 100644
--- a/ext/phar/tests/zip/files/frontcontroller4.phar.inc
+++ b/ext/phar/tests/zip/files/frontcontroller4.phar.inc
@@ -7,7 +7,7 @@ $a['a.phps'] = '<?php function hio(){}';
$a->setStub('<?php
function s($a)
{
- static $b = array(b"/hi" => false);
+ static $b = array("/hi" => false);
if (isset($b[$a])) return $b[$a];
return $a;
}
diff --git a/ext/phar/tests/zip/files/frontcontroller4.phar.zip b/ext/phar/tests/zip/files/frontcontroller4.phar.zip
index fb27ccb0b1..d87fbd8406 100644
--- a/ext/phar/tests/zip/files/frontcontroller4.phar.zip
+++ b/ext/phar/tests/zip/files/frontcontroller4.phar.zip
Binary files differ
diff --git a/ext/phar/tests/zip/open_for_write_existing.phpt b/ext/phar/tests/zip/open_for_write_existing.phpt
index bbf036ce7e..94f85b4e3f 100644
--- a/ext/phar/tests/zip/open_for_write_existing.phpt
+++ b/ext/phar/tests/zip/open_for_write_existing.phpt
@@ -26,7 +26,7 @@ foreach ($files as $n => $file) {
$phar->stopBuffering();
$fp = fopen($alias . '/b/c.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
?>
diff --git a/ext/phar/tests/zip/open_for_write_existing_b.phpt b/ext/phar/tests/zip/open_for_write_existing_b.phpt
index 24368ad34b..d8efa51050 100644
--- a/ext/phar/tests/zip/open_for_write_existing_b.phpt
+++ b/ext/phar/tests/zip/open_for_write_existing_b.phpt
@@ -36,7 +36,7 @@ function err_handler($errno, $errstr, $errfile, $errline) {
set_error_handler("err_handler", E_RECOVERABLE_ERROR);
$fp = fopen($alias . '/b/c.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
?>
diff --git a/ext/phar/tests/zip/open_for_write_existing_c.phpt b/ext/phar/tests/zip/open_for_write_existing_c.phpt
index 3e769cf427..43d862a2f1 100644
--- a/ext/phar/tests/zip/open_for_write_existing_c.phpt
+++ b/ext/phar/tests/zip/open_for_write_existing_c.phpt
@@ -30,7 +30,7 @@ $phar->stopBuffering();
ini_set('phar.readonly', 1);
$fp = fopen($alias . '/b/c.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
?>
diff --git a/ext/phar/tests/zip/open_for_write_newfile.phpt b/ext/phar/tests/zip/open_for_write_newfile.phpt
index ffcae0f833..c3782d4fd3 100644
--- a/ext/phar/tests/zip/open_for_write_newfile.phpt
+++ b/ext/phar/tests/zip/open_for_write_newfile.phpt
@@ -26,7 +26,7 @@ foreach ($files as $n => $file) {
$phar->stopBuffering();
$fp = fopen($alias . '/b/new.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
diff --git a/ext/phar/tests/zip/open_for_write_newfile_b.phpt b/ext/phar/tests/zip/open_for_write_newfile_b.phpt
index 9303a457e0..6457a029d9 100644
--- a/ext/phar/tests/zip/open_for_write_newfile_b.phpt
+++ b/ext/phar/tests/zip/open_for_write_newfile_b.phpt
@@ -36,7 +36,7 @@ function err_handler($errno, $errstr, $errfile, $errline) {
set_error_handler("err_handler", E_RECOVERABLE_ERROR);
$fp = fopen($alias . '/b/new.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
diff --git a/ext/phar/tests/zip/open_for_write_newfile_c.phpt b/ext/phar/tests/zip/open_for_write_newfile_c.phpt
index f50a152243..b4a254c358 100644
--- a/ext/phar/tests/zip/open_for_write_newfile_c.phpt
+++ b/ext/phar/tests/zip/open_for_write_newfile_c.phpt
@@ -30,7 +30,7 @@ $phar->stopBuffering();
ini_set('phar.readonly', 1);
$fp = fopen($alias . '/b/new.php', 'wb');
-fwrite($fp, b'extra');
+fwrite($fp, 'extra');
fclose($fp);
include $alias . '/b/c.php';
diff --git a/ext/phar/tests/zip/phar_stub.phpt b/ext/phar/tests/zip/phar_stub.phpt
index 72c1f17d78..a2a6aa6f2a 100644
--- a/ext/phar/tests/zip/phar_stub.phpt
+++ b/ext/phar/tests/zip/phar_stub.phpt
@@ -22,14 +22,14 @@ copy($fname2, $fname);
$phar = new Phar($fname);
echo $phar->getStub();
-$file = b'<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
+$file = '<?php echo "second stub\n"; __HALT_COMPILER(); ?>';
//// 2
$phar->setStub($file);
echo $phar->getStub();
$fname3 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phartmp.php';
-$file = b'<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
+$file = '<?php echo "third stub\n"; __HALT_COMPILER(); ?>';
$fp = fopen($fname3, 'wb');
fwrite($fp, $file);
fclose($fp);
@@ -42,7 +42,7 @@ fclose($fp);
echo $phar->getStub();
$fp = fopen($fname3, 'ab');
-fwrite($fp, b'booya');
+fwrite($fp, 'booya');
fclose($fp);
echo file_get_contents($fname3) . "\n";
diff --git a/ext/phar/tests/zip/refcount1.phpt b/ext/phar/tests/zip/refcount1.phpt
index 9917871148..5b8085bdbc 100644
--- a/ext/phar/tests/zip/refcount1.phpt
+++ b/ext/phar/tests/zip/refcount1.phpt
@@ -28,7 +28,7 @@ foreach ($files as $n => $file) {
$phar->stopBuffering();
$fp = fopen($alias . '/b/c.php', 'wb');
-fwrite($fp, b"extra");
+fwrite($fp, "extra");
fclose($fp);
echo "===CLOSE===\n";
$b = fopen($alias . '/b/c.php', 'rb');