1--TEST-- 2pcntl_exec() - Testing error when non-stringable arguments are passed for $args and $env_vars. 3--EXTENSIONS-- 4pcntl 5--SKIPIF-- 6<?php 7if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); 8?> 9--FILE-- 10<?php 11try { 12 pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), ['-n', new stdClass()]); 13} catch (Error $error) { 14 echo $error->getMessage() . "\n"; 15} 16 17try { 18 pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), ['-n'], [new stdClass()]); 19} catch (Error $error) { 20 echo $error->getMessage() . "\n"; 21} 22?> 23--EXPECT-- 24Object of class stdClass could not be converted to string 25Object of class stdClass could not be converted to string 26