php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42469 system($Any_Windows_CLI_Program.exe); fails
Submitted: 2007-08-29 11:35 UTC Modified: 2007-08-29 11:46 UTC
From: wolny at mvcr dot cz Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.2.3 OS: Windows XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wolny at mvcr dot cz
New email:
PHP Version: OS:

 

 [2007-08-29 11:35 UTC] wolny at mvcr dot cz
Description:
------------
system($Any_Windows_CLI_Program.exe);
Program ignore input/output (output - none effect, input - infinite 
loop).

Reproduce code:
---------------
my_cli_example.php:
    <?php system('my_cli_example.exe'); ?>

my_cli_example.cpp:
   #include <iostream>
   
   int main()
   {
     char Buff[512]; 
     printf("Enter text: ");   // none effect
     gets($Buff);              // infinite loop
     printf("Text is %s",Buff);
   }

Command line:
   gpp.exe -o my_cli_example.exe my_cli_example.cpp
   php.exe my_cli_example.php

Expected result:
----------------
Program ask to text and repeat it into output.

Actual result:
--------------
Infinite loop, none output.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-29 11:46 UTC] jani@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 16 16:08:09 2025 UTC