Have a simple php script:
echo 'Enter input ';
$stdin = fopen('php://stdin', 'r');
$line = fgets($stdin);
echo 'Entered: ' . $line;
The execution is waiting for entering character, but user is not able to enter anything. So the execution of the script
has to be canceled.
The fix is simple and attached.
Created attachment 73901 [details]
The suggested patch
Also I think that this is candidate for the first patch of NB 6.5.
Radek, do you agree with the fix? If yes I can commit it.
Yes, thanks for fixing it.
Fixed in the trunk.
Sustaining, could you import the fix to the patch?
Verified for the last trunk build.
Integrated into 'main-golden', will be available in build *200811220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Petr Pisl <firstname.lastname@example.org>
Log: #153451 - Execution of a script doesn't allow to enter input.
The fix cannot be applied, source code was refactored and thus no such file exists in release65_fixes repository.
The fix "#153451 - Execution of a script doesn't allow to enter input." was pushed on Nov 20th.
The refactoring happened before this fix: "Actions refactored a bit" (3116f110297e) on Oct 16th.
The release65_fixes branch was created on Oct 14th, so the refactoring is not in it.
There were also API changes ("#136929 Make Execution API public (applied improvements in api)" on Nov 6th, and API
changes cannot be part of patch.
Removing this fix from 6.5 patch 1.
Will fix it (change is simple) in the old code...
Adding into 6.5 patch 1 again... :-)
The fix was ported into release65_fixes repository.