|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-12-07 22:49 UTC] 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 22 06:00:01 2025 UTC |
Apache 2.0 Handler the most wired thing is : php.exe test_myapp.php works. but shell_exec('myapp.exe'); not.