Download src/php/php-src/ext/phar/tests/files/include_path.phar.inc from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/files/include_path.phar.inc
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/phar/tests/files/include_path.phar.inc
-
curl -L -o include_path.phar.inc https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/phar/tests/files/include_path.phar.inc
665 Bytes
| // test advanced example | |
| $phar = new Phar(dirname(__FILE__) . '/include_path.phar'); | |
| $phar2 = new Phar(dirname(__FILE__) . '/include_path2.phar'); | |
| $phar2['file1.php'] = 'file1.php | |
| '; | |
| $phar2['test/file1.php'] = 'test/file1.php | |
| '; | |
| $phar['hello/test.php'] = '<?php | |
| include "file1.php";'; | |
| $phar->setStub("<?php | |
| set_include_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/files/include_path2.phar' ); | |
| include 'phar://' . __FILE__ . '/hello/test.php'; | |
| set_include_path('.' . PATH_SEPARATOR . 'phar://' . dirname(__FILE__) . '/files/include_path2.phar/test'); | |
| include 'phar://' . __FILE__ . '/hello/test.php'; | |
| echo \"ok\\n\"; | |
| __HALT_COMPILER(); | |
| ?>"); | |