/PHP-5.5/ext/phar/tests/cache_list/files/ |
H A D | nophar.phar.inc | 1 <?php 5 $p['index.php'] = '<?php include "b/c.php";' . "\n"; 6 $p['web.php'] = '<?php echo "web\n";'; 7 $p['b/c.php'] = '<?php echo "in b\n";$a = fopen("index.php", "r", true);echo stream_get_contents($a… 9 $p->setStub($p->createDefaultStub('index.php', 'web.php'));
|
H A D | frontcontroller13.phar | 1 <?php 4 � index.php/�L�G/���w�oof/test.php3�L�G3B�Z� 5 oof/hi.php�L�G|D)�<?php 7 include "oof/test.php";<?php 8 var_dump("oof/test.php"); 9 include "./hi.php";<?php
|
/PHP-5.5/ext/phar/tests/ |
H A D | phar_mount.phpt | 8 <?php 9 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; 14 $a['index.php'] = '<?php 27 $a->setStub('<?php 29 include "index.php"; 35 $b->setStub('<?php 37 include "index.php"; 54 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> 55 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?> 57 Mounting of testit to %sphar_mount.php within phar %sphar_mount.phar.php failed [all …]
|
H A D | phar_oo_002.phpt | 4 <?php 13 <?php 52 <?php 57 string(42) "phar://*/files/phar_oo_test.phar.php%ca.php" 83 string(42) "phar://*/files/phar_oo_test.phar.php%cb.php" 96 string(42) "phar://*/files/phar_oo_test.phar.php%ce.php" 110 string(42) "phar://*/files/phar_oo_test.phar.php%ca.php" 116 string(44) "phar://*/files/phar_oo_test.phar.php/b%cc.php" 122 string(44) "phar://*/files/phar_oo_test.phar.php/b%cd.php" 128 string(42) "phar://*/files/phar_oo_test.phar.php%cb.php" [all …]
|
H A D | phar_oo_002U.phpt | 4 <?php 13 <?php 52 <?php 57 unicode(42) "phar://*/files/phar_oo_test.phar.php%ca.php" 83 unicode(42) "phar://*/files/phar_oo_test.phar.php%cb.php" 96 unicode(42) "phar://*/files/phar_oo_test.phar.php%ce.php" 110 unicode(42) "phar://*/files/phar_oo_test.phar.php%ca.php" 116 unicode(44) "phar://*/files/phar_oo_test.phar.php/b%cc.php" 122 unicode(44) "phar://*/files/phar_oo_test.phar.php/b%cd.php" 128 unicode(42) "phar://*/files/phar_oo_test.phar.php%cb.php" [all …]
|
H A D | 027.phpt | 4 <?php 11 <?php 12 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; 17 $files['a.php'] = '<?php echo "This is a\n"; require \''.$pname.'/b.php\'; ?>'; 18 $files['b.php'] = '<?php echo "This is b\n"; require \''.$pname.'/b/c.php\'; ?>'; 19 $files['b/c.php'] = '<?php echo "This is b/c\n"; require \''.$pname.'/b/d.php\'; ?>'; 20 $files['b/d.php'] = '<?php echo "This is b/d\n"; require \''.$pname.'/e.php\'; ?>'; 21 $files['e.php'] = '<?php echo "This is e\n"; ?>'; 62 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> 65 string(6) "/a.php" [all …]
|
H A D | 027U.phpt | 4 <?php 11 <?php 12 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; 17 $files['a.php'] = '<?php echo "This is a\n"; require \''.$pname.'/b.php\'; ?>'; 18 $files['b.php'] = '<?php echo "This is b\n"; require \''.$pname.'/b/c.php\'; ?>'; 19 $files['b/c.php'] = '<?php echo "This is b/c\n"; require \''.$pname.'/b/d.php\'; ?>'; 20 $files['b/d.php'] = '<?php echo "This is b/d\n"; require \''.$pname.'/e.php\'; ?>'; 21 $files['e.php'] = '<?php echo "This is e\n"; ?>'; 62 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?> 65 unicode(6) "/a.php" [all …]
|
H A D | phar_oo_007.phpt | 9 <?php 25 $f = $phar['a.php']; 47 <?php 49 $f = $phar['a.php']; 61 <?php 66 MyFile::__construct(phar://*/files/phar_oo_test.phar.php/a.php) 72 string(32) "<?php echo "This is a.php\n"; ?>" 76 string(12) "a.php\n"; ?>" 79 string(32) "<?php echo "This is a.php\n"; ?>" 82 MyFile::__construct(phar://*/files/phar_oo_test.phar.php/a.php) [all …]
|
H A D | create_new_phar_c.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 5 <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> 10 <?php 12 …_put_contents('phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php/a.php', 15 $phar = new Phar(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'); 21 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
|
H A D | phar_oo_006.phpt | 9 <?php 33 echo $phar['a.php']->getFilename() . "\n"; 34 echo $phar['b/c.php']->getFilename() . "\n"; 35 echo $phar['b.php']->getFilename() . "\n"; 40 <?php 46 MyFile::__construct(phar://%s/a.php) 47 a.php 48 MyFile::__construct(phar://%s/b/c.php) 49 c.php 50 MyFile::__construct(phar://%s/b.php) [all …]
|
H A D | phar_oo_getcontentsgz.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 5 <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> 6 <?php if (!extension_loaded("zlib")) die("skip zlib not available"); ?> 10 <?php 11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; 12 $fname2 = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.2.phar.php'; 25 <?php 26 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); 27 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.2.phar.php');
|
/PHP-5.5/ext/phar/tests/zip/ |
H A D | phar_begin_setstub_commit.phpt | 4 <?php 11 <?php 18 $p['a.php'] = '<?php var_dump("Hello");'; 20 include 'phar://brandnewphar.phar/a.php'; 22 $p['b.php'] = '<?php var_dump("World");'; 24 include 'phar://brandnewphar.phar/b.php'; 29 include 'phar://brandnewphar.phar/a.php'; 30 include 'phar://brandnewphar.phar/b.php'; 35 $a = fopen(dirname(__FILE__) . '/myfakestub.php', 'rb'); 47 <?php [all …]
|
H A D | open_for_write_existing.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 9 <?php 11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip'; 15 $phar->setStub('<?php __HALT_COMPILER(); ?>'); 19 $files['a.php'] = '<?php echo "This is a\n"; ?>'; 20 $files['b.php'] = '<?php echo "This is b\n"; ?>'; 21 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>'; 28 $fp = fopen($alias . '/b/c.php', 'wb'); 31 include $alias . '/b/c.php'; 36 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?>
|
H A D | create_new_phar_b.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 9 <?php 11 …_put_contents('phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip/a.php', 13 include 'phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip/a.php'; 18 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> 21 …phar.zip/a.php): failed to open stream: phar error: write operations disabled by the php.ini setti… 23 … include(phar://%screate_new_phar_b.phar.zip/a.php): failed to open stream: %s in %screate_new_pha… 25 …ning 'phar://%screate_new_phar_b.phar.zip/a.php' for inclusion (include_path='%s') in %screate_new…
|
H A D | open_for_write_existing_b.phpt | 4 <?php 12 <?php 14 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip'; 18 $phar->setStub('<?php __HALT_COMPILER(); ?>'); 22 $files['a.php'] = '<?php echo "This is a\n"; ?>'; 23 $files['b.php'] = '<?php echo "This is b\n"; ?>'; 24 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>'; 39 $fp = fopen($alias . '/b/c.php', 'wb'); 42 include $alias . '/b/c.php'; 46 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.zip'); ?> [all …]
|
H A D | create_new_and_modify.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 5 <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> 9 <?php 11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip.php'; 16 file_put_contents($pname . '/a.php', "brand new!\n"); 30 include $pname . '/a.php'; 32 file_put_contents($pname .'/a.php', "modified!\n"); 33 file_put_contents($pname .'/b.php', "another!\n"); 40 include $pname . '/a.php'; 41 include $pname . '/b.php'; [all …]
|
/PHP-5.5/ext/phar/tests/tar/ |
H A D | open_for_write_existing.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 9 <?php 11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar'; 15 $phar->setStub("<?php __HALT_COMPILER(); ?>"); 19 $files['a.php'] = '<?php echo "This is a\n"; ?>'; 20 $files['b.php'] = '<?php echo "This is b\n"; ?>'; 21 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>'; 29 $fp = fopen($alias . '/b/c.php', 'wb'); 33 include $alias . '/b/c.php'; 39 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?>
|
H A D | create_new_phar_b.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 9 <?php 11 …_put_contents('phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar/a.php', 13 include 'phar://' . dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar/a.php'; 18 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?> 21 …phar.tar/a.php): failed to open stream: phar error: write operations disabled by the php.ini setti… 23 … include(phar://%screate_new_phar_b.phar.tar/a.php): failed to open stream: %s in %screate_new_pha… 25 …ning 'phar://%screate_new_phar_b.phar.tar/a.php' for inclusion (include_path='%s') in %screate_new…
|
H A D | phar_magic.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 9 <?php 10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar.php'; 13 $p['a'] = '<?php include "b/c.php";' . "\n"; 14 $p['b/c.php'] = '<?php echo "in b\n";$a = fopen("a", "r", true);echo stream_get_contents($a);fclose… 16 $p->setStub('<?php 27 <?php 28 unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar.php'); 34 <?php include "b/c.php";
|
H A D | open_for_write_existing_b.phpt | 4 <?php 12 <?php 14 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar'; 18 $phar->setStub("<?php __HALT_COMPILER(); ?>"); 22 $files['a.php'] = '<?php echo "This is a\n"; ?>'; 23 $files['b.php'] = '<?php echo "This is b\n"; ?>'; 24 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>'; 39 $fp = fopen($alias . '/b/c.php', 'wb'); 43 include $alias . '/b/c.php'; 49 <?php unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.phar.tar'); ?> [all …]
|
H A D | create_new_and_modify.phpt | 4 <?php if (!extension_loaded("phar")) die("skip"); ?> 5 <?php if (!extension_loaded("spl")) die("skip SPL not available"); ?> 9 <?php 11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar.php'; 16 file_put_contents($pname . '/a.php', "brand new!\n"); 30 include $pname . '/a.php'; 32 file_put_contents($pname .'/a.php', "modified!\n"); 33 file_put_contents($pname .'/b.php', "another!\n"); 40 include $pname . '/a.php'; 41 include $pname . '/b.php'; [all …]
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | php_fd_wrapper_03.phpt | 2 php://fd wrapper: bad syntax 4 <?php 5 fopen("php://fd", "w"); 6 fopen("php://fd/", "w"); 7 fopen("php://fd/-2", "w"); 8 fopen("php://fd/1/", "w"); 12 Warning: fopen(): Invalid php:// URL specified in %s on line %d 14 Warning: fopen(php://fd): failed to open stream: operation failed in %s on line 2 16 Warning: fopen(php://fd/): failed to open stream: php://fd/ stream must be specified in the form ph… 18 Warning: fopen(php://fd/-2): failed to open stream: The file descriptors must be non-negative numbe… [all …]
|
/PHP-5.5/ext/phar/tests/files/ |
H A D | include_path.phar.inc | 1 <?php 5 $phar2['file1.php'] = 'file1.php 7 $phar2['test/file1.php'] = 'test/file1.php 9 $phar['hello/test.php'] = '<?php 10 include "file1.php";'; 12 $phar->setStub("<?php 14 include 'phar://' . __FILE__ . '/hello/test.php'; 16 include 'phar://' . __FILE__ . '/hello/test.php';
|
H A D | frontcontroller13.phar | 1 <?php 4 � index.php/�L�G/���w�oof/test.php3�L�G3B�Z� 5 oof/hi.php�L�G|D)�<?php 7 include "oof/test.php";<?php 8 var_dump("oof/test.php"); 9 include "./hi.php";<?php
|
/PHP-5.5/Zend/tests/ |
H A D | halt_compiler2.phpt | 4 <?php 5 $text = "<?php echo 'test'; var_dump(__COMPILER_HALT_OFFSET__); __HALT_COMPILER(); ?> 7 file_put_contents(dirname(__FILE__) . '/test1.php', $text); 8 $text = "<?php echo 'test2'; var_dump(__COMPILER_HALT_OFFSET__); __HALT_COMPILER(); ?> 10 file_put_contents(dirname(__FILE__) . '/test2.php', $text); 11 include dirname(__FILE__) . '/test1.php'; 12 include dirname(__FILE__) . '/test2.php'; 16 <?php 17 unlink(dirname(__FILE__) . '/test1.php'); 18 unlink(dirname(__FILE__) . '/test2.php');
|