From:             ootoaoo at gmail dot com
Operating system: Windows 2003
PHP version:      5.0.5
PHP Bug Type:     IIS related
Bug description:  ISAPI module does not use exec/system functions correctly

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 bug report at http://bugs.php.net/?id=34619&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34619&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34619&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34619&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34619&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34619&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34619&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34619&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34619&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34619&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34619&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34619&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34619&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34619&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34619&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34619&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34619&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34619&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34619&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34619&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34619&r=mysqlcfg

Reply via email to