]> granicus.if.org Git - php/commitdiff
merge from HEAD changes to test
authorGreg Beaver <cellog@php.net>
Fri, 24 Jul 2009 23:55:49 +0000 (23:55 +0000)
committerGreg Beaver <cellog@php.net>
Fri, 24 Jul 2009 23:55:49 +0000 (23:55 +0000)
ext/phar/tests/016.phpt

index 302d06d3cb3d1d2ac49c547c563440c0e87431ba..3288e8eca4d94923cd17196a1e8dbfa6da8ee08f 100644 (file)
@@ -9,14 +9,14 @@ phar.require_hash=0
 <?php
 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
 $pname = 'phar://' . $fname;
-$file = "<?php __HALT_COMPILER(); ?>";
+$file = b"<?php __HALT_COMPILER(); ?>";
 // file length is too short
 
 $files = array();
 // "hi" gzdeflated
-$files['a'] = array('cont'=>'a','comp'=> pack('H*', 'cbc80400'),'flags'=>0x00001000, 'ulen' => 1, 'clen' => 4);
+$files['a'] = array('cont'=>b'a','comp'=> (binary)pack('H*', 'cbc80400'),'flags'=>0x00001000, 'ulen' => 1, 'clen' => 4);
 $files['b'] = $files['a'];
-$files['c'] = array('cont'=>'*');
+$files['c'] = array('cont'=>b'*');
 $files['d'] = $files['a'];
 include 'files/phar_test.inc';