summaryrefslogtreecommitdiff
path: root/main/streams/streams.c
Commit message (Collapse)AuthorAgeFilesLines
...
* BugFix#28868: Wrapper hash not thread-safe.Sara Golemon2004-06-211-3/+21
| | | | | | | | Userdefined wrappers were being registered into a global wrapper hash which can cross threads. Termination of once instance then has the potential to leave an active stream in another instance with no wrapper leading to segfault.
* Fix #25939 for good this time.Wez Furlong2004-05-271-1/+1
| | | | | # How could I miss this??
* This leaks when a stream opener proxy opens another stream.Sara Golemon2004-04-011-0/+3
|
* BugFix#27619Sara Golemon2004-03-311-0/+3
| | | | | | Filters not applied to pre-buffered stream data. (esp. http:// streams)
* add cast for qsort compare function.Wez Furlong2004-03-071-1/+1
| | | | | | Kinda ugly, but helps assert that we are doing the right thing as well as kill the warning there.
* Less magic pleaseWez Furlong2004-03-071-1/+4
|
* Cast the php_stream_dirent to a 'const char *' for estrndup() to avoid aJon Parise2004-03-011-1/+1
| | | | | compiler warning.
* Fix a bug in the persistent socket liveness checks and feof(); they wereWez Furlong2004-02-041-1/+2
| | | | | | | | | | | | | | | | | | using the default socket timeout of 60 seconds before returning the socket to the calling script. The reason they were using that value is that the same code is used for feof(), so the fix is allowing the caller to indicate the timeout value for liveness checks. A possible remaining issue now is that 0 second timeout[1] for pfsockopen is possibly too short; it's impossible to specify a sane value for all possible uses, so maybe we need a stream context or an .ini option to control this, or maybe use the timeout value that was passed to pfsockopen(). # [1] by timeout, I mean the time that PHP will wait for data on a # persistent socket before deciding if a new connection should be made; # NOT the timeout while waiting for a new connection to be established.
* 'Bug Fix': scandir, being a new function in PHP5 should have always been ↵Sara Golemon2004-01-281-0/+59
| | | | wrapper aware.
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* Fix Win32 Build. mkdir/rmdir are macrosSara Golemon2003-12-131-4/+4
|
* Route mkdir()/rmdir() via wrapper ops.Sara Golemon2003-12-131-0/+30
| | | | | | Move current rmdir()/rmdir() code to plain_wrappers.c Implement mkdir()/rmdir() in ftp:// wrapper
* Be smarter about which systems should register unix transports.Wez Furlong2003-12-051-1/+1
| | | | | Fix skip conditions in these network tests
* Route php_stat() via streams/url_stat API (php_stream_stat_path).Sara Golemon2003-11-281-2/+33
| | | | | This enables fopen-wrappers support on stat() and related family calls.
* (sort of) MFB, feof fix for sockets.Wez Furlong2003-11-281-1/+7
|
* Fixed a memory leak.Ilia Alshanetsky2003-11-281-2/+2
|
* Fix for file:// wrapper parsing.Sara Golemon2003-11-231-1/+1
| | | | | (Cristiano Duarte <cunha17@uol.com.br>)
* - Always store the URI path in the streams structure, and expose it withDerick Rethans2003-11-031-17/+16
| | | | | stream_get_meta_data().
* A simpler patch to add file uri supportShane Caraveo2003-10-191-1/+7
|
* Show the whole message when in debug modeMarcus Boerger2003-09-131-4/+5
|
* Fixed for 64bit archsArd Biesheuvel2003-09-131-1/+1
|
* Fixed bug #25316 (Possible infinite loop inside _php_stream_write()).Ilia Alshanetsky2003-09-111-1/+2
|
* Fixed bug #25429 (fix copying of stdin using copy() function)Ilia Alshanetsky2003-09-101-0/+3
|
* kill warningsSascha Schumann2003-08-281-2/+2
|
* Finalize the closing process of persistent streams. The currentIlia Alshanetsky2003-07-291-2/+2
| | | | | | | | | | | | | | | behavior/API is as follows: 1) To close a persistent use php_stream_pclose(), it will close the stream and remove it from the persistent list. 2) Inside PHP code only explicit fclose() will close persistent streams, all other actions such as unset() or assigning a value to stream handle will not. 3) Regular streams can still be closed by either fclose(), unset() or an assignment of a value to the stream handler.
* Fixed a double free bug when freeing persistent streams.Ilia Alshanetsky2003-07-281-8/+6
|
* Introduce connection pooling API. I'll use these in http/ftp fopen wrappers ↵Sara Golemon2003-07-021-0/+69
| | | | soon.
* MFBSara Golemon2003-06-271-0/+3
| | | | | Plug leak in context notifiers, implement notifier->dtor
* MFB PHP_4_3 main/streams.c r-1.125.2.70Sara Golemon2003-06-271-0/+5
|
* optionvalue is being copied via zval_copy_ctor, there's no need to addref ↵Sara Golemon2003-06-161-1/+0
| | | | the original
* Fix ZTS mode (hopefully all is working fine now again)Marcus Boerger2003-06-141-3/+6
|
* Plug leak (context options not freed)Sara Golemon2003-06-131-0/+1
| | | | | | | | Make contexts auto-registered, ensures userland contexts and C API contexts are both dealt with on request shutdown. Also brings contexts in keeping with streams which are already auto-registered.
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* MFB context refcounting and text-mode fopen fixesWez Furlong2003-05-211-2/+21
|
* MFB fix for persistent streams recycling.Wez Furlong2003-05-191-7/+6
|
* Don't access what is already freed (noticed by Sascha)Marcus Boerger2003-04-161-1/+2
|
* Make it staticMarcus Boerger2003-04-131-1/+1
|
* SpelingMarcus Boerger2003-04-131-2/+2
|
* Fix persistent stream closing (that one took me at least 3 days)Marcus Boerger2003-04-131-0/+9
|
* Prevent php_stream_get_record from grabbing more than maxlen charactersSara Golemon2003-04-041-0/+4
|
* Fixed bug #22538 (stream filter problem)Moriyoshi Koizumi2003-03-311-1/+1
|
* WSIlia Alshanetsky2003-03-311-86/+120
|
* Fix for persistent stream shutdown under debug buildsWez Furlong2003-03-201-5/+13
|
* Sanity check for when a stream is requested to be persistent but the wrapperWez Furlong2003-03-191-0/+9
| | | | | does not respect the flag.
* Q}Wez Furlong2003-03-181-6/+6
|
* Fix for #22721 (poor file() performance on systems without mmap)Wez Furlong2003-03-181-2/+14
|
* Win32 build fix.Ilia Alshanetsky2003-03-171-1/+5
|
* Fixed bug #22538 (failed stat on stdio/stdin/stderr streams).Ilia Alshanetsky2003-03-171-1/+1
|
* Fixing functionicalls with variable number of parameters...Stefan Esser2003-03-061-2/+2
|
* Another big commit (tm).Wez Furlong2003-02-271-129/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.