Commit Graph

135 Commits

Author SHA1 Message Date
Marcus Boerger
d4f5b3f0a9 - This is PHP 6 - if this ... ever gets out 2009-03-10 23:40:06 +00:00
Kalle Sommer Nielsen
6776d26fdc Windows support for stream_socket_pair(), by moving the socketpair() implementation from ext/sockets to win32/ 2009-01-23 15:48:58 +00:00
Arnaud Le Blanc
b8708d43f6 Fixed error conditions handling in stream_filter_append() 2009-01-08 17:01:11 +00:00
Sebastian Bergmann
7f4dc8702a Bump copyright year, 3 of 3. 2008-12-31 11:12:40 +00:00
Arnaud Le Blanc
97c13507db Fix proto line 2008-11-14 06:00:33 +00:00
Arnaud Le Blanc
f24bc6f421 Added stream_context_get_params()
[DOC] proto bool stream_context_get_params(resource context|stream)
      Get parameters of a file context (parameters set by
      stream_context_set_params())
2008-11-13 05:46:51 +00:00
Arnaud Le Blanc
0bb5310a63 Avoids fclose() from complaining that stream_socket_pair() streams
have not been closed
2008-11-04 16:45:42 +00:00
Arnaud Le Blanc
8e6f8fc4dc Fixed bug #46024 (stream_select() doesn't return the correct number) 2008-11-04 00:42:19 +00:00
Felipe Pena
18467f71d1 - Fix the fix (thanks Hannes!) 2008-10-30 14:30:02 +00:00
Felipe Pena
d140cd1f0b - Fixed bug #46426 (3rd parameter offset of stream_get_contents not works for "0") 2008-10-30 10:08:01 +00:00
Felipe Pena
912470c7d8 - Fixed bug #46388 (stream_notification_callback inside of object destroys object variables) 2008-10-26 13:22:00 +00:00
Arnaud Le Blanc
5ef7ecafc1 initialize optional vars 2008-10-21 22:06:49 +00:00
Antony Dovgal
746aa4485e use HashPosition to prevent race condition in multithreaded env 2008-10-02 08:46:04 +00:00
Felipe Pena
1ae8e8b94e - Fixed some wrong format parameters 2008-09-08 01:30:55 +00:00
Hannes Magnusson
16a53bd75d Added stream_context_set_default() function. (Davey Shafik) 2008-08-16 10:57:26 +00:00
Antony Dovgal
55fecd6593 invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE 2008-07-23 11:24:35 +00:00
Felipe Pena
f76da1b96c - Fixed bug #44246 (closedir() accepts a file resource opened by fopen()) 2008-07-22 14:06:17 +00:00
Felipe Pena
6842e84b34 - MFB: New parameter parsing API 2008-07-21 14:29:46 +00:00
Antony Dovgal
3519ed9e31 manage references of stream context properly 2008-07-11 10:24:29 +00:00
Felipe Pena
e4fc964ab3 - Added check for encoding optional parameter (avoiding the segfault in filter.c: strlen(encoding))
If the parameter is not suplied, it will try to use the UG(stream_enconding)
2008-05-28 18:02:52 +00:00
Etienne Kneuss
5f4e5fa60a Fix protos 2008-05-04 21:16:22 +00:00
Hannes Magnusson
1972f83385 MFB5.3: Fixed bug#44712 (stream_context_set_params segfaults on invalid arguments) 2008-04-13 22:40:35 +00:00
Felipe Pena
a1e8d340c3 New macro for check void parameters 2008-02-28 14:16:25 +00:00
Ilia Alshanetsky
fb738d95bf MFB: Fixed bug #44028 (crash inside stream_socket_enable_crypto() when
enabling encryption without crypto type)
2008-02-03 16:14:44 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Johannes Schlüter
6e7ba5ba5f Add stream_supports_lock() function (Benjamin Schulz) 2007-11-20 22:16:20 +00:00
Dmitry Stogov
c49b08fe9a Fixed bug #43216 (stream_is_local() returns false on "file://") 2007-11-08 13:29:38 +00:00
Jani Taskinen
040cb2ca5d ret is still int 2007-10-10 12:51:06 +00:00
Jani Taskinen
b3c3c8a90f - Use correct definition 2007-10-10 12:44:29 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Antony Dovgal
b608bd654d fix ws, cs & folding 2007-07-14 08:38:20 +00:00
Dmitry Stogov
f766275b7a Added ability to create local or remote (URL) user streams
Local user streams must not be able to open(), URLs if allow_url_include is off
Implemented new function stream_is_local()
[
- stream_wrapper_register() extended with additional optional argument "flags"
  of type long. This time only one flag is implemented - STREAM_IS_URL, that
  means that userstream wrapper is remote (URL). By default stream is local.
- stream_is_local() is a new function that accepts stream and tell if this
  stream is local or remote (URL)
]
2007-07-03 10:22:55 +00:00
Antony Dovgal
63d2c1f093 return success only if succeeded casting at least one stream to fd 2007-04-12 13:15:17 +00:00
Dmitry Stogov
8610b4f6cf Fixed 64-bit support 2007-04-09 15:39:16 +00:00
Antony Dovgal
c6054b64b0 fix #40168 2007-01-19 14:49:52 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Antony Dovgal
df52817f48 use safe_emalloc() 2006-12-25 22:12:36 +00:00
Antony Dovgal
824323149f stream_socket_shutdown() is Unicode safe by definition 2006-12-25 19:19:08 +00:00
Dmitry Stogov
938f3d6efa Added function stream_socket_shutdown(). It is a wraper for system shutdown() function, that shut downs part of a full-duplex connection 2006-12-19 08:59:26 +00:00
Sara Golemon
cc51b47859 Bugfix#38649 Optional param not initialized 2006-10-11 23:20:54 +00:00
Sara Golemon
1caed2fa18 Add stream_resolve_include_path() 2006-10-09 02:48:06 +00:00
Hannes Magnusson
176b72284c Error message clean up
(patch by Matt W (php_lists -AT- realpain.com))
2006-10-08 13:34:24 +00:00
Sara Golemon
17cdda770d Forgot to mark these u-safe 2006-10-06 17:41:30 +00:00
Antony Dovgal
a99e3ec1b3 remove TSRMLS_CC, php_stream_path_decode() is a macro 2006-10-03 23:26:14 +00:00
Ilia Alshanetsky
25ac82bbb6 MFB: optimize zend_hash_init() with known hash table sizes. 2006-10-03 17:45:16 +00:00
Hannes Magnusson
2288a69be1 fix proto 2006-09-29 13:22:43 +00:00
Sara Golemon
3191ed0e85 Update stream_copy_to_stream() for PHP6 2006-09-22 19:54:30 +00:00
Sara Golemon
96f9c9c59c Update stream_get_contents() for PHP6 2006-09-22 18:42:33 +00:00
Sara Golemon
1aa537ebd4 Update (most of) the functions in streamsfuncs.c
This commit also includes a change to tests/file/stream_rfc2397_002.phpt
which doesn't entirely pass in unicode mode yet, however that's a unicode
issue in the data:// wrapper that needs fixing, not a problem with the
streams layer itself.
2006-09-21 19:53:10 +00:00
Sara Golemon
3f56da6eba Add INI controlled default stream encoding (unicode.stream_encoding).
Add convenience function stream_defualt_encoding() for setting it.
2006-09-19 20:36:48 +00:00