|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-08-29 11:46 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 21:00:01 2025 UTC |
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.