We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f8e518 commit 492f9c6Copy full SHA for 492f9c6
ext/pcntl/tests/pcntl_exec_004.phpt
@@ -0,0 +1,25 @@
1
+--TEST--
2
+pcntl_exec() - Testing error when non-stringable arguments are passed for $args and $env_vars.
3
+--EXTENSIONS--
4
+pcntl
5
+--SKIPIF--
6
+<?php
7
+if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set");
8
+?>
9
+--FILE--
10
11
+try {
12
+ pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), ['-n', new stdClass()]);
13
+} catch (Error $error) {
14
+ echo $error->getMessage() . "\n";
15
+}
16
+
17
18
+ pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), ['-n'], [new stdClass()]);
19
20
21
22
23
+--EXPECT--
24
+Object of class stdClass could not be converted to string
25
0 commit comments