Stanislav Malyshev
f799da0a21
MF4: fix double bailout in HEAD when output is attempted from shutdown
2004-10-20 15:31:06 +00:00
Marcus Boerger
97b5bb474e
Guard display_startup_errors with checking for default (working) output
...
functions.
2004-03-14 23:56:07 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
5e9a18a5c0
Fixed bug #24951 (ob_flush() needlessly destroys output handler).
2003-08-08 23:43:45 +00:00
Ilia Alshanetsky
ecbcd7f59f
Fixed bug #22154 (Possible crash when memory_limit is reached and
...
output buffering in addition to session.use_trans_sid is used).
2003-07-31 19:46:03 +00:00
Marcus Boerger
bdfed34ef6
Bugfix #22690
2003-07-16 08:36:04 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Wez Furlong
84fc3f384a
Fix segfault
2003-05-17 09:34:37 +00:00
Wez Furlong
e9b62698c7
Stronger validation of ob_start() parameters.
2003-05-16 19:08:13 +00:00
Sebastian Bergmann
4c8e30eccc
MFB: Fix for bug #23489 .
2003-05-06 04:22:01 +00:00
Sascha Schumann
7f5a42da17
Backout Jani's commit to resync branches
2003-04-04 08:40:48 +00:00
foobar
ff22d581d9
WS & CS fix
2003-04-03 18:44:00 +00:00
Sascha Schumann
7e2fcf986e
Add some checks and avoid passing invalid data to call_user_function_ex.
...
Fixes some heap corruption and allocation of negative amounts of memory.
2003-04-03 18:19:15 +00:00
Moriyoshi Koizumi
f7a8499806
Fixed memleak in output buffering facility
2003-04-03 00:50:17 +00:00
Sascha Schumann
e2333fd1df
Fix an uninitialized read, default to FAILURE
2003-04-01 19:14:47 +00:00
Sebastian Bergmann
5ca078779a
Eliminate some TSRMLS_FETCH() calls. Tested with Win32 build of SAPI/CGI and SAPI/CLI on Win32.
2003-03-25 08:07:13 +00:00
David Hill
5c90216d2c
64-bit correction to variables passed to zend_parse_parameters
...
@64-bit correction to variables passed to zend_parse_parameters (Dave)
2003-03-06 23:07:28 +00:00
foobar
a09e1397c7
Fixed compile failures when ZLIB / PCRE are compiled as shared
...
extensions in same build.
2003-02-09 19:09:52 +00:00
Hartmut Holzgraefe
2546f09b08
proto-fix
2003-02-03 23:36:19 +00:00
Ilia Alshanetsky
9bb3dc6903
Removed pointless checks.
2003-01-27 17:22:22 +00:00
Sebastian Bergmann
2c5d4b8c23
Bump year.
2002-12-31 15:59:15 +00:00
Ilia Alshanetsky
87a8b04051
Fix ZTS build.
2002-12-31 00:04:52 +00:00
Ilia Alshanetsky
0acb52fc3b
Fixed bug #21228 (broken check for ob_gzhandler).
...
Fixed a bug that made ob_start return incorrect return value.
2002-12-30 19:39:31 +00:00
Zeev Suraski
1143a7023c
Whitespace
2002-10-07 11:21:06 +00:00
Zeev Suraski
df55f35798
Revert the implicit_flush mess.
...
Do not revert it again under any circumstances!
Yasuo/anybody else - if there are issues with implicit_flush, please inform
me and I will fix them.
2002-10-06 12:02:53 +00:00
Zeev Suraski
de36720e0e
Begin the cleanup - remove ob_flush_all()
2002-10-06 09:06:24 +00:00
Marcus Boerger
518e61de97
suggest paranthesis around || and &&
2002-10-04 17:11:35 +00:00
Yasuo Ohgaki
39b0eb9b22
Fixed broken code by Derick.
...
ob_implicit_flush() and ob_flush_all() are stopped working.
var_dump() and hightlisht_string() outputs buffer contents wrongly
with ob_implicit_flush().
Everyone should be happy now.
It was only OG(implicit_flush) interpretation issue after all.
2002-10-03 13:32:01 +00:00
James Moore
df431074de
Keep comments and code in sync.
2002-10-03 11:56:10 +00:00
Sebastian Bergmann
b169932d1c
Fix warnings.
2002-10-03 11:08:09 +00:00
Derick Rethans
9b517c4b93
- Revert changed to implicit_flush behavior. The new behavior was not
...
intended in the first place.
2002-10-03 10:35:33 +00:00
Yasuo Ohgaki
6c7202e116
Added comment for php_output_set_status().
...
Please use this function if you would like to prevent unwanted flush
by implicit_flush=On or ob_implicit_flush().
2002-10-03 08:54:13 +00:00
Yasuo Ohgaki
66a50c5373
Added ob_flush_all() that flushes bufferred contents until it actually
...
sent/printed.
@ Added ob_flush_all() that flushes all buffers. (Yasuo)
2002-10-03 07:17:14 +00:00
Yasuo Ohgaki
f534dc8f47
Added missing proto and foldings.
2002-10-03 04:17:41 +00:00
Yasuo Ohgaki
22bf29384e
Move wrong output buffer usage check to ob_gzhandler init.
...
Export some output buffer functions.
2002-10-03 03:58:12 +00:00
Yasuo Ohgaki
bec4574f57
Made some functions inline.
...
Added static for unexported functions.
2002-10-03 02:55:19 +00:00
Yasuo Ohgaki
bd177ce7c1
Added ob_get_clean() and ob_get_flush().
...
Someone requested this feature before.
@ Added ob_get_clean() and og_get_flush(). (Yasuo)
2002-10-03 01:36:44 +00:00
Marcus Boerger
1e6557f664
Fix implicit_flush
2002-10-02 15:36:29 +00:00
Marcus Boerger
ff51ed7c6f
Modified get_status(): Display chunk_size allways and size which is in
...
most cases initial_size as well as block_size only when used.
2002-10-02 15:10:11 +00:00
Marcus Boerger
d4bba6d158
Revisted Wez patch: chunk_size 0 means cahce the whole output. So
...
we must apply the default before calling php_enable_output_compression().
I have left the default setting in the rinit function even though i do think
it is not necessary.
2002-10-02 15:02:16 +00:00
Yasuo Ohgaki
e92abff88b
Fixed bug #17825 . Double zval_ptr_dtor().
2002-10-01 10:01:56 +00:00
Yasuo Ohgaki
3d8e33f06a
Fixed implicit flush.
2002-10-01 02:43:33 +00:00
Yasuo Ohgaki
ecf146cbce
Users can shoot themselves by their own output handler always.
...
Therefore, this check is overkill and it should be documented
limitation, IMO.
Anyway, a little optimization.
2002-09-30 23:46:43 +00:00
Wez Furlong
4356932dfe
Fix infinite recursion bug when using zlib output compression.
...
Cause: the chunk size is taken from the zlib.output_compression setting,
which is 0 or 1. This causes the block_size for output buffer to be set
to 0 (1 / 2) and thus causes infinite recursion in php_ob_allocate().
Solution: use a value of 0 for the chunk size which will use the default
sizes. Also add a sanity check which will default the block_size to 1
if it ends up as 0.
2002-09-30 10:18:06 +00:00
Zeev Suraski
85f4abfdac
Fix bug #19525
2002-09-23 14:18:42 +00:00
Sebastian Bergmann
714c19fe66
Per discussion on #php.bugs (+1 from at least Derick and Jani), revert double_buffering.
2002-09-01 11:33:19 +00:00
Marcus Boerger
8638bb882f
Removed __output_handler as everybody seems against such implicit
...
behaviour. Instead supply error message.
2002-08-25 14:20:37 +00:00
Marcus Boerger
6d97e0c3eb
Use zend_is_callable() instead of php_check_object_method_array() and
...
drop the latter. THX to Markus Fischer - i did not recognize this function.
@Expanded ob_start() to allow object parameters without methodnames and
@use default method __output_handler(). (Marcus)
2002-08-25 12:16:48 +00:00
Marcus Boerger
08ab630dc7
Reenable array(object,method) in ob_start()
2002-08-25 11:50:25 +00:00
Zeev Suraski
a6e8e72372
Fix ob_gzhandler()'s handling of requests w/o compression but that do have
...
the Accept-Encoding header
2002-08-23 08:37:35 +00:00