ID:               39773
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sobieh at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Unknown/Other Function
 Operating System: Windows 2003 Server
 PHP Version:      5.2.0
 New Comment:

Why do you think your Apache service is run as a user who has enough
privileges to access windows of other users?
AFAIK by default Apache service uses least privileged system account
possible.
See here: http://httpd.apache.org/docs/2.2/platform/windows.html


Previous Comments:
------------------------------------------------------------------------

[2006-12-08 15:54:01] sobieh at gmail dot com

Apache 2.0 Handler

the most wired thing is :

php.exe test_myapp.php
works.

but shell_exec('myapp.exe');
not.

------------------------------------------------------------------------

[2006-12-08 15:43:40] [EMAIL PROTECTED]

I mean Server API, not web-server.
Open phpinfo() and at the top of the page you should see "Server API:
..." line.

------------------------------------------------------------------------

[2006-12-08 15:31:08] sobieh at gmail dot com

Apache 2.0.5 for Win32

------------------------------------------------------------------------

[2006-12-08 09:13:23] [EMAIL PROTECTED]

What kind of Server API are you using?

------------------------------------------------------------------------

[2006-12-07 22:49:51] sobieh at gmail dot com

Description:
------------
Shell_Exec - FindWindowA BUG

MyApp.exe is a C++ written console application.
It usues FindWindowA WinAPI function.

When i start MyApp.exe normally it founds desired window
but when i run MuApp.exe by shell_exec command in PHP 
it can't find Any window even 'explorer'.

i tried to run it on php 5.1.0
and works great but on 5.2.0 not
so i think its a BUG.

Reproduce code:
---------------
<?
   echo shell_exec('myapp.exe');
?>

Expected result:
----------------
should return FindWindowA result by MyApp.exe
as String.

Actual result:
--------------
null


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=39773&edit=1

Reply via email to