File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
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
+ <?php
11
+ try {
12
+ pcntl_exec (getenv ("TEST_PHP_EXECUTABLE " ), ['-n ' , new stdClass ()]);
13
+ } catch (Error $ error ) {
14
+ echo $ error ->getMessage () . "\n" ;
15
+ }
16
+
17
+ try {
18
+ pcntl_exec (getenv ("TEST_PHP_EXECUTABLE " ), ['-n ' ], [new stdClass ()]);
19
+ } catch (Error $ error ) {
20
+ echo $ error ->getMessage () . "\n" ;
21
+ }
22
+ ?>
23
+ --EXPECT--
24
+ Object of class stdClass could not be converted to string
25
+ Object of class stdClass could not be converted to string
You can’t perform that action at this time.
0 commit comments