summaryrefslogtreecommitdiff
path: root/main/streams/plain_wrapper.c
Commit message (Collapse)AuthorAgeFilesLines
* MFH: make it compile on Win32Antony Dovgal2005-05-241-1/+1
|
* MFH: Fixed bug #32810 (temporary files not using plain file wrapper).Ilia Alshanetsky2005-05-231-0/+1
|
* Bug #32614 - prevent from crahsing with segfault on solaris if fdopen() ↵Uwe Schindler2005-04-071-0/+3
| | | | fails - this fixes NOT the stdio-problem on solaris!
* MFH: Fixed bug #31363 (broken non-blocking flock()).Ilia Alshanetsky2005-04-061-1/+1
|
* fix Win32 & Netware buildAntony Dovgal2004-10-281-0/+2
|
* MFH: fix bug #30388 (rename across filesystems loses ownership and ↵Antony Dovgal2004-10-271-2/+25
| | | | permission info)
* MFH: streams fixesWez Furlong2004-07-311-96/+120
|
* *sigh*, obviously, we need this to be able to use sapi_module.nameWez Furlong2004-05-251-0/+1
|
* DEBUG -> PHP_DEBUGWez Furlong2004-05-251-1/+1
|
* check if it matches... not if it doesn't...Wez Furlong2004-05-251-1/+1
|
* In debug mode, under CLI don't close stderr.Wez Furlong2004-05-251-0/+9
| | | | | | | | This is so that we can see any error reports. # for extra paranoia, could limit this check to happen only after the script is # finished running.
* Fixed bug #27498 (bogus safe_mode error on nonexistent directories forIlia Alshanetsky2004-03-161-1/+1
| | | | | chdir() and opendir() functions).
* Fixed bug #26974 (rename() doesn't check the destination fileIlia Alshanetsky2004-01-211-2/+3
| | | | | against safe_mode/open_basedir).
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* Route mkdir()/rmdir() via wrapper ops.Sara Golemon2003-12-131-1/+77
| | | | | | Move current rmdir()/rmdir() code to plain_wrappers.c Implement mkdir()/rmdir() in ftp:// wrapper
* Route rename() via wrapper ops.Sara Golemon2003-12-121-1/+45
| | | | | | | Move current rename() code to main/streams/plain_wrapper.c Implement ftp/rename() Implement userstreams/rename()
* CSSara Golemon2003-12-021-2/+2
|
* Move safemode/basedir checks for url_stat to plain_wrapper.Sara Golemon2003-12-011-0/+13
|
* Route php_stat() via streams/url_stat API (php_stream_stat_path).Sara Golemon2003-11-281-2/+7
| | | | | This enables fopen-wrappers support on stat() and related family calls.
* finish file uri support, this stuff was unecessary.Shane Caraveo2003-10-191-10/+0
|
* A simpler patch to add file uri supportShane Caraveo2003-10-191-0/+10
|
* revert file: support in preparation for simpler patchShane Caraveo2003-10-191-67/+32
|
* make file uri's work with streamsShane Caraveo2003-10-191-32/+67
|
* Set the EOF indicator after each read attempt.Wez Furlong2003-10-081-4/+2
| | | | | This prevents it getting stuck in the on position.
* Pointer size fixArd Biesheuvel2003-09-131-1/+1
|
* Prevent a crash when expand_filepath() fails.Ilia Alshanetsky2003-08-271-1/+3
|
* MFB: binary mode by default under win32.Wez Furlong2003-07-051-6/+4
|
* Merge selectable descriptor casting from PHP_4_3 branch.Wez Furlong2003-06-281-0/+10
|
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* MFB context refcounting and text-mode fopen fixesWez Furlong2003-05-211-1/+5
|
* Fix warningMarcus Boerger2003-05-191-1/+1
|
* Fix memleaksMarcus Boerger2003-05-191-1/+1
|
* Fold 'options' parameter into wops->unlink methodSara Golemon2003-05-141-7/+11
|
* Setup unlink() method in wrapper_ops structure, implement unlink in ↵Sara Golemon2003-05-141-1/+35
| | | | plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
* Implement persistent plain file streams.Wez Furlong2003-03-181-11/+38
| | | | | | | | | | | | | | | | | 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.
* Avoid using FILE* where possible.Wez Furlong2003-03-181-11/+8
| | | | | Tidy up handling of potential error situations for the php:// wrapper.
* 64bit fixesWez Furlong2003-03-151-2/+2
|
* Ensure that all fields are initialized to NULL.Wez Furlong2003-03-011-0/+3
|
* Implement memory mapping for win32.Wez Furlong2003-02-281-0/+95
| | | | | Could do with some rigorous testing; simple readfile() tests here appear to work.
* Another big commit (tm).Wez Furlong2003-02-271-3/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Main Changes: - Implement a socket transport layer for use by all code that needs to open some kind of "special" socket for network or IPC. - Extensions can register (and override) transports. - Implement ftruncate() on streams via the ioctl-alike option interface. - Implement mmap() on streams via the ioctl-alike option interface. - Implement generic crypto API via the ioctl-alike option interface. (currently only supports OpenSSL, but could support other SSL toolkits, and other crypto transport protocols). Impact: - tcp sockets can be overloaded by the openssl capable sockets at runtime, removing the link-time requirement for ssl:// and https:// sockets and streams. - checking stream types using PHP_STREAM_IS_SOCKET is deprecated, since there are now a range of possible socket-type streams. Working towards: - socket servers using the new transport layer - mmap support under win32 - Cleaner code. # I will be updating the win32 build to add the new files shortly # after this commit.
* Fixed various compiler warnings.Ilia Alshanetsky2003-02-251-7/+10
|
* Use native flock() whenever possible.Ilia Alshanetsky2003-02-251-1/+1
|
* Added locking to streams.Ilia Alshanetsky2003-02-251-0/+28
| | | | | | | Allow PHP to automatically release locks on files when terminating the stream. Fixed bugs in the handling of the 3rd optional parameter to flock().
* MFB: Bunch of streams related fixes.Wez Furlong2003-02-241-7/+7
|
* ws fixes + missing $Id$ tags, headers addedfoobar2003-02-191-2/+1
|
* Move streams files around a bit, to ease maintenance.Wez Furlong2003-02-161-0/+856
I will update the win32 .dsp in a moment.