Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move streams files around a bit, to ease maintenance. | Wez Furlong | 2003-02-16 | 1 | -2790/+0 |
| | | | | | I will update the win32 .dsp in a moment. | ||||
* | A add much more useful select(2) implementation than is provided by | Wez Furlong | 2003-02-16 | 1 | -0/+18 |
| | | | | | | | | | | | | | windows sockets. The winsock implementation will only work with sockets; our implementation works with sockets and file descriptors. By association, stream_select() will now operate correctly with files, pipes and sockets. This change required linking against the winsock2 library. In terms of compatibility, only older versions of windows 95 do not have winsock2 installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user. Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x. | ||||
* | Fixed bug #22234 | Moriyoshi Koizumi | 2003-02-15 | 1 | -0/+11 |
| | |||||
* | MFB: Fix for bug #22199 | Wez Furlong | 2003-02-13 | 1 | -4/+7 |
| | |||||
* | A probable cure for many getcwd/relative include related problems for win32. | Wez Furlong | 2003-02-13 | 1 | -2/+2 |
| | |||||
* | Fixed a typo. | Ilia Alshanetsky | 2003-02-13 | 1 | -1/+1 |
| | |||||
* | Simplified the mode validation code & added support for read+write mode to | Ilia Alshanetsky | 2003-02-13 | 1 | -17/+11 |
| | | | | | 'x' mode. | ||||
* | Clarify error message. | Wez Furlong | 2003-02-13 | 1 | -1/+1 |
| | |||||
* | Added 'x' mode for fopen() used on local files. This mode will create a new | Ilia Alshanetsky | 2003-02-13 | 1 | -0/+3 |
| | | | | | file only if a file does not already exist (O_CREAT|O_EXCL). | ||||
* | Moving away from ANSI stdio for plain files. | Wez Furlong | 2003-02-13 | 1 | -14/+120 |
| | |||||
* | Whitespace-fix these goto labels. | Wez Furlong | 2003-02-13 | 1 | -2/+2 |
| | |||||
* | Fix for Bug #21815 (fpassthru ignored buffered data but then complained anyway) | Wez Furlong | 2003-02-13 | 1 | -1/+2 |
| | |||||
* | Added feature request #9173 (added stream_get_line(), this function will | Ilia Alshanetsky | 2003-02-09 | 1 | -0/+35 |
| | | | | | | read either the specified number of bytes or until the ending string is found). | ||||
* | Added get_browser() function. This function can be used to fetch the headers | Ilia Alshanetsky | 2003-02-07 | 1 | -0/+4 |
| | | | | | sent by the server when a request is made for a given URL. | ||||
* | Fix sticky EOF problem | Sascha Schumann | 2003-01-30 | 1 | -3/+3 |
| | | | | | | | | | | | Sometimes streams signal a temporary EOF, because all current data has been consumed. But that does not preclude the possibility that more data will become available later. Thus we must not treat eof in the read path as final. Now, "tail -f" like scripts work again. | ||||
* | Fix for Bug #20827: where stat is a macro on Tru64. | Wez Furlong | 2003-01-06 | 1 | -1/+1 |
| | | | | | Patch from <julien.soula@free.fr> | ||||
* | Expose stream_filters_hash so that it can be searched by stream_get_filters() | Sara Golemon | 2003-01-06 | 1 | -0/+5 |
| | |||||
* | Workaround for glibc 2.2.9x and later "a+" bug that does not seek to EOF for | Wez Furlong | 2003-01-01 | 1 | -1/+7 |
| | | | | | files fopen()ed with that mode. | ||||
* | Bump year. | Sebastian Bergmann | 2002-12-31 | 1 | -1/+1 |
| | |||||
* | MFB: fpos_t -> off_t | Wez Furlong | 2002-12-23 | 1 | -1/+1 |
| | |||||
* | Fix for Bug #21131: fopen($file, 'a+') would incorrectly assume that | Wez Furlong | 2002-12-22 | 1 | -2/+16 |
| | | | | | | | | | the stream position was at offset 0. This corrects that assumption by querying the stream for it's position when it detects the 'a' "flag" in the mode parameter to fopen. Also added a test for plain files and amended the userstreams test to take this into account. | ||||
* | Correct mistake introduced by my last commit on these files; | Wez Furlong | 2002-12-19 | 1 | -1/+8 |
| | | | | | | | | *_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. | ||||
* | MFB: popen/pclose and proc_open/proc_close fixes. | Wez Furlong | 2002-12-12 | 1 | -2/+15 |
| | |||||
* | MFB | Ilia Alshanetsky | 2002-12-10 | 1 | -5/+1 |
| | |||||
* | Emulate fopencookie on *BSD systems. | Wez Furlong | 2002-12-09 | 1 | -2/+55 |
| | | | | | Patch mostly from Melvyn Sopacua <msopacua@idg.nl> | ||||
* | MFB: #20831 fix | Wez Furlong | 2002-12-09 | 1 | -3/+13 |
| | |||||
* | MFB: Fix memleak in debug mode | Marcus Boerger | 2002-11-23 | 1 | -1/+1 |
| | |||||
* | Fix warning as discussed with Wez. | Marcus Boerger | 2002-11-18 | 1 | -0/+2 |
| | |||||
* | wb -> r+b | Wez Furlong | 2002-11-18 | 1 | -1/+1 |
| | |||||
* | Merge streams changes from branch. | Wez Furlong | 2002-11-18 | 1 | -41/+121 |
| | |||||
* | Fixed a problem that would cause include/require("/dir/file") to fail on | Ilia Alshanetsky | 2002-11-17 | 1 | -0/+26 |
| | | | | | Windows. | ||||
* | - MFB: Fixed bug #20484 (stream_get_meta_data crashes on a normal file | Derick Rethans | 2002-11-14 | 1 | -1/+2 |
| | | | | | stream). (Derick, Wez) | ||||
* | Fixed a bug that in many situations would cause open_basedir restriction to | Ilia Alshanetsky | 2002-11-10 | 1 | -7/+9 |
| | | | | | | be bypassed. Most notable exception, is the inclusion of files via include(), with a partial path. | ||||
* | php_stream replacement for fprintf | Marcus Boerger | 2002-11-06 | 1 | -0/+19 |
| | | | | | #Agreed by Wez - I will use this mysel soon. | ||||
* | Probable fix for #20180. | Wez Furlong | 2002-11-01 | 1 | -1/+1 |
| | |||||
* | Fix win32 build. | Ilia Alshanetsky | 2002-10-28 | 1 | -0/+4 |
| | |||||
* | A better fix for bug #20110. | Ilia Alshanetsky | 2002-10-28 | 1 | -13/+13 |
| | |||||
* | Fixed bug #20110. | Ilia Alshanetsky | 2002-10-28 | 1 | -2/+9 |
| | |||||
* | dont memmove a null pointer. caught by bounds checker. | Shane Caraveo | 2002-10-27 | 1 | -1/+1 |
| | |||||
* | fix Bug #20126 | Shane Caraveo | 2002-10-27 | 1 | -3/+3 |
| | | | | | write returns an int, with < 0 being a failure. | ||||
* | centralize #include "build-defs.h" and drop (sometimes inconsistent) other | Sascha Schumann | 2002-10-24 | 1 | -2/+0 |
| | | | | | instances | ||||
* | When doing automatic line end detection, pick the line end that is found | Ilia Alshanetsky | 2002-10-22 | 1 | -2/+2 |
| | | | | | first. | ||||
* | Refine stream_select() to work with streams that have data in their read | Wez Furlong | 2002-10-21 | 1 | -1/+3 |
| | | | | | | | | | | 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. | ||||
* | MFH | Moriyoshi Koizumi | 2002-10-21 | 1 | -2/+2 |
| | |||||
* | Fixed incorrect handling of files starting with a . | Ilia Alshanetsky | 2002-10-20 | 1 | -1/+12 |
| | |||||
* | made fgets() binary safe. | Wez Furlong | 2002-10-19 | 1 | -1/+4 |
| | | | | | | | | | | | 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. | ||||
* | Probable fix for #19944 | Wez Furlong | 2002-10-19 | 1 | -1/+1 |
| | |||||
* | Fixed bug #19971 (optimized the file() function). | Ilia Alshanetsky | 2002-10-18 | 1 | -4/+9 |
| | | | | | The file() function is now also binary safe. | ||||
* | Improve EOF detection. Fixes #19970. | Wez Furlong | 2002-10-18 | 1 | -3/+2 |
| | |||||
* | Nope, that last one wasn't a leak in main/streams.c, it was | Wez Furlong | 2002-10-15 | 1 | -1/+1 |
| | | | | | file_get_contents misinterpreting the result... |