ID:               34619
 Updated by:       [EMAIL PROTECTED]
 Reported By:      ootoaoo at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         IIS related
 Operating System: Windows 2003
 PHP Version:      5.0.5
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




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

[2005-09-23 19:31:15] ootoaoo at gmail dot com

Description:
------------
Use IIS 6 with an ISAPI module and exec and system will never actually
call the application to run.

http://geesu.net/gallery2/phpinfo.php (if you want to check settings)

If I use the CGI binary it works perfectly fine.  Note: All other PHP
things have worked fine with the ISAPI module, I only found exec and
system to be broken in my tests.

BUT, if the file you want to execute is in windows/system32, the
program will execute and you will receive a result, otherwise you will
not.

Also safe_mode is off, so it's not restricting the directory.

Reproduce code:
---------------
        // This will NOT work (assuming netstat.exe is copied to c:\tools\
        $command = "c:\\tools\\netstat.exe";
        echo system($command);

        // This will work as its in system32
        $command = "netstat";
        echo system($command);
        
        // This also works
        $command = "c:\\windows\\system32\\netstat.exe";
        echo system($command);


Expected result:
----------------
I expect to see the netstat result on ALL 3

Actual result:
--------------
The first echo returns nothing, the last 2 return results


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


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

Reply via email to