Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Xinchen Hui
47c9027772
Bump year
2014-01-03 11:06:16 +08:00
Kalle Sommer Nielsen
d14670ccdb
Eliminate another TSRMLS_FETCH() in i_zend_is_true()
...
# Affected extensions have all been updated, ext/opcache and ext/zip
# both have macros for cross version compatibility
2013-12-18 07:25:05 +01:00
Andrey Hristov
92d27ccb05
Constify streams API and a few other calls down the rabbit hole.
...
(`char *` to `const char *` for parameters and few return values)
In a few places int len moved to size_t len.
2013-07-30 12:49:36 +02:00
Xinchen Hui
a666285bc2
Happy New Year
2013-01-01 16:37:09 +08:00
Rasmus Lerdorf
180b9e150b
Fix for bug #63811
2012-12-19 22:58:18 -05:00
Stanislav Malyshev
4db70fd406
fix bug #40459 - make all stream funcs that create object call ctor
2012-08-07 22:59:12 -07:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Dmitry Stogov
0e563dfa93
Initialize structure (some fields may be missed in array returned from user handler).
2011-12-22 15:33:48 +00:00
Stanislav Malyshev
5c9080d3a6
implement streams metadata API per RFC
2011-05-25 21:03:55 +00:00
Gustavo André dos Santos Lopes
3759331276
- Changed return value in userspace stream set_option to "not implemented",
...
instead of failure.
#Currently, there's no way to test this, because the only operations that have
#a default implementation, set_chunk_size and set_read_buffer are either not
#exposed or, in the 2nd case, completely delegated to the user implementation,
#which can only return true/false, not "not implemented" (and not implementing
#the set_option method in the userspace stream results in error).
2011-02-18 17:53:26 +00:00
Gustavo André dos Santos Lopes
9bbc114b59
- Classes that implement stream wrappers can define a method called
...
stream_truncate that will respond to truncation, e.g. through ftruncate.
Closes feature request #53888 .
2011-02-17 00:25:32 +00:00
Gustavo André dos Santos Lopes
1f49902999
- Fixed bug #53903 (userspace stream stat callback does not separate the
...
elements of the returned array before converting them).
2011-02-01 22:55:17 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Kalle Sommer Nielsen
dd8e59da8f
Removed safe_mode
...
* 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
2010-04-26 23:53:30 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Hannes Magnusson
ebf7a8e9a3
Fix comments
2009-05-08 11:35:12 +00:00
Hannes Magnusson
2881a60e31
Add missing proto
2009-03-25 19:55:59 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Dmitry Stogov
7d4fd3fd38
Fixed bug #46409 (__invoke method called outside of object context when using array_map)
2008-11-27 19:01:23 +00:00
Arnaud Le Blanc
dffdb48c3b
MFH: Fixed bug #46673 (stream_lock call with wrong paramater)
2008-11-26 04:19:20 +00:00
Arnaud Le Blanc
c6e1b8bc67
MFH: Added stream_cast() and stream_set_options() to user-space stream
...
wrappers, allowing stream_select(), stream_set_blocking(),
stream_set_timeout() and stream_set_write_buffer() to work with user-space
stream wrappers.
Will document.
2008-11-15 12:52:13 +00:00
Dmitry Stogov
691d4a6999
Fixed uninitialised data
2008-07-25 08:23:07 +00:00
Antony Dovgal
cf7e15c3a0
MFH: manage references of stream context properly
2008-07-11 10:25:15 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Stanislav Malyshev
5b021ac2fa
fix proto
2007-08-16 23:54:24 +00:00
Dmitry Stogov
539f67ed8f
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-09 17:27:24 +00:00
Scott MacVicar
55a3d5f8b1
MFH: Fixed bug #41390 (Clarify error message with invalid protocol scheme)
2007-05-15 13:04:43 +00:00
Antony Dovgal
c8a4b13638
MFH: improve php_userstreamop_seek()
2007-02-13 19:50:59 +00:00
Antony Dovgal
7ad1c3c5f2
MFH: add trailing '\0' to stream hashes
2007-01-15 17:07:08 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Antony Dovgal
f42e9f5e15
MFH: fix #38450 (constructor is not called for classes used in userspace stream wrappers)
2006-08-14 15:01:29 +00:00
Wez Furlong
8663f1644d
fix for #37158
2006-04-22 17:17:40 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Zeev Suraski
59dc41f761
Fix prototype
2005-12-18 15:38:08 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Wez Furlong
4cabeaf1c7
fix inverted logic and thus Bug #27508
2005-05-11 02:02:27 +00:00
Christian Stocker
bd99d77bf6
- Fixed bug #27183 (Userland stream wrapper segfaults on stream_write)
...
Was applied to PHP 4 ages ago, but not to PHP 5 branch
2004-10-08 14:40:11 +00:00
Anantha Kesari H Y
b855337d39
CLIB_STAT_PATCH check is redundant. So removing it
2004-09-23 13:07:43 +00:00
Sara Golemon
955b43ba12
Add stream_wrapper_unregister()
...
Disables a wrapper (user-defined or built-in) for the life of the request.
Add stream_wrapper_restore()
Restores the wrapper originally defined at the time the request started
to the protocol name mentioned.
2004-09-10 20:45:35 +00:00
Sara Golemon
7fcfa8865e
BugFix#28868: Wrapper hash not thread-safe.
...
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.
2004-06-21 18:58:55 +00:00
Sara Golemon
0dae58bb2a
Bugfix #28300 Userspace stream/filter names don't need to be lowercased.
2004-05-06 14:29:33 +00:00
Sara Golemon
0180c36951
BugFix#28287 stream_*_register() not calling __autoload().
2004-05-05 18:18:57 +00:00
Sara Golemon
581948ab00
Provide a meaningful error message when registration fails
2004-03-17 00:08:22 +00:00
Ard Biesheuvel
b303ba089c
More wordsize fixes
2004-03-08 23:11:45 +00:00
Wez Furlong
1e35cf4f32
Connect feof() call to user-space stream feof() method.
...
Fixes Bug #27417 and #27508
2004-03-07 22:05:21 +00:00
Ilia Alshanetsky
4cc62a06f6
Removed unused variable.
2004-01-27 03:20:35 +00:00
Hartmut Holzgraefe
234e8a76c4
stream_lock() method added to userspace streams wrapper
2004-01-21 10:17:12 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00