Skip to content

Bundle php.exe along with php-cgi.exe to allow command line script execution #96

@GoogleCodeExporter

Description

@GoogleCodeExporter
Currently only php-cgi.exe is bundled with phpdesktop binaries, in the php/ 
directory. People may run into issues when they try to run php scripts from 
command line using php-cgi.exe, as this is a CGI interface for interacting with 
web servers and it works differently. You are not supposed to run php scripts 
from command line using php-cgi.exe.

If you try to run some php scripts in the background using this code:

  $backgroundexec = PHP_BINARY . " " . getcwd() . "\background.php " . $argument;
echo $backgroundexec;
  shell_exec($backgroundexec); 

It will cause creation of infinite number of cmd.exe and php-cgi.exe processes.

Original issue reported on code.google.com by [email protected] on 16 Mar 2014 at 2:41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions