PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/phar/tests/phar_gzip.phpt ('Phar: gzipped phar')

Script

1: <?php
2: $fname 
dirname(__FILE__) . '/phar_gzip.phar';
3:
$pname 'phar://' $fname;
4:
$fname2 dirname(__FILE__) . '/phar_gzip.2.phar';
5:
$pname2 'phar://' $fname2;
6:
7:
$file '<?php
8: Phar::mapPhar();
9: var_dump("it worked");
10: include "phar://" . __FILE__ . "/tar_004.php";
11: __HALT_COMPILER();'
;
12:
13:
$files = array();
14:
$files['tar_004.php']   = '<?php var_dump(__FILE__);';
15:
$files['internal/file/here']   = "hi there!\n";
16:
$files['internal/dir/'] = '';
17:
$files['dir/'] = '';
18:
$gzip true;
19:
20: include 
'files/phar_test.inc';
21:
22: include 
$fname;
23:
24:
$a = new Phar($fname);
25:
$a['test'] = 'hi';
26:
copy($fname$fname2);
27:
$a->setAlias('another');
28:
$b = new Phar($fname2);
29:
var_dump($b->isFileFormat(Phar::PHAR));
30:
var_dump($b->isCompressed() == Phar::GZ);
31:
$a stat($pname '/test');
32:
$b stat($pname2 '/test');
33: if (
$a['mtime'] != $b['mtime']) {
34:     echo 
"timestamp changed, was $a[mtime], now $b[mtime]!\n";
35: }
36:
?>
37:
===DONE===
38:

Expected

string(9) "it worked"
string(%d) "phar://%sphar_gzip.phar/tar_004.php"
bool(true)
bool(true)
===DONE===

Output

string(9) "it worked"
string(71) "phar:///var/php_gcov/PHP_HEAD/ext/phar/tests/phar_gzip.phar/tar_004.php"
bool(true)
bool(true)
timestamp changed, was 1411067739, now 1411067740!
===DONE===

Diff

005+ timestamp changed, was 1411067739, now 1411067740!

 

Generated at Fri, 19 Sep 2014 17:11:23 +0000 (2 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.