Skip to content

Commit 1172147

Browse files
committed
Merge branch 'PHP-8.4' into PHP-8.5
* PHP-8.4: standard: Fix error check for proc_open() command
2 parents 3e7710c + c1c3bcc commit 1172147

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
@@ -17,6 +17,9 @@ PHP NEWS
1717
. Fixed bug GH-20668 (\Uri\WhatWg\Url::withHost() crashes (SEGV) for URLs
1818
using the file: scheme). (lexborisov)
1919

20+
- Standard:
21+
. Fix error check for proc_open() command. (ndossche)
22+
2023
18 Dec 2025, PHP 8.5.1
2124

2225
- Core:

ext/standard/proc_open.c

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

505505
static zend_string *get_valid_arg_string(zval *zv, uint32_t elem_num) {
506-
zend_string *str = zval_get_string(zv);
506+
zend_string *str = zval_try_get_string(zv);
507507
if (!str) {
508508
return NULL;
509509
}

0 commit comments

Comments
 (0)