Commit Graph

60 Commits

Author SHA1 Message Date
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +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
Nuno Lopes
e09ffb06f1 MFB: fix gcc warning 2006-09-04 19:16:21 +00:00
Ilia Alshanetsky
c270a8e627 MFB: fixed compiler warning 2006-06-01 22:42:53 +00:00
Antony Dovgal
3e5407b16d nuke unused variable 2006-06-01 13:45:16 +00:00
Sara Golemon
04ecb8b1fd Fix 'soft line break' handling in convert.quoted-printable-decode 2006-04-17 19:25:48 +00:00
Antony Dovgal
ba1ac82bc9 don't leak memory even though the code is not stable yet 2006-03-20 20:09:20 +00:00
Sara Golemon
48798021b5 Refactor streams layer for PHP6.
Don't be frightened by the size of this commit.
A significant portion of it is restoring the read buffer semantics back
to what PHP4/5 use.  (Or a close aproximation thereof).

See main/streams/streams.c and ext/standard/file.c for a set of
UTODO comments covering work yet to be done.
2006-03-13 04:40:11 +00:00
Dmitry Stogov
c366cc6d1a Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings 2006-03-02 13:12:45 +00:00
Antony Dovgal
c83190514f couple of pedantic fixes: "static" should be first 2006-01-18 23:55:27 +00:00
Marcus Boerger
679fa69575 - Add stream filter 'consumed' which can restore the stream position when
a stream was read or written through a size changing filter.
2006-01-12 19:23:24 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Antony Dovgal
5feaae6a4c use proper constants 2005-10-20 16:54:19 +00:00
Ilia Alshanetsky
6e37a621f8 Fixed bug #34321 (Possible crash in filter code). 2005-09-25 13:26:19 +00:00
Wez Furlong
8b7d070358 what they totally screw up on one hand, MS compilers almost compensate with on
the other.
2005-08-12 23:59:59 +00:00
Andrei Zmievski
264cec8be6 Unicode support. 2005-08-11 23:36:07 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Moriyoshi Koizumi
e87fe59e96 - Cleanups. 2004-07-20 19:41:37 +00:00
Moriyoshi Koizumi
e25a206e87 oops... 2004-07-20 19:35:38 +00:00
Moriyoshi Koizumi
c210c68add - Add more null checks. 2004-07-20 18:16:36 +00:00
Moriyoshi Koizumi
3e026f08ae - pemalloc() might return NULL. 2004-07-20 18:03:19 +00:00
Sara Golemon
d40e78ad6f convert.* filters not consuming buckets_in on PSFS_FLUSH_* 2004-07-16 23:40:21 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Moriyoshi Koizumi
b6c0003ffd Fix a convert filters bug that occurs when multiple buckets are coming in. 2003-12-08 00:22:22 +00:00
Sascha Schumann
436a07176c fix format strings 2003-08-28 16:49:57 +00:00
Sascha Schumann
6a7dde29e7 kill warnings 2003-08-28 16:28:33 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Moriyoshi Koizumi
2a31fa0569 Fixed memleak 2003-04-16 15:10:01 +00:00
Moriyoshi Koizumi
6dd17c380d Added missing sanity check 2003-04-16 14:55:25 +00:00
Moriyoshi Koizumi
49b43ad115 Changed stream filter factory to be capable of accepting a zval as a parameter
instead of a string
2003-04-16 14:30:25 +00:00
Moriyoshi Koizumi
9bdc86973b Fixed a small leak in the convert filter code 2003-03-05 17:51:33 +00:00
Moriyoshi Koizumi
da0d5a11ed Fixed my silly mistake in the filter code 2003-03-02 08:39:01 +00:00
Moriyoshi Koizumi
14db9ea88d Fixed string.strip_tags filter so it reflects the change on php_strip_tags 2003-02-24 22:41:55 +00:00
Moriyoshi Koizumi
69113a3099 Added string.strip_tags filter. 2003-02-19 00:12:23 +00:00
Moriyoshi Koizumi
6389a79ea5 Fixed memory leaks on conversion failure. 2003-02-18 23:30:36 +00:00
Moriyoshi Koizumi
8793a78fee Revived convert filter codes 2003-02-18 23:22:49 +00:00
Wez Furlong
32165a5546 Implement new filter API, stage 1.
This breaks user-space filters (for the time being), and those
weird convert.* filters in ext/standard/filters.c

