Skip to content

Commit 32e0912

Browse files
committed
Fix GH-17403: Potential deadlock when putenv fails
Closes GH-18368.
1 parent 438f07c commit 32e0912

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

NEWS

+3
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
08 May 2025, PHP 8.3.21
1114

1215
- Core:

ext/standard/basic_functions.c

+1
Original file line numberDiff line numberDiff line change
@@ -849,6 +849,7 @@ PHP_FUNCTION(putenv)
849849
#endif
850850
RETURN_TRUE;
851851
} else {
852+
tsrm_env_unlock();
852853
free(pe.putenv_string);
853854
zend_string_release(pe.key);
854855
#ifdef PHP_WIN32

0 commit comments

Comments
 (0)