Skip to content

Commit 5789035

Browse files
committed
Merge branch 'PHP-5.5' into PHP-5.6
2 parents 414bc8e + 4eb830b commit 5789035

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,12 +1316,11 @@ PHPAPI char *php_get_current_user(TSRMLS_D)
13161316
efree(pwbuf);
13171317
return "";
13181318
}
1319-
pwd = &_pw;
1320-
13211319
if (retpwptr == NULL) {
13221320
efree(pwbuf);
13231321
return "";
13241322
}
1323+
pwd = &_pw;
13251324
#else
13261325
if ((pwd=getpwuid(pstat->st_uid))==NULL) {
13271326
return "";

0 commit comments

Comments
 (0)