Sara Golemon
53333166fc
Add convenience function for openeing files with unicode names
2007-01-10 22:43:17 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Dmitry Stogov
1ed6591f8a
Fixed heap overflow
2006-12-25 13:11:48 +00:00
Antony Dovgal
b07ab323ad
apply correct fix (aka "oops!")
2006-12-21 01:18:14 +00:00
Antony Dovgal
7a6b75e8ac
don't leak on error
2006-12-21 01:07:52 +00:00
Antony Dovgal
50791bce76
fix potential leak
2006-12-21 00:46:51 +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
Antony Dovgal
9ed4f515d1
fix #39673 (file_get_contents causes bus error on certain offsets)
2006-11-29 11:10:49 +00:00
Antony Dovgal
8373efc9b9
fix #39551 (Segfault with stream_bucket_new in user filter)
...
also fixes several segfaults and leaks
add test
2006-11-21 15:47:44 +00:00
Hannes Magnusson
9da991dd50
MFB: Fix ftruncate() with negative size
2006-11-16 16:08:09 +00:00
Dmitry Stogov
6850e95c3e
Removed unnecessary ftell() calls (one call for each included PHP file)
2006-11-10 13:18:46 +00:00
Dmitry Stogov
c39eecf9ae
Disabled reading from stream (calls to read()) after EOF
2006-11-10 13:10:28 +00:00
Dmitry Stogov
b71309f4a2
Removed unnecessary checks for ISREG file and corresponding stat() calls on Wind
...
ows
2006-11-10 10:55:43 +00:00
Antony Dovgal
e2070c4360
eliminate a couple of compile warnings
2006-11-09 01:06:45 +00:00
Rasmus Lerdorf
d566d5553f
Mark memory streams as is_url
2006-11-04 20:44:02 +00:00
Dmitry Stogov
d73bf1d322
Fixed mkdir("/tmp/foo//bar/log", 0777, true)
2006-10-19 09:49:56 +00:00
Sara Golemon
d9423de12e
Bugfix 38648: Don't assume all buckets are part of a brigade
2006-10-11 23:07:30 +00:00
Antony Dovgal
729ed6eafc
fix crash when parsing invalid hostnames/IPs
2006-10-11 12:53:38 +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
Antony Dovgal
d38bf75b69
int -> size_t
2006-10-03 23:22:21 +00:00
Ilia Alshanetsky
15e5832c26
MFB: Last set of zend_hash_init() optimizations
2006-10-03 19:52:34 +00:00
Sara Golemon
fa71abf4a2
Unused label, now how the heck did it get there?
2006-10-02 18:13:56 +00:00
Dmitry Stogov
eb1e643690
Fixed wrong pipe detection code
2006-09-28 07:26:19 +00:00
Sara Golemon
f8fdb67056
PHP6 Updates for popen() and related functionality
2006-09-24 20:33:14 +00:00
Sara Golemon
3191ed0e85
Update stream_copy_to_stream() for PHP6
2006-09-22 19:54:30 +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
Dmitry Stogov
128548a5c0
Disabled autoconversion of hash keys (from string to unicode) for PHP arrays
2006-09-19 10:38:31 +00:00
Antony Dovgal
e264e460a4
fix double free(), add test
2006-09-15 07:26:19 +00:00
Dmitry Stogov
a9f035d5c1
*** empty log message ***
2006-09-14 09:59:23 +00:00
Ilia Alshanetsky
504078c64e
MFB: Fixed bug #37779 (empty include_path leads to search for files
...
inside /).
2006-09-12 15:49:02 +00:00
Antony Dovgal
d13d452523
fix coverity issue #197
...
"I can't think of a reason to pass a NULL buf" (c) Wez
2006-09-10 13:01:28 +00:00
Ilia Alshanetsky
22206ebf22
MFB: Fixed bug #38661 (mixed-case URL breaks url-wrappers).
2006-09-03 16:33:02 +00:00
Antony Dovgal
144cca7be3
fix #38199 (fclose() unable to close STDOUT and STDERR)
2006-08-28 17:14:13 +00:00
Dmitry Stogov
d824f02ce1
Fixed bug #38488 (Access to "php://stdin" and family crashes PHP on win32)
2006-08-22 06:15:45 +00:00
Antony Dovgal
a4a561dc72
fix #38450 (constructor is not called for classes used in userspace stream wrappers)
2006-08-14 15:00:04 +00:00
Antony Dovgal
dbe2092313
implement zend_unicode_to_string() and zend_string_to_unicode()
...
part #2 (of 2)
2006-08-08 16:59:11 +00:00
Sara Golemon
2ef3bb9cb8
Logic fix: (!a == b) != (a != b)
2006-07-14 22:24:07 +00:00
Sara Golemon
eb634dfa84
#38105 (2/3) Filters should report char/UChar count, not bytes
2006-07-14 19:15:31 +00:00
Sara Golemon
aea4195ac6
#38105 (1/3) Backward logic, filter_product == IS_STRING means the wrapper HAS applied pre-filtering
2006-07-14 19:14:40 +00:00
Antony Dovgal
12f44c2b2b
fix #38086 (stream_copy_to_stream() returns 0 when maxlen is bigger than the actual length)
2006-07-13 11:58:42 +00:00
Hannes Magnusson
b9c078acf4
url->URL
2006-06-29 14:42:30 +00:00
Andrei Zmievski
e875205714
Implement user conversion error handler support. Works as normal error
...
handler, in that it can return false to make the default one take over.
Handler signature is:
user_handler($direction, $encoding, $char_byte, $offset, $message)
Also removed support for using exceptions in default error handler.
2006-06-21 20:17:21 +00:00
Andrei Zmievski
9573e77249
Typos.
2006-06-21 17:10:13 +00:00
Hannes Magnusson
64ce1969c9
Plug memleak (leaks on empty files)
2006-06-20 18:09:33 +00:00
Antony Dovgal
7a9ad25d8c
don't leak when decoding failed
2006-06-06 14:08:47 +00:00
Antony Dovgal
99e0a6f3d6
no need to check if non-existing include_path complies with open_basedir setting
...
the only result we can get is segfault
2006-06-05 22:39:10 +00:00
Edin Kadribasic
19787d38e9
MFB
2006-06-05 22:23:39 +00:00
Marcus Boerger
25d5adec0d
- Fix feof() with temp/memory streams
2006-05-23 22:26:23 +00:00
Marcus Boerger
a4d6c5a6f0
- Handle corrupt base64 data in data: url
2006-05-21 13:35:06 +00:00
Antony Dovgal
1417222aee
initialize factory
2006-05-19 10:23:43 +00:00