From:             helga79 at rediffmail dot com
Operating system: Windows 2003
PHP version:      5.2.8
PHP Bug Type:     IIS related
Bug description:  function fails to run on IIS6.0

Description:
------------
The below php script when run from command prompt runs successfully gives
the output returned by perl script.
But when run on browser IIS6.0 php (CGI/Fast CGI) I get error.
I have pasted the test.php script. the perl script returns a numeric
value.

Reproduce code:
---------------
<?php
$cmd="perl uploadpost.pl"; 
$pipe = popen("$cmd",'r');    
   while($s = fgets($pipe, 2048)) {
          $output .= $s;
   };
   pclose($pipe);
   if (preg_match("/^\d+$/",$output)) {
      $sid=$output;
      echo "success.$sid";      
   }else{
echo "upload failed";
            }
?>

Expected result:
----------------
Success and $sid some numeric value which is returnes by the perl script

Actual result:
--------------
Warning: popen(perl uploadpost.pl,r): No error in D:\WFM_vDev_Tk\test.php
on line 25 pipe value. Warning: fgets(): supplied argument is not a valid
stream resource in D:\WFM_vDev_Tk\test.php on line 27 Warning: pclose():
supplied argument is not a valid stream resource in D:\WFM_vDev_Tk\test.php
on line 30 .


-- 
Edit bug report at http://bugs.php.net/?id=47238&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=47238&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=47238&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=47238&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=47238&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=47238&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=47238&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=47238&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=47238&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=47238&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=47238&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=47238&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=47238&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=47238&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=47238&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=47238&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=47238&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=47238&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=47238&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=47238&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=47238&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=47238&r=mysqlcfg

Reply via email to