Skip to content

Commit 905e4a9

Browse files
committed
Display error if command array item (for proc_open) can't be converted to string
1 parent 40ddf9d commit 905e4a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/proc_open.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ struct php_proc_open_descriptor_item {
396396
static zend_string *get_valid_arg_string(zval *zv, int elem_num) {
397397
zend_string *str = zval_get_string(zv);
398398
if (!str) {
399+
zend_value_error("Command array element %d could not be converted to string", elem_num);
399400
return NULL;
400401
}
401402

0 commit comments

Comments
 (0)