Felipe Pena
c0c9fb9def
- Revert
2008-10-16 13:00:27 +00:00
Alexey Zakhlestin
e06765b9c5
Fixed compilation warnings: tsrm_ls is not used here (anymore?)
2008-10-16 11:59:37 +00:00
Pierre Joye
61c4fee6b0
- [DOC] MFH: improve fix for #43261 for % and "
2008-08-17 15:23:45 +00:00
Scott MacVicar
8d3bfaa01f
Fix windows build error.
2008-07-22 21:53:53 +00:00
Scott MacVicar
d8d69652dd
MFH: Add test for escapeshellcmd and restore previous behaviour with stripping % on Windows.
2008-07-22 16:21:16 +00:00
Scott MacVicar
4ae8e34bf4
MFH Fixed bug #43261
...
(Use ^ as an escape character for Windows escapeshellcmd)
2008-05-30 16:56:57 +00:00
Felipe Pena
3230a77d89
MFB: Fixed bug #44564 (escapeshellarg removes UTF-8 multi-byte characters)
2008-03-30 12:24:10 +00:00
Antony Dovgal
96c2b045ff
fix ZTS build
2008-03-21 08:28:24 +00:00
Ilia Alshanetsky
74b5cfdea5
Refine fix for multibyte char hanling inside command names and args
2008-03-20 23:25:31 +00:00
Felipe Pena
01dc595706
Fix build
2008-03-18 00:24:21 +00:00
Ilia Alshanetsky
9227974ddb
Properly address incomplete multibyte chars inside escapeshellcmd()
2008-03-17 23:01:27 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Jani Taskinen
1eb067476f
MFH: sync
2007-11-05 14:06:53 +00:00
Jani Taskinen
6723ed1db3
MFH: Nuked ending dots from error messages
2007-09-30 05:49:45 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Marcus Boerger
5a69b29082
- Warning fixes by Steph
2006-02-26 10:57:00 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
d0a54af4c5
MFH: Nuke php3 legacy
2005-12-05 22:54:01 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
917648a232
Fixed possible un-initialized var on error.
2005-02-06 22:58:46 +00:00
Ilia Alshanetsky
11371cd0a8
Missing patch.
2004-07-12 18:49:47 +00:00
Ilia Alshanetsky
3e0cbfb077
Fixed command line escaping routines for win32.
2004-05-18 13:43:24 +00:00
Ilia Alshanetsky
17d420e5f7
Fixed bug #26938 (exec() has problems reading long lines).
2004-01-21 16:57:13 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Derick Rethans
112f424f70
- Fixed bug #26615 (patch by runekl at opoint dot com)
2003-12-13 18:55:53 +00:00
Ilia Alshanetsky
2b7b909e16
Fixed bug #26285 (escapeshellarg() uses wrong quotes on windows).
2003-11-19 15:34:30 +00:00
Hartmut Holzgraefe
075e66cc08
signed/unsigned compiler warning fixes
2003-09-26 08:09:56 +00:00
Sascha Schumann
6a7dde29e7
kill warnings
2003-08-28 16:28:33 +00:00
Ilia Alshanetsky
ed40ae2650
emalloc -> safe_emalloc
2003-08-11 23:16:54 +00:00
Zeev Suraski
522bcba0a8
Fix docline
2003-08-07 15:51:05 +00:00
Ilia Alshanetsky
02e0e08958
Fixed bug #18291 (escapeshellcmd() can now handle quoted arguments).
2003-08-05 20:15:53 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Moriyoshi Koizumi
0c5548e636
Fixed implicit cast issue with is*() and to*() functions
2003-04-16 21:40:48 +00:00
Ilia Alshanetsky
695ae92c97
1) Make the output of system() binary safe
...
2) Solved a memory leak when the return_value variable passed by reference is
not an integer in system()/exec()/passthru().
3) Solved a bug in exec(), which would make it append to the 2nd parameter
(passed by reference) if the parameter is an array instead of overwriting it.
4) Changed the code to use the streams code, resulting in a smaller code base.
5) Various cleanups resulting in reduction of overall code base inside the file
by ~ 1/3.
6) Speed improvements of ~2.5 times compared to previous performance (based on
attached PHP script).
2003-02-26 22:11:12 +00:00
Ilia Alshanetsky
aee0c18bde
Made shell_exec() use streams, this simplifies the code and in some cases
...
makes it a little faster too.
2003-02-25 23:52:34 +00:00
Ilia Alshanetsky
f29964e2ba
Fixed bug #22414 and added a test case for it.
2003-02-25 16:21:00 +00:00
Ilia Alshanetsky
3bff5c0419
Fixed bug #22308 (optimized passthru, code is now ~40 times faster).
2003-02-20 00:32:51 +00:00
Ilia Alshanetsky
0ad5cac954
By popular demand nice() is renamed to proc_nice().
...
A better error message for proc_nice() failure.
2003-02-18 01:23:51 +00:00
Ilia Alshanetsky
0fd1009fcc
Added nice() function, which allows changing of priority for the current
...
process.
2003-02-18 01:07:57 +00:00
Ilia Alshanetsky
71e9f8cdd5
Removed pointless memory allocation checks.
2003-01-18 20:01:46 +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
Anantha Kesari H Y
2e52c112df
Modified for NetWare.
2003-01-03 16:06:02 +00:00
Anantha Kesari H Y
830298beb8
Modified for NetWare.
2003-01-03 14:37:42 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Wez Furlong
602734c7d9
Correct mistake introduced by my last commit on these files;
...
*_from_pipe() is for process-pipes created by fopen, not generic pipes
created from proc_open().
Correctly implemented the fifo/pipe check for *_from_file() and it seems
to be working correctly now.
2002-12-19 20:23:50 +00:00
Wez Furlong
c5d4e4b321
MFB: popen/pclose and proc_open/proc_close fixes.
2002-12-12 17:51:25 +00:00
Marcus Boerger
49a99a98f4
-php_error -> php_error_docref
...
-removed some cases where emalloc result was tested
2002-12-05 20:59:49 +00:00
Ilia Alshanetsky
a8d4bb9d28
Silence compiler warning.
2002-11-04 17:38:30 +00:00
Jan Lehnardt
cf4d435a12
- fix segfault in proc_open
...
#no bugreports found
2002-10-24 08:46:21 +00:00
Wez Furlong
0141e97052
Make these all work with persistent streams too.
2002-09-25 15:46:47 +00:00