We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e82816 commit ebfc49aCopy full SHA for ebfc49a
NEWS
@@ -3,6 +3,8 @@ PHP NEWS
3
?? ??? 2015, PHP 5.5.23
4
5
- Core:
6
+ . Fixed bug #69121 (Segfault in get_current_user when script owner is not
7
+ in passwd with ZTS build). (dan at syneto dot net)
8
. Fixed bug #65593 (Segfault when calling ob_start from output buffering
9
callback). (Mike)
10
. Fixed bug #69017 (Fail to push to the empty array with the constant value
main/main.c
@@ -1247,6 +1247,11 @@ PHPAPI char *php_get_current_user(TSRMLS_D)
1247
return "";
1248
}
1249
pwd = &_pw;
1250
+
1251
+ if (retpwptr == NULL) {
1252
+ efree(pwbuf);
1253
+ return "";
1254
+ }
1255
#else
1256
if ((pwd=getpwuid(pstat->st_uid))==NULL) {
1257
0 commit comments