ID:               47238
 Updated by:       tony2...@php.net
 Reported By:      helga79 at rediffmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         IIS related
 Operating System: Windows 2003
 PHP Version:      5.2.8
 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.

IIS being unable to run Perl binary because of some privilege issue ->
not PHP problem.


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

[2009-01-29 08:12:04] helga79 at rediffmail dot com

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 this bug report at http://bugs.php.net/?id=47238&edit=1

Reply via email to