Bug #74979 [Com]: Interactive shell opening instead of script execution with -f flag
| From: | piven dot m at gmail dot com | Date: | Mon, 24 Jul 2017 14:38:49 +0000 |
| Subject: | Bug #74979 [Com]: Interactive shell opening instead of script execution with -f flag | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-210281@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74979&edit=1
ID: 74979
Comment by: piven dot m at gmail dot com
Reported by: piven dot m at gmail dot com
Summary: Interactive shell opening instead of script
execution with -f flag
Status: Feedback
Type: Bug
Package: CGI/CLI related
Operating System: Win7 (x64), WinSrv2012 R2 Std
PHP Version: 7.2.0beta1
Block user comment: N
Private report: N
New Comment:
Yes, everything works fine in Windows 7 and Server 2012.
I can test Windows 10 and leave a comment, but later.
The main problem is fixed, thanks a lot!
Previous Comments:
------------------------------------------------------------------------
[2017-07-24 14:19:18] ab@php.net
Please check some latest master snapshot http://windows.php.net/snapshots/
Also, was this reproducible under windows 10? If you have some.
Thanks.
------------------------------------------------------------------------
[2017-07-24 12:11:54] piven dot m at gmail dot com
I have a clean OS Windows Server 2012 R2.
PHP 7.1.7 - have no bug;
PHP 7.2.0 alpha 1 - have no bug;
PHP 7.2.0 alpha 2 - have no bug;
PHP 7.2.0 alpha 3 - have bug;
PHP 7.2.0 beta 1 - have bug.
It does not matter x64 or x86 platform and TS or NTS version of PHP.
------------------------------------------------------------------------
[2017-07-24 10:59:08] ab@php.net
Thanks for going for a separate ticket. As mentioned in bug #74849, i couldn't repro it, it was
Windows 10. I've just tested same on Server 2012 build 9200, but still the result is correct.
Have you met this issue before alpha3? Seems there's some difference on the environment or
whatsoever, that doesn't show the bug on my side :(
Thanks.
------------------------------------------------------------------------
[2017-07-24 10:38:30] piven dot m at gmail dot com
Description:
------------
If I try to execute simple script from windows batch file (see code below), i get php interactive
shell instead of result.
@echo off
php.exe -n -f test.php
pause
If I delete the first line (@echo off) - the script runs successfully.
In this bug https://bugs.php.net/bug.php?id=74849 AB pushed a
patch, that was applied to PHP 7.2.0 alpha 3, but both alpha 3 and beta 1 still has that issue.
Test script:
---------------
<?php
echo "hello world\n";
Expected result:
----------------
hello world
Actual result:
--------------
Interactive shell
php >
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74979&edit=1