Browse Source

update test to work in php 6

experimental/5.3-FPM
Greg Beaver 17 years ago
parent
commit
aa65955c8c
  1. 2
      ext/phar/tests/009.phpt

2
ext/phar/tests/009.phpt

@ -9,7 +9,7 @@ phar.require_hash=0
$file = b"<?php
Phar::mapPhar('hio');
__HALT_COMPILER(); ?>";
$file .= pack('VVnVVV', 500, 500, 0x1000, 0x00000000, 0, 0) . str_repeat('A', 500);
$file .= (binary) pack(b'VVnVVV', 500, 500, 0x1000, 0x00000000, 0, 0) . (binary) str_repeat((binary)'A', 500);
file_put_contents(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php', $file);
try {
include dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';

Loading…
Cancel
Save