We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb265d2 commit 484d528Copy full SHA for 484d528
2 files changed
ext/standard/proc_open.c
@@ -1247,8 +1247,8 @@ PHP_FUNCTION(proc_open)
1247
1248
if (command_ht) {
1249
uint32_t num_elems = zend_hash_num_elements(command_ht);
1250
- if (num_elems == 0) {
1251
- zend_argument_value_error(1, "must have at least one element");
+ if (UNEXPECTED(num_elems == 0)) {
+ zend_argument_must_not_be_empty_error(1);
1252
RETURN_THROWS();
1253
}
1254
ext/standard/tests/general_functions/proc_open_array.phpt
@@ -76,7 +76,7 @@ proc_close($proc);
76
?>
77
--EXPECT--
78
Empty command array:
79
-proc_open(): Argument #1 ($command) must have at least one element
+proc_open(): Argument #1 ($command) must not be empty
80
81
Nul byte in program name:
82
Command array element 1 contains a null byte
0 commit comments