Download src/php/php-src/tests/security/open_basedir_glob.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 746 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/security/open_basedir_glob.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/tests/security/open_basedir_glob.phpt
-
curl -L -o open_basedir_glob.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/tests/security/open_basedir_glob.phpt
746 Bytes
| --TEST-- | |
| Test open_basedir configuration | |
| --INI-- | |
| open_basedir=. | |
| --FILE-- | |
| require_once "open_basedir.inc"; | |
| test_open_basedir("glob"); | |
| --CLEAN-- | |
| require_once "open_basedir.inc"; | |
| delete_directories(); | |
| --EXPECTF-- | |
| *** Testing open_basedir configuration [glob] *** | |
| bool(true) | |
| bool(true) | |
| bool(true) | |
| bool(true) | |
| bool(true) | |
| bool(false) | |
| bool(false) | |
| bool(false) | |
| bool(false) | |
| bool(false) | |
| bool(false) | |
| bool(false) | |
| bool(false) | |
| bool(false) | |
| array(1) { | |
| [0]=> | |
| string(5) "../ok" | |
| } | |
| array(1) { | |
| [0]=> | |
| string(6) "ok.txt" | |
| } | |
| array(1) { | |
| [0]=> | |
| string(12) "../ok/ok.txt" | |
| } | |
| array(1) { | |
| [0]=> | |
| string(%d) "%s/test/ok/ok.txt" | |
| } | |
| array(1) { | |
| [0]=> | |
| string(%d) "%s/test/ok/../ok/ok.txt" | |
| } | |
| *** Finished testing open_basedir configuration [glob] *** | |