mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
0c51d58138
this work is incomplete, but compiles and existing tests pass
22 lines
442 B
PHP
22 lines
442 B
PHP
--TEST--
|
|
Phar::setStub()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("phar")) print "skip"; ?>
|
|
--INI--
|
|
phar.require_hash=0
|
|
phar.readonly=0
|
|
--FILE--
|
|
<?php
|
|
$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
|
|
$p = new Phar($fname);
|
|
$p['a'] = '<?php include "b.php";';
|
|
?>
|
|
===DONE===
|
|
--CLEAN--
|
|
<?php
|
|
unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php');
|
|
__HALT_COMPILER();
|
|
?>
|
|
--EXPECT--
|
|
===DONE===
|