Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge branch 'PHP-5.5' into PHP-5.6 | Anatol Belski | 2014-09-29 | 1 | -1/+1 |
|\ | | | | | | | | | * PHP-5.5: increase the polling period to not to break existing behaviours | ||||
| * | increase the polling period to not to break existing behaviours | Anatol Belski | 2014-09-29 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'PHP-5.5' into PHP-5.6 | Anatol Belski | 2014-09-29 | 1 | -0/+28 |
|\ \ | |/ | | | | | | | * PHP-5.5: Fixed bug #51800 proc_open on Windows hangs forever | ||||
| * | Fixed bug #51800 proc_open on Windows hangs forever | Anatol Belski | 2014-09-29 | 1 | -0/+28 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This loop can block for some minutes, theoretically. Practially however, this is a 99% non issue for a normal use case. This is required because read() is synchronous. The PHP streams API wants to fill its internal buffers, therefore it might try to read some more data than user has demanded. Also, for a case where we want to read X bytes, but neither enough data nor EOF arrives, read() will block until it could fill the buffer. If a counterpart station runs slowly or delivers not all the data at once, read() would still be waiting. If we quit too early, we possibly could loose some data from the pipe. Thus it has to emulate the read() behaviour, but obviously not completely, just to some grade. Reading big data amount is for sure an issue on any platforms, it depends on the pipe buffer size, which is controlled by the system. On Windows, the buffer size seems to be way too small, which causes buffer congestion and a dead lock. It is essential to read the pipe descriptors simultaneously and possibly in the same order as the opposite writes them. Thus, this will work with smaller buffer data sizes passed through pipes. As MSDN states, anonymous pipes don't support asynchronous operations. Neither anonymous pipes do support select() as they are not SOCKETs but file descriptors. Consequently - bigger data sizes will need a better solution based on threads. However it is much more expencive. Maybe a better solution could be exporting a part of the internal doing as a userspace function which could perform some kind of lookahead operation on the pipe descriptor. This is just the first stone, depending on the user feedback we might go for further improvements in this area. | ||||
| * | Bump year | Xinchen Hui | 2014-01-03 | 1 | -1/+1 |
| | | |||||
* | | restore API compatibility | Michael Wallner | 2014-07-03 | 1 | -0/+5 |
| | | |||||
* | | finish | Michael Wallner | 2014-07-03 | 1 | -6/+1 |
| | | |||||
* | | refactor _php_stream_fopen_{temporary_,tmp}file() | Michael Wallner | 2014-07-03 | 1 | -20/+14 |
| | | |||||
* | | Fixes to various stream cast on win64 | Anatol Belski | 2014-03-19 | 1 | -6/+6 |
| | | | | | | | | | | | | This fixes further issues on win64 with casts from the streams. Sockets/descriptors handling was unitized. This has an impact only on win64, php_socket_t otherwise can be feed back to int datatype. | ||||
* | | Bump year | Xinchen Hui | 2014-01-03 | 1 | -1/+1 |
| | | |||||
* | | Merge branch 'PHP-5.5' into PHP-5.6 | Michael Wallner | 2013-12-06 | 1 | -5/+7 |
|\ \ | |/ | | | | | | | | | * PHP-5.5: Fixed bug #61645 (fopen and O_NONBLOCK) fix possibly uninitialized value | ||||
| * | Merge branch 'PHP-5.4' into PHP-5.5 | Michael Wallner | 2013-12-06 | 1 | -5/+7 |
| |\ | | | | | | | | | | | | | | | | * PHP-5.4: Fixed bug #61645 (fopen and O_NONBLOCK) fix possibly uninitialized value | ||||
| | * | Fixed bug #61645 (fopen and O_NONBLOCK) | Michael Wallner | 2013-12-06 | 1 | -5/+7 |
| | | | | | | | | | | | | | | | | | | if a mode like "rn" was passed to fopen(), then php_stream_parse_fopen_modes() would assign O_WRONLY to flags, because O_NONBLOCK tainted flags for the r/w/+ check | ||||
| | * | Happy New Year | Xinchen Hui | 2013-01-01 | 1 | -1/+1 |
| | | | |||||
| | * | - Year++ | Felipe Pena | 2012-01-01 | 1 | -1/+1 |
| | | | |||||
| | * | Fixed ZE specific compile warnings (Bug #55629) | Dmitry Stogov | 2011-09-13 | 1 | -1/+1 |
| | | | |||||
| | * | retore open_basedir check for unlink | Stanislav Malyshev | 2011-07-31 | 1 | -35/+39 |
| | | | |||||
| | * | - Fixed bug 55124, recursive mkdir fails with current (dot) directory in path | Pierre Joye | 2011-07-26 | 1 | -14/+7 |
| | | | |||||
| | * | implement streams metadata API per RFC | Stanislav Malyshev | 2011-05-25 | 1 | -1/+93 |
| | | | |||||
* | | | applied and fixed the original patch | Anatol Belski | 2013-10-17 | 1 | -1/+1 |
| | | | | | | | | | | | | initial work on the patch import done | ||||
* | | | Constify streams API and a few other calls down the rabbit hole. | Andrey Hristov | 2013-07-30 | 1 | -10/+11 |
|/ / | | | | | | | | | (`char *` to `const char *` for parameters and few return values) In a few places int len moved to size_t len. | ||||
* | | Happy New Year | Xinchen Hui | 2013-01-01 | 1 | -1/+1 |
| | | |||||
* | | * fixed bug #60704 unlink() bug with some files path | Mateusz Kocielski | 2012-02-14 | 1 | -7/+20 |
| | | | | | | | | | | Reviewed by: rasmus@ | ||||
* | | - Year++ | Felipe Pena | 2012-01-01 | 1 | -1/+1 |
| | | |||||
* | | Fixed ZE specific compile warnings (Bug #55629) | Dmitry Stogov | 2011-09-13 | 1 | -1/+1 |
| | | |||||
* | | retore open_basedir check for unlink | Stanislav Malyshev | 2011-07-31 | 1 | -0/+4 |
| | | |||||
* | | - Fixed bug 55124, recursive mkdir fails with current (dot) directory in path | Pierre Joye | 2011-07-26 | 1 | -14/+7 |
| | | |||||
* | | implement streams metadata API per RFC | Stanislav Malyshev | 2011-05-25 | 1 | -1/+93 |
|/ | |||||
* | - PHP_STREAM_OPTION_WRITE_BUFFER no longer disables the read buffer of a plain | Gustavo André dos Santos Lopes | 2011-02-19 | 1 | -3/+0 |
| | | | | | | | | | | stream when 0 is given as the value. - PHP_STREAM_OPTION_WRITE_BUFFER no longer changes the chunk size in socket streams. - Added stream_set_chunk_size() function. - Some signedness fixes. - Test for commit r308474, now that it's possible to actually test it. | ||||
* | Fix bug #53913 (Streams functions assume HAVE_GLOB is defined). Patch by Chris | Adam Harvey | 2011-02-04 | 1 | -0/+2 |
| | | | | | Jones. | ||||
* | - don't continue if no valid option value | Pierre Joye | 2011-01-20 | 1 | -0/+2 |
| | |||||
* | - Year++ | Felipe Pena | 2011-01-01 | 1 | -1/+1 |
| | |||||
* | - Renamed php_stream_rep_nonstand_mode to | Gustavo André dos Santos Lopes | 2010-11-05 | 1 | -1/+1 |
| | | | | | | php_stream_mode_sanitize_fdopen_fopencookie, made it not exported and movied it from php_streams.h to php_streams_int.h. | ||||
* | - Fixed bug #53241 (stream casting that relies on fdopen/fopencookie fails | Gustavo André dos Santos Lopes | 2010-11-05 | 1 | -1/+3 |
| | | | | with streams opened with, inter alia, the 'xb' mode). | ||||
* | - WS | Pierre Joye | 2010-09-01 | 1 | -2/+2 |
| | |||||
* | - add lstat support for Windows | Pierre Joye | 2010-09-01 | 1 | -1/+9 |
| | |||||
* | Removed safe_mode | Kalle Sommer Nielsen | 2010-04-26 | 1 | -72/+0 |
| | | | | | | | * Removed ini options, safe_mode* * Removed --enable-safe-mode --with-exec-dir configure options on Unix * Updated extensions, SAPI's and core * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore | ||||
* | - get the right error on windows | Pierre Joye | 2010-02-21 | 1 | -0/+4 |
| | |||||
* | - prevent unexpectable behaviors (for the user) with invalid path | Pierre Joye | 2010-02-07 | 1 | -21/+19 |
| | |||||
* | - removed debug breakpoint and improve inline comment | Pierre Joye | 2010-01-27 | 1 | -2/+2 |
| | |||||
* | - prevent bad things to happen when invalid path are passed to MoveFileEx | Pierre Joye | 2010-01-27 | 1 | -1/+27 |
| | |||||
* | - [DOC] #45986, bad file descriptor warning when rename is used with invalid ↵ | Pierre Joye | 2010-01-26 | 1 | -3/+10 |
| | | | | path, add php_win32_docref2_from_error to display system error for non posix api | ||||
* | sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php | Sebastian Bergmann | 2010-01-03 | 1 | -1/+1 |
| | |||||
* | remove automatic file unlocking on shutdown and/or stream close | Antony Dovgal | 2009-12-25 | 1 | -3/+0 |
| | | | | | | (make it win32-specific for 5_2, as discussed with Ilia) | ||||
* | Fix #50063 (safe_mode_include_dir fails) | Johannes Schlüter | 2009-11-12 | 1 | -0/+4 |
| | |||||
* | MFH: Added support for passing O_NONBLOCK to the underlying open() system call | Mikko Koppanen | 2009-04-11 | 1 | -1/+5 |
| | |||||
* | Adjust condition | Ilia Alshanetsky | 2009-02-10 | 1 | -2/+2 |
| | |||||
* | MFB: typo fix | Ilia Alshanetsky | 2009-02-10 | 1 | -1/+1 |
| | |||||
* | MFB: Added path truncation E_NOTICE to let people now when path resolving | Ilia Alshanetsky | 2009-02-10 | 1 | -2/+6 |
| | | | | | caused the file path to be truncated. | ||||
* | MFH: Bump copyright year, 3 of 3. | Sebastian Bergmann | 2008-12-31 | 1 | -1/+1 |
| |