1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Commit Graph

45 Commits

Author SHA1 Message Date
Dmitry Stogov 5709b64739 Close open files in case of failure (Amit) 2007-01-09 16:27:17 +00:00
Dmitry Stogov f694c1f1db Improved proc_open(). Now on Windows it can run external commands not through CMD.EXE 2007-01-06 09:02:02 +00:00
Nuno Lopes 8a806d186e +- Fixed bug #37619 (proc_open() closes stdin on fork() failure). 2007-01-02 15:29:09 +00:00
Sebastian Bergmann 4223aa4d5e MFH: Bump year. 2007-01-01 09:36:18 +00:00
Nuno Lopes 169b207532 - Fixed bug #36427 (proc_open() / proc_close() leak handles on windows). 2006-12-31 15:27:13 +00:00
Nuno Lopes 877ee65622 Fixed bug #38542 (proc_get_status() returns wrong PID on windows) 2006-12-31 14:47:17 +00:00
Ilia Alshanetsky b154f188d1 Simplify code and eliminate strcat() usage 2006-12-28 15:09:29 +00:00
Antony Dovgal 112f263591 MFH: suppress_errors is used only on Win32, no need to look for it on other systems 2006-06-01 14:03:49 +00:00
foobar 5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
foobar 23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Anantha Kesari H Y 98a2eeacc7 As fork implementation of NetWare LibC still in experimental stages making the procve based solution ahead of HAVE_FORK. Later When fork becomes stable will revert this fix.
--Kamesh from hyanantha's account
2005-07-01 06:49:29 +00:00
foobar 6f3b02cba4 typo 2005-06-20 11:10:11 +00:00
Ilia Alshanetsky 5355bdc788 Fixed bug #32533 (proc_get_status() returns the incorrect process status). 2005-04-07 23:07:45 +00:00
Ilia Alshanetsky 0c9610fc9d Fixed bug #32210 (proc_get_status() sets "running" always to true). 2005-03-07 16:17:12 +00:00
Anantha Kesari H Y 459313c26d In NetWare LibC WTERMSIG is avaliable as WIFTERMSIG 2005-02-21 09:50:48 +00:00
Wez Furlong be4778b87e Fix leaking handle.
Thanks to ilya77 at gmail dot com
2004-11-10 19:47:15 +00:00
Anantha Kesari H Y ec42c1432c implemented proc_open for NETWARE 2004-09-29 06:04:36 +00:00
Ard Biesheuvel 5232a5afea 64-bit bugsquash party 2004-06-16 23:57:25 +00:00
Wez Furlong bd818c0118 Turn this off then 2004-05-29 09:27:18 +00:00
Wez Furlong 7171429f21 Don't rely on TIOCNOTTY. 2004-05-29 00:30:11 +00:00
Wez Furlong 54bbe548fe Hopefully resolve proc_open build issues.
If we need anything more elaborate than this, then we can move to a configure
time check as Sascha suggests.
2004-05-28 13:25:51 +00:00
Wez Furlong 429bce6519 Apparently it is better to specify 500 here for unix98 bits and pieces. 2004-05-26 14:55:32 +00:00
Stanislav Malyshev 255d87b1b8 Add __EXTENSIONS__ define - otherwise it won't compile on Solaris 2004-05-09 11:08:04 +00:00
Wez Furlong 4d5ce8cd08 Fix Bug #28251 2004-05-02 11:13:08 +00:00
Wez Furlong 398b4a2fbb Add pty support to proc_open() for systems with Unix98 ptys.
# With permission from Andi
2004-04-19 15:07:30 +00:00
Andi Gutmans dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
foobar c28a7bd7da fix proto 2003-12-06 10:48:56 +00:00
Wez Furlong c29b17b81e fix unix build.... 2003-12-05 13:48:40 +00:00
Wez Furlong c92a2219ef Add optional array argument to proc_open() to specify additional
options for the child process.
The first option is "suppress_errors" which will disable any
dialog boxes that arise from missing DLL's and suppress the
GPF dialog.
Use this new feature in the test suite, so that crashing tests don't block the test run; useful for un-attended execution.
2003-12-05 13:45:00 +00:00
Sascha Schumann 436a07176c fix format strings 2003-08-28 16:49:57 +00:00
Moriyoshi Koizumi 4c8230696c Add folding markers 2003-07-12 07:01:30 +00:00
Moriyoshi Koizumi 77ae01ac72 Oops, this is not needed though. 2003-07-12 06:54:03 +00:00
Moriyoshi Koizumi cd52986a5c Fixed leaks that occurs if the third parameter already contains a valid value. 2003-07-12 06:50:32 +00:00
James Cox f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Shane Caraveo 456b6cbeab The environment should *never* be magic quoted. 2003-03-23 19:30:31 +00:00
Shane Caraveo 216d1d00a5 you know it's time to get away from the keyboard when you do this.
fix my last fix
2003-02-17 06:45:37 +00:00
Derick Rethans 738d4f401f - Style polizei 2003-02-17 06:35:13 +00:00
Shane Caraveo eb6b7e80be fix it the right way 2003-02-17 05:47:56 +00:00
Shane Caraveo 354a7d804b If you pass NULL, you do not get a NULL value, make sure it is. 2003-02-17 03:26:16 +00:00
Wez Furlong 7e92f636ef Integrate Shanes patch that allows specifying the cwd and environment
for the child process created by proc_open().
2003-02-16 15:38:54 +00:00
Wez Furlong 27e3d6477f Add optional signal parameter to proc_terminate. 2003-02-15 17:33:11 +00:00
Wez Furlong c3c24054e8 Add proc_terminate() function to forcibly kill off a process created
with proc_open().
2003-02-15 17:18:57 +00:00
Ilia Alshanetsky 6efe008598 Fixed compile warning. 2003-01-24 16:45:34 +00:00
Wez Furlong a3a2dcd8a9 Relieve scripts of the burden of ensuring that all pipes are closed prior
to calling proc_close().
Implement proc_get_status(resource $process) which returns an array of
information about a process created with proc_open().
The information includes:
array(
	"command" => string "name of the command",
	"pid" => long process identifier,
	"running" => bool true if the process is still running
	"exitcode" => long exitcode if the process exited
	"signaled" => bool true if the process was signaled
	"termsig" => long signal number if signaled
	"stopped" => bool true if the process is stopped
	"stopsig" => long signal number if stopped
);
2003-01-15 18:54:03 +00:00
Wez Furlong 1a314027d3 - Move proc_open code to a source file of it's own.
- Tidy up that netware mess by performing a configure check which will
  define the symbol PHP_CAN_SUPPORT_PROC_OPEN if PHP can support proc_open.
- Protected the proc_open specific code with #ifdef PHP_CAN_SUPPORT_PROC_OPEN
  so that user-space scripts can use function_exists and react accordingly.

** Heads Up Win32: You need to add ext/standard/proc_open.c to the DSP and
** #define PHP_CAN_SUPPORT_PROC_OPEN in the w32 config header.
2003-01-15 16:29:00 +00:00