Bug #61546 [Com]: get_current_user() return empty string after chdir
Edit report at https://bugs.php.net/bug.php?id=61546edit=1 ID: 61546 Comment by: reeze dot xia at gmail dot com Reported by:daedmen at gmail dot com Summary:get_current_user() return empty string after chdir Status: Open Type: Bug Package:Unknown/Other Function Operating System: Debian 4.3.5-4 PHP Version:5.3.10 Block user comment: N Private report: N New Comment: This bug have already been fixed by laruence. but it's status is open. Can anyone close it please? Previous Comments: [2012-05-29 10:26:59] a...@php.net Automatic comment on behalf of mattficken Revision: http://git.php.net/?p=php-src.git;a=commit;h=4054890b26c4d146cfbcd56d75aab7a7aebc8c89 Log: Fixed bug #62176 Test Bug - sapi/cli/tests/bug61546.phpt [2012-04-30 04:17:04] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=bae56a87f81b91cd815604b0f404f616b0d73c2b Log: Fixed bug #61546 (functions related to current script failed when chdir() in cli sapi). [2012-04-30 04:16:03] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=bae56a87f81b91cd815604b0f404f616b0d73c2b Log: Fixed bug #61546 (functions related to current script failed when chdir() in cli sapi). [2012-04-30 04:10:41] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=bae56a87f81b91cd815604b0f404f616b0d73c2b Log: Fixed bug #61546 (functions related to current script failed when chdir() in cli sapi). [2012-04-29 16:25:36] reeze dot xia at gmail dot com Hi, I can only reproduce it in cli sapi, fast-cgi fpm didn't affected. and I sent a pull request https://github.com/php/php-src/pull/69. Thanks. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61546 -- Edit this bug report at https://bugs.php.net/bug.php?id=61546edit=1
Bug #61546 [Com]: get_current_user() return empty string after chdir
Edit report at https://bugs.php.net/bug.php?id=61546edit=1 ID: 61546 Comment by: reeze dot xia at gmail dot com Reported by:daedmen at gmail dot com Summary:get_current_user() return empty string after chdir Status: Open Type: Bug Package:Unknown/Other Function Operating System: Debian 4.3.5-4 PHP Version:5.3.10 Block user comment: N Private report: N New Comment: Hi, I can only reproduce it in cli sapi, fast-cgi fpm didn't affected. and I sent a pull request https://github.com/php/php-src/pull/69. Thanks. Previous Comments: [2012-03-28 18:31:40] daedmen at gmail dot com Description: After chdir get_current_user() return '' Test script: --- ---first script--- var_dump(get_current_user()); ---second--- var_dump(chdir('../'),get_current_user()); ---third--- var_dump(get_current_user(),chdir('../'),get_current_user()); Expected result: always return current user Actual result: -- first script return current user -ok second return empty string third return current user to times -- Edit this bug report at https://bugs.php.net/bug.php?id=61546edit=1