#
86fb577d |
| 18-Mar-2003 |
Wez Furlong |
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_E
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.
show more ...
|
Revision tags: php-4.3.2RC1 |
|
#
cfd8150b |
| 27-Feb-2003 |
Wez Furlong |
Add a generic meta data api for streams. |
#
fd61f690 |
| 27-Feb-2003 |
Wez Furlong |
Another big commit (tm). 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. - Extension
Another big commit (tm). 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.
show more ...
|
#
60dcebd7 |
| 27-Feb-2003 |
Sascha Schumann |
rename macro argument so that it does not partially match the string. fixes a warning on unixware |
#
862634ff |
| 25-Feb-2003 |
Ilia Alshanetsky |
Added locking to streams. Allow PHP to automatically release locks on files when terminating the stream. Fixed bugs in the handling of the 3rd optional parameter to flock(). |
#
088e2692 |
| 24-Feb-2003 |
Wez Furlong |
MFB: Bunch of streams related fixes. |
#
32165a55 |
| 18-Feb-2003 |
Wez Furlong |
Implement new filter API, stage 1. This breaks user-space filters (for the time being), and those weird convert.* filters in ext/standard/filters.c The filters stack has been separat
Implement new filter API, stage 1. This breaks user-space filters (for the time being), and those weird convert.* filters in ext/standard/filters.c The filters stack has been separated into one chain for read and one chain for write. The user-space stream_filter_append() type functions currently only operate on the read chain. They need extending to work with the write chain too.
show more ...
|
#
6e296c5c |
| 17-Feb-2003 |
Wez Furlong |
Move some of the streams header into supplementary files # Just when you thought you had learned your way around the streams code; # I like to keep you all on your toes! |
Revision tags: php-4.3.1 |
|
#
35878992 |
| 13-Feb-2003 |
Wez Furlong |
Moving away from ANSI stdio for plain files. |
#
f98ea4c4 |
| 09-Feb-2003 |
Ilia Alshanetsky |
Added feature request #9173 (added stream_get_line(), this function will read either the specified number of bytes or until the ending string is found). |
#
a592f3cc |
| 07-Feb-2003 |
Ilia Alshanetsky |
Added missing definitions. |
Revision tags: PHP_5_0_dev_before_13561_fix, PHP_4_3_before_13561_fix |
|
#
52a3c29e |
| 06-Jan-2003 |
Wez Furlong |
Fix for bug #21406; infinite loop during filter flushing. |
#
42e912da |
| 06-Jan-2003 |
Sara Golemon |
Expose stream_filters_hash so that it can be searched by stream_get_filters() |
#
da9eb594 |
| 02-Jan-2003 |
Derick Rethans |
- Fix warnings on UnixWare |
#
2c5d4b8c |
| 31-Dec-2002 |
Sebastian Bergmann |
Bump year. |
Revision tags: php-4.3.0, php-4.3.0RC4, RELEASE_1_0b3, php-4.3.0RC3, php-4.3.0RC2, RELEASE_1_0b2 |
|
#
ca58966a |
| 18-Nov-2002 |
Wez Furlong |
Merge streams changes from branch. |
Revision tags: BEFORE_RENAMING, php-4.3.0RC1 |
|
#
a73e74c2 |
| 06-Nov-2002 |
Marcus Boerger |
Make the macro use the function and not the other macro as discussed with Wez. |
#
1f0b2001 |
| 06-Nov-2002 |
Marcus Boerger |
php_stream replacement for fprintf #Agreed by Wez - I will use this mysel soon. |
#
8f6120fe |
| 05-Nov-2002 |
Marcus Boerger |
correct define: silences compiler warning in http_fopen_wrapper.c |
#
728eacbf |
| 28-Oct-2002 |
Ilia Alshanetsky |
A better fix for bug #20110. |
Revision tags: php-4.3.0pre2 |
|
#
dabf1053 |
| 21-Oct-2002 |
Wez Furlong |
Refine stream_select() to work with streams that have data in their read buffers. When selecting for read, the streams are examined; if any of them have pending read data, no actual selec
Refine stream_select() to work with streams that have data in their read buffers. When selecting for read, the streams are examined; if any of them have pending read data, no actual select(2) call is performed; instead the streams with buffered data are returned; just like a regular select call. Prevent erroneous warning in stream_select when obtaining the fd.
show more ...
|
#
829f1855 |
| 19-Oct-2002 |
Wez Furlong |
made fgets() binary safe. php_stream_gets is now a macro which calls php_stream_get_line. The latter has an option argument to return the number of bytes in the line. Functions like fgetc
made fgets() binary safe. php_stream_gets is now a macro which calls php_stream_get_line. The latter has an option argument to return the number of bytes in the line. Functions like fgetcsv(), fgetss() can be made binary safe by calling php_stream_get_line directly. # HEADS UP: You will need to make clean after updating your CVS, as the # binary signature has changed.
show more ...
|
#
4b83b189 |
| 18-Oct-2002 |
Ilia Alshanetsky |
Fixed bug #19971 (optimized the file() function). The file() function is now also binary safe. |
Revision tags: RELEASE_1_0b1, php-4.3.0pre1 |
|
#
077fe52d |
| 05-Oct-2002 |
Wez Furlong |
This seems to resolve the issues with fgets. I've moved EOF detection into the streams layer; a stream reader implementation should set stream->eof when it detects EOF. Fixed test for use
This seems to resolve the issues with fgets. I've moved EOF detection into the streams layer; a stream reader implementation should set stream->eof when it detects EOF. Fixed test for user streams - it still fails but that is due to an output buffering bug.
show more ...
|
#
9c5883bd |
| 04-Oct-2002 |
Wez Furlong |
replace dont_block with a flag. |