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

You can download FindNotepad.exe here :
http://www.sendspace.com/file/3g0lrf

Usage :
Run Notepad.exe and then :

<?
  echo shell_exec ('FindNotepad.exe');
?>

FindNotepad.exe returns :
if found - FOUND Notepad Window - HWND [HWND]
if not - CANNOT FIND Notepad Window

as String in Console window then Terminates.


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

[2006-12-08 18:26:05] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



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

[2006-12-08 18:12:52] sobieh at gmail dot com

omg dont treat me like an idiot please

Apache2 Service in using Root Administrator account.
everything is using this account because its the ONLY ACCOUNT on this
PC.

i checked it twice.
Apache is is using Administrator account.
and its RUNNING on this Account.

how many times i can tell that PHP 5.1.0 and ANY other version of PHP
can run that script without any problem and ONLY PHP 5.2.0 CAN'T.
as Apache Module - CAN'T
as CGI - CAN'T

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

[2006-12-08 18:03:20] [EMAIL PROTECTED]

YOU are using Administrator account, but your Apache does not.

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

[2006-12-08 17:57:30] sobieh at gmail dot com

im using Administrator account.

i told :
PHP 5.1.0 WORKS
PHP 5.2.0 NOT WORKS

so there is something wrong with apache handler.
because the same script works on 5.2.0 by php.exe script.php
and not works by Apache and on 5.1.0 works in both ways.

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

[2006-12-08 16:21:26] [EMAIL PROTECTED]

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

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

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
    http://bugs.php.net/39773

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

Reply via email to