Skip to content

Commit c6ed104

Browse files
committed
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix GH-17403: Potential deadlock when putenv fails
2 parents 3036101 + 32e0912 commit c6ed104

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ PHP NEWS
77
inaccurate sunrise and sunset times, but other calculated times are
88
correct) (JiriJozif).
99

10+
- Standard:
11+
. Fixed bug GH-17403 (Potential deadlock when putenv fails). (nielsdos)
12+
1013
24 Apr 2025, PHP 8.4.7
1114

1215
- Core:

ext/standard/basic_functions.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ PHP_FUNCTION(putenv)
827827
#endif
828828
RETURN_TRUE;
829829
} else {
830+
tsrm_env_unlock();
830831
free(pe.putenv_string);
831832
zend_string_release(pe.key);
832833
#ifdef PHP_WIN32

0 commit comments

Comments
 (0)