php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #75010 Runing PHP script with Task Scheduler gives Interactive console running
Submitted: 2017-07-31 09:55 UTC Modified: 2017-08-13 04:22 UTC
Votes:2
Avg. Score:3.0 ± 2.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ps3bl at mail dot ru Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 7.2.0beta2 OS: Windows 10 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
8 + 36 = ?
Subscribe to this entry?

 
 [2017-07-31 09:55 UTC] ps3bl at mail dot ru
Description:
------------
I had task scheduled in Windows Task Scheduler with settings:
Action: Run program
Program: <full_path>/php.exe
Arguments: <my php script full path>

And it worked ok on 7.1.7, but with 7.2.0b1 my script doesn't want to run, only the Interactive console opens (like if I would run php.exe -a). Everything works ok if I run "php <path_to_script>" manually from cmd.exe. 


Test script:
---------------
Just add new task with running php.exe (parameters aren't necessaey to reproduce the bug) and run the task.

Expected result:
----------------
Running php script

Actual result:
--------------
Running php interactive console

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-31 09:58 UTC] spam2 at rhsoft dot net
this was already reported and is in fact fixed in 7.2 head
https://git.php.net/?p=php-src.git;a=shortlog;h=refs/heads/PHP-7.2

before write bugreports for alpha/beta versions just build current head or at least look at changes after the version was tagged
 [2017-07-31 11:44 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2017-07-31 11:44 UTC] ab@php.net
@ps3bl please check the latest master snapshot http://windows.php.net/snapshots/ . Unfortunately no 7.2 snapshots yet.

Thanks.
 [2017-08-02 20:47 UTC] ps3bl at mail dot ru
-Status: Feedback +Status: Open -PHP Version: 7.2.0beta1 +PHP Version: 7.2.0beta2
 [2017-08-02 20:47 UTC] ps3bl at mail dot ru
Still getting this problem using PHP 7.2.0beta2
 [2017-08-03 11:45 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2017-08-03 11:45 UTC] ab@php.net
Please check the latest master snapshot.

Thanks.
 [2017-08-04 08:33 UTC] ps3bl at mail dot ru
@ab@php.net I don't understand: why the fix wasn't included in 7.2 branch?
 [2017-08-13 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 06:01:29 2024 UTC