From:
Operating system: Windows Server 2008
PHP version: 5.3.4
Package: IIS related
Bug Type: Bug
Bug description:exec() fails to impersonate calling context when
fastcgi.impersonate is true
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.
--
Edit bug report at http://bugs.php.net/bug.php?id=53591&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53591&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53591&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53591&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53591&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53591&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53591&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53591&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53591&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53591&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53591&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53591&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53591&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53591&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53591&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53591&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53591&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53591&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53591&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53591&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53591&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53591&r=mysqlcfg