Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Nuno Lopes
731b68fbc5
fix gcc warning
2006-09-04 19:14:59 +00:00
Ilia Alshanetsky
5b5e7a4de9
Fixed compiler warning
2006-06-01 22:42:22 +00:00
Antony Dovgal
0675e5eabb
MFH: nuke unused variable
2006-06-01 13:45:26 +00:00
Sara Golemon
3ef88178e8
MFH(r-1.55) Fix 'soft line break' handling in convert.quoted-printable-decode
2006-04-17 19:26:04 +00:00
Antony Dovgal
82d5901664
MFH: couple of pedantic fixes: "static" should be first
2006-01-18 23:55:47 +00:00
Marcus Boerger
f113090832
- Add stream filter 'consumed'
2006-01-12 19:23:58 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Antony Dovgal
e7925c9767
MFH: use proper constants
2005-10-20 16:54:48 +00:00
Ilia Alshanetsky
d696f11814
MFH: Fixed bug #34321 (Possible crash in filter code).
2005-09-25 13:26:30 +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
Moriyoshi Koizumi
aa41ab285a
. Updated quoted-printable filter by a neater implementation.
...
. Changed emalloc family functions to pemalloc ones for persistent filters.
. Changed base64 and quoted-printable filter names to "convert.base64-encode",
"convert.base64-decode", "convert.quoted-printable-encode", and
"convert.quoted-printable-decode" respectively for the consistency that
may be requested later.
2003-01-12 12:48:13 +00:00
Moriyoshi Koizumi
59393ef3ad
Reimplemented base64 filter to use iconv()-like facility for flexibility.
...
# I'm leaving the code dirty & ugly prior to the discussion.
2003-01-08 23:44:38 +00:00
Moriyoshi Koizumi
b064810550
Instances should not be freed in dtor()...
2003-01-07 22:53:42 +00:00
Moriyoshi Koizumi
b86a4edeed
Made error msg format more consistent
2003-01-07 22:52:24 +00:00
Moriyoshi Koizumi
eed5a6bed0
Implemented quoted-printable stream filter
2003-01-07 01:41:18 +00:00
Moriyoshi Koizumi
00a36a09e1
Implemented string.base64 stream filter
...
@- Implemented string.base64 stream filter. (Moriyoshi)
2003-01-07 00:03:25 +00:00