|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-12-22 01:02 UTC] pajoye@php.net
-Status: Open
+Status: Bogus
[2010-12-22 01:02 UTC] pajoye@php.net
[2010-12-31 00:45 UTC] sbacsa at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
Description: ------------ It appears that enabling fastcgi.impersonate on Windows in PHP 5.3.x does not actually impersonate the calling user when using exec() or similar. I would just get messages saying "Cannot fork", whereas in PHP 5.2.x there was no such error. Turning off fastcgi.impersonate fixed this issue, as IIS seems to run PHP in the user context of the worker process anyway. Test script: --------------- <? // This will fail when fastcgi.impersonate = 1 in PHP 5.3.x exec("c:\\path\\to\\executable.exe"); Expected result: ---------------- The file should be successfully executed if the worker process user has permission to access the EXE. Actual result: -------------- Regardless of worker process permissions, an error message saying: "Warning: exec() [function.exec]: Unable to fork [c:\path\to\executable.exe]" is encountered.