mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/standard: Use usual not empty error for proc_open() (#18083)
This commit is contained in:
committed by
GitHub
parent
bb265d2700
commit
484d528b40
@@ -1247,8 +1247,8 @@ PHP_FUNCTION(proc_open)
|
||||
|
||||
if (command_ht) {
|
||||
uint32_t num_elems = zend_hash_num_elements(command_ht);
|
||||
if (num_elems == 0) {
|
||||
zend_argument_value_error(1, "must have at least one element");
|
||||
if (UNEXPECTED(num_elems == 0)) {
|
||||
zend_argument_must_not_be_empty_error(1);
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ proc_close($proc);
|
||||
?>
|
||||
--EXPECT--
|
||||
Empty command array:
|
||||
proc_open(): Argument #1 ($command) must have at least one element
|
||||
proc_open(): Argument #1 ($command) must not be empty
|
||||
|
||||
Nul byte in program name:
|
||||
Command array element 1 contains a null byte
|
||||
|
||||
Reference in New Issue
Block a user