Download src/php/php-src/ext/pcntl/tests/pcntl_exec_004.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 703 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcntl/tests/pcntl_exec_004.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcntl/tests/pcntl_exec_004.phpt
-
curl -L -o pcntl_exec_004.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcntl/tests/pcntl_exec_004.phpt
703 Bytes
| --TEST-- | |
| pcntl_exec() - Testing error when non-stringable arguments are passed for $args and $env_vars. | |
| --EXTENSIONS-- | |
| pcntl | |
| --SKIPIF-- | |
| if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); | |
| --FILE-- | |
| try { | |
| pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), ['-n', new stdClass()]); | |
| } catch (Error $error) { | |
| echo $error->getMessage() . "\n"; | |
| } | |
| try { | |
| pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), ['-n'], [new stdClass()]); | |
| } catch (Error $error) { | |
| echo $error->getMessage() . "\n"; | |
| } | |
| --EXPECT-- | |
| Object of class stdClass could not be converted to string | |
| Object of class stdClass could not be converted to string | |