#47517 [Fbk->Opn]: php-cgi.exe missing UAC manifest
ID: 47517
User updated by: louis at steelbytes dot com
Reported By: louis at steelbytes dot com
-Status: Feedback
+Status: Open
Bug Type: Feature/Change Request
Operating System: Win32
PHP Version: 5.2.9
New Comment:
> Why do you need one?
as originally stated, to avoid Vista's (or 2k8's) virtualisation of the
file system.
eg if from a script I attempt to write to
c:\ProgramData\MyCompany\MyApp\file.ext and I don't have enough NTFS
perms, then vista virtualises this into
%USERPROFILE%\AppData\Local\VirtualStore\ProgramData\MyCompany\MyApp\file.ext
instead of giving me an access denied error.
> inherits the UAC from the caller
no, but yes, but no. it the caller is elevated, then yes the spawned
task (php) inherits this elevation. this is not the same thing that I
am talking about though. if an app has this manifest embedded, then no
matter what the elevation status or what perms the user has, file and
reg operations won't be virtulised.
..
note: this probably has very little relavence when run as cgi/fcgi on a
webserver, but when running as a cli for misc scripts on my pc then it
matters.
really there is no reason to not have one that I can see.
Previous Comments:
------------------------------------------------------------------------
[2009-02-27 09:13:05] pajoye@php.net
Why do you need one?
php can be used in any situations and inherits (or is set by) the UAC
from the caller (in case of fcgi or another SAPI for example).
------------------------------------------------------------------------
[2009-02-27 06:23:35] louis at steelbytes dot com
reason:
so that UAC won't virtualize file read/writes.
------------------------------------------------------------------------
[2009-02-27 03:51:48] louis at steelbytes dot com
Description:
------------
php-cgi.exe (and I guess other php .exe's) should have a UAC manifest
stating "asInvoker"
Reproduce code:
---------------
n/a
Expected result:
----------------
n/a
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47517&edit=1
Thread (7 messages)