The filters stack has been separated into one chain for read and one chain
for write.

The user-space stream_filter_append() type functions currently only operate
on the read chain. They need extending to work with the write chain too.
2003-02-18 01:22:21 +00:00
Ilia Alshanetsky
3d8e54f3a2 Changed php_error to php_error_docref. 2003-01-19 00:45:53 +00:00
Moriyoshi Koizumi
f71ef5e091 Fixed a quoted printable decoder so that it would conform to RFC2045. 2003-01-17 20:00:31 +00:00
Moriyoshi Koizumi
f94cbfe52b Significant speed enhancements. I was underestimating the power of recent
CPUs :)
2003-01-17 09:04:02 +00:00
Moriyoshi Koizumi
93481ce9b8 Finally fixed a qp encoder bug that line break characters that appear exactly
at the end of the chunk lost in the output.
# I bet no more problems will occur in quoted-printable encoder.
# But I recognised the counterpart is still buggy due to RFC2045-incompliance.
2003-01-16 20:59:07 +00:00
Moriyoshi Koizumi
fdf0768d4e Fixed a qp encoder bug that the constructor sometimes fails if
line-breaking mode is off.
2003-01-15 15:05:17 +00:00
Moriyoshi Koizumi
e5c5412777 Added a new option "force-encode-first" to the quoted-printable encoder
as per Wez's request. If enabled, the encoder forcefully does qp
tranformation on every first character of lines in incoming stream.
2003-01-14 16:42:18 +00:00
Moriyoshi Koizumi
a0be48c109 Fixed small memory leak that occurs when the invalid line length is passed
to the qprint ctor.
2003-01-14 01:27:57 +00:00
Moriyoshi Koizumi
121e625977 Fixed quoted-printable encoder so that it produces RFC2045 complicant
output. As per this specification requirement, the constructor now accepts
three options: binary (boolean), line-len (uint), line-break-chars (string).
2003-01-14 01:23:35 +00:00
Moriyoshi Koizumi
78f527e2b7 Fixed a silly segfault bug caused by lack of strict type checking 2003-01-13 11:00:22 +00:00
Moriyoshi Koizumi
ab71e2cbaa . Implemented a common filter parameter parsing function.
# For example "base64-encode.line-break-chars=--,base64-decode.blah=foobar"
# will be parsed and splitted into a zval array as
# array(2) {
#   ["base64-encode"]=>
#   array(1) {
#     ["line-break-chars"]=>
#     string(2) "--"
#   }
#   ["base64-decode"]=>
#   array(1) {
#     ["blah"] =>
#     string(6) "foobar"
#   }
# }
. Added automatic line-breaking feature for base64 encode filter. This
  can be turned on by putting a option entry "base64-encode.line-length"
  to the filter parameters.
2003-01-13 10:21:40 +00:00
Moriyoshi Koizumi
1fec8e3d13 Fixed a bug of the base64 decoder that a sequence of intervening
characters that are supposed to be ignored by the decoder cause output
corruption.
2003-01-12 21:05:22 +00:00
Moriyoshi Koizumi
a88173bf86 Fixed infinite loop bug when an invalid quoted-printable escape sequence
appears in the streem.
2003-01-12 13:46:11 +00:00
Moriyoshi Koizumi
b1e8631986 Fixed error msg format so it correctly reports the actual filter name 2003-01-12 13:41:35 +00:00