Bug #81663 [Opn->Nab]: PHP calls shell_exec. The process it starts ends but php does not continue from
| From: | cmb@php.net | Date: | Mon, 29 Nov 2021 12:18:24 +0000 |
| Subject: | Bug #81663 [Opn->Nab]: PHP calls shell_exec. The process it starts ends but php does not continue from | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-238041@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=81663&edit=1
ID: 81663
Updated by: cmb@php.net
Reported by: arian_a at hotmail dot se
Summary: PHP calls shell_exec. The process it starts ends but
php does not continue from
-Status: Open
+Status: Not a bug
Type: Bug
-Package: Systems problem
+Package: Program Execution
Operating System: win 10
PHP Version: 8.0.13
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
I don't see a bug in PHP here. The problem is your code, since
you first modify the file(s), and then execute pathmonitor.exe
which waits possibly indefinitely for modifications.
Additionally, you should not pass the name of a file to
pathmonitor.exe, but rather its directory:
shell_exec("pathmonitor.exe " . dirname($_GET['path']));
Previous Comments:
------------------------------------------------------------------------
[2021-11-26 23:34:46] arian_a at hotmail dot se
Description:
------------
This problem is difficult to explain with text only. So therefore I have combined text and images to
be able to explain it better.
The explanations can be found in the links below. (The links show you how to reproduce the bugg.)
The links should be read in the same order as they appear.
1.
https://i.ibb.co/dj10yqP/1eng.png
2.
https://i.ibb.co/1zwLwQ6/2eng.png
3.
https://i.ibb.co/pxY5GN9/3eng.png
4.
https://i.ibb.co/ggpZXKk/4-eng.png
Here is all the files used in the project. Nothing is excluded
https://github.com/somedudeokey/monitor/archive/refs/heads/main.zip
Pathmonitor.exe was created with pathmonitor.cpp.
If you do not trust the .exe file, you can create the same .exe by using the .cpp file
(pathmonitor.cpp)
Take care
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81663&edit=1