Test Failure Report for ext/opcache/tests/issue0115.phpt ('ISSUE #115 (path issue when using phar)')
Script
1:
<?php 2: $stub = '<?php 3: Phar::interceptFileFuncs(); 4: require "phar://this/index.php"; 5: __HALT_COMPILER(); ?>'; 6: $p = new Phar(__DIR__ . '/issue0115_1.phar.php', 0, 'this'); 7: $p['index.php'] = '<?php 8: echo "Hello from Index 1.\n"; 9: require_once "phar://this/hello.php"; 10: '; 11: $p['hello.php'] = "Hello World 1!\n"; 12: $p->setStub($stub); 13: unset($p); 14: $p = new Phar(__DIR__ . '/issue0115_2.phar.php', 0, 'this'); 15: $p['index.php'] = '<?php 16: echo "Hello from Index 2.\n"; 17: require_once "phar://this/hello.php"; 18: '; 19: $p['hello.php'] = "Hello World 2!\n"; 20: $p->setStub($stub); 21: unset($p); 22: 23: include "php_cli_server.inc"; 24: php_cli_server_start('-d opcache.enable=1 -d opcache.enable_cli=1 -d extension=phar.'.PHP_SHLIB_SUFFIX); 25: echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/issue0115_1.phar.php'); 26: echo file_get_contents('http://' . PHP_CLI_SERVER_ADDRESS . '/issue0115_2.phar.php'); 27: ?> 28:
Expected
Hello from Index 1.
Hello World 1!
Hello from Index 2.
Hello World 2!
Output
Unable to connect to server
Diff
001+ Unable to connect to server
001- Hello from Index 1.
002- Hello World 1!
003- Hello from Index 2.
004- Hello World 2!
Generated at Thu, 21 Feb 2019 22:06:51 +0000 (47 hours ago)
|