Skip to content

Commit c1c3bcc

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: standard: Fix error check for proc_open() command
2 parents 14ea97a + 038e534 commit c1c3bcc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ PHP NEWS
1515

1616
- LDAP:
1717
. Fix memory leak in ldap_set_options(). (ndossche)
18+
19+
- Standard:
20+
. Fix error check for proc_open() command. (ndossche)
1821

1922
18 Dec 2025, PHP 8.4.16
2023

ext/standard/proc_open.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ typedef struct _descriptorspec_item {
507507
} descriptorspec_item;
508508

509509
static zend_string *get_valid_arg_string(zval *zv, int elem_num) {
510-
zend_string *str = zval_get_string(zv);
510+
zend_string *str = zval_try_get_string(zv);
511511
if (!str) {
512512
return NULL;
513513
}

0 commit comments

Comments
 (0)