Michael Wallner
333638b0d3
remove useless indirection
...
the stream was initialized within the ops
in a prior version of the slim_post_data patch
2014-05-06 12:22:08 +02:00
Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Michael Wallner
5d430ad902
fix bad cast
2013-10-08 11:16:53 +02:00
Michael Wallner
e6084da473
final bits
2013-09-17 13:59:49 +02:00
Michael Wallner
423c70fb4d
Merge branch 'slim-postdata-merge'
...
* slim-postdata-merge:
remove unused code
tests
make reading php://input JIT if enable_post_data_reading=0
revert stream cast
fix ZTS build
slim post data
Conflicts:
ext/soap/soap.c
ext/standard/php_fopen_wrapper.c
main/SAPI.c
2013-09-17 13:52:25 +02:00
Michael Wallner
0f78d8612a
we need to use the full stream wrapper for filters
2013-09-17 13:44:50 +02:00
Michael Wallner
71bee63fad
remove unused code
2013-09-10 13:16:24 +02:00
Michael Wallner
449d4c0b1c
make reading php://input JIT if enable_post_data_reading=0
2013-09-10 13:13:33 +02:00
Michael Wallner
bb1f9d3826
slim post data
2013-08-27 13:43:22 +02:00
Michael Wallner
2438490add
slim post data
2013-08-27 13:31:35 +02:00
Andrey Hristov
92d27ccb05
Constify streams API and a few other calls down the rabbit hole.
...
(`char *` to `const char *` for parameters and few return values)
In a few places int len moved to size_t len.
2013-07-30 12:49:36 +02:00
Xinchen Hui
a666285bc2
Happy New Year
2013-01-01 16:37:09 +08:00
Stanislav Malyshev
df2a38e7f8
fd fix
2012-05-15 22:35:43 -07:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Ilia Alshanetsky
78b60fcc97
Fixed compiler warning
2011-01-17 13:44:54 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Gustavo André dos Santos Lopes
4fe751e8e4
- Tests and small parsing correction for php://fd wrapper
2010-12-11 02:08:02 +00:00
Gustavo André dos Santos Lopes
f73258223d
- Implemented request #26158/bug #53465 (open arbitrary file descriptor with fopen)
2010-12-11 01:52:13 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Jani Taskinen
767abb9b66
- Fixed bug #49286 (php://input (php_stream_input_read) is broken)
2009-08-20 12:40:15 +00:00
Jani Taskinen
5e733571b3
- WS + CS + sync
2009-08-20 12:17:32 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Arnaud Le Blanc
5b4a154a59
MFH: Fixed bug #42473 (ob_start php://output and headers)
2008-11-26 01:20:31 +00:00
Arnaud Le Blanc
f6345133b3
MFH: Fixed bug #44818 (php://memory writeable when opened read only)
2008-11-11 00:44:55 +00:00
Arnaud Le Blanc
9b0d76d585
Open STDIN and php://stdin streams with the relevant
...
wrapper when the file descriptor is a socket (inetd, etc)
Fixes bug #43731
2008-11-04 21:05:31 +00:00
Arnaud Le Blanc
5eb7ed7316
Allow urlencode()d filer names in php://filter
2008-08-02 06:35:41 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Jani Taskinen
6723ed1db3
MFH: Nuked ending dots from error messages
2007-09-30 05:49:45 +00:00
Dmitry Stogov
70105187db
Proper fix for bug #39215 Inappropriate close of stdin/stdout/stderr
2007-06-21 12:42:36 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Antony Dovgal
a726dcaa99
MFH: fix #39850 (SplFileObject throws contradictory/wrong error messages when trying to open "php://wrong")
2006-12-18 14:56:20 +00:00
Rasmus Lerdorf
cea64d52fa
data: and php:stdin/input allow_url_include checks
2006-11-05 20:08:58 +00:00
Ilia Alshanetsky
bd2ab7bc15
Fixed bug #39215 (Inappropriate close of stdin/stdout/stderr).
2006-11-03 13:34:19 +00:00
Ilia Alshanetsky
278dc574f2
E_ERROR > E_RECOVERABLE_ERROR
2006-07-05 17:38:14 +00:00
Ilia Alshanetsky
ccad354535
Make filters without a resource throw E_RECOVERABLE_ERROR rather then
...
E_ERROR
2006-05-16 14:11:52 +00:00
Marcus Boerger
6f1a0f67ff
- Make SplTempFileObject work in 5.1
2006-05-01 16:02:07 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Sara Golemon
1340c04976
MFH (r-1.51) #32371 php://input sometimes returns duplicate data
2005-11-17 19:40:38 +00:00
foobar
9477097564
MFH: Nuked EOLs from error messages
2005-08-18 13:34:41 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Wez Furlong
daa90c915c
Fix #27865 ; don't dup STDIN, STDOUT or STDERR when running under CLI.
2004-04-19 17:41:39 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Sara Golemon
c56647833b
Route mkdir()/rmdir() via wrapper ops.
...
Move current rmdir()/rmdir() code to plain_wrappers.c
Implement mkdir()/rmdir() in ftp:// wrapper
2003-12-13 04:07:18 +00:00
Sara Golemon
b1f8236b63
Route rename() via wrapper ops.
...
Move current rename() code to main/streams/plain_wrapper.c
Implement ftp/rename()
Implement userstreams/rename()
2003-12-12 23:06:42 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Sara Golemon
5126fbe556
Setup unlink() method in wrapper_ops structure, implement unlink in plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
2003-05-14 06:10:04 +00:00
Moriyoshi Koizumi
49b43ad115
Changed stream filter factory to be capable of accepting a zval as a parameter
...
instead of a string
2003-04-16 14:30:25 +00:00
Wez Furlong
86fb577d59
Implement persistent plain file streams.
...
Usage:
php_stream *stream = php_stream_fopen("/path/to/file", "r+b", NULL,
STREAM_OPEN_PERSISTENT | ENFORCE_SAFE_MODE | REPORT_ERRORS);
the filename and mode are combined to form the hash key for the persistent
list; they must be identical for this same stream to be returned again in the
next request.
Calling php_stream_close() on a persistent stream *will* close it, as is
usual with all persistent resources in PHP/ZE.
This is deliberately *not* exposed to user-space PHP at this time.
2003-03-18 23:37:54 +00:00
Wez Furlong
ce01fd9526
Avoid using FILE* where possible.
...
Tidy up handling of potential error situations for the php:// wrapper.
2003-03-18 16:40:29 +00:00
Ilia Alshanetsky
14bf872003
Fixed compiler warnings.
2003-02-28 17:26:28 +00:00