Commit Graph

214 Commits

Author SHA1 Message Date
Antony Dovgal
444a9997de reverted because it causes lots of test failures in ext/soap 2008-08-18 07:45:59 +00:00
Arnaud Le Blanc
994ca4edff ws 2008-08-18 04:11:51 +00:00
Arnaud Le Blanc
9881ae9834 Fixed bug #45392 (ob_start()/ob_end_clean() and memory_limit). 2008-08-18 04:07:54 +00:00
Arnaud Le Blanc
1e94a9d25f update buffer size after having effectively realloc()ed it when appending
data to an output buffer
# may caused some problems if erealloc() failed here because of memory
# limit ("memory limit exhausted" error message then written to
# the buffer, etc)
2008-08-18 03:54:49 +00:00
Felipe Pena
2818d4fc51 New way for check void parameters 2008-03-04 23:39:15 +00:00
Marcus Boerger
bffdbbbfa4 - Fix build 2008-02-02 23:25:43 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Yiduo (David) Wang
95da0dc570 Added macros for managing zval refcounts and is_ref statuses 2007-10-07 05:15:07 +00:00
Johannes Schlüter
65aca2f200 - Fix old behaviour, ob_list_handlers() should always return an array 2007-03-03 10:27:04 +00:00
Michael Wallner
db22b925bf - don't do memory limit checks for chunk_size 2007-01-29 13:04:57 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Dmitry Stogov
a7c536fbcd Make MEMORY_LIMIT and ZEND_USE_MALLOC_MM to be always enabled. They don't make a
ny significant slowdown, but incrise maintainability a lot. Note that the setting of memory_limit wasn't changes (neither in main/main.c nor in php.ini) and it
still set to 16M.
2006-12-20 10:50:46 +00:00
Michael Wallner
8ad12c9899 - upgrade phpinfo() and phpcredits() 2006-12-10 15:02:50 +00:00
Michael Wallner
d96f225a15 - fix buffer size alignment
- avoid memory overflow #if MEMORY_LIMIT
2006-11-13 14:05:03 +00:00
Michael Wallner
9de590ecf1 - use new zend_fcall_info API
- use enums where appropriate
2006-10-12 12:50:29 +00:00
Michael Wallner
99fe9133c1 - typo 2006-10-03 22:28:33 +00:00
Michael Wallner
32186c45fb - fix failure with tests/lang/bug23489.phpt
- allocate fci param space at once with php_output_handler_user_func_t
2006-10-03 22:20:28 +00:00
Michael Wallner
ea0f299bad - use fci/fcc instead of zval* for user ob handler 2006-10-03 08:15:44 +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
Michael Wallner
df26ea87bd - output handler alias ctor should know about chunk_size and flags 2006-08-31 13:51:35 +00:00
Michael Wallner
e62c35f141 - add PHP_OUTPUT_WRITTEN and PHP_OUTPUT_SENT status flags 2006-08-30 14:42:01 +00:00
Michael Wallner
0eef1208c2 - output handler may modify context->op
- discard any context->out.data on failure
2006-08-30 12:06:22 +00:00
Michael Wallner
7947beb75a - revise output handler alias API
- add convenience macros for conflicts and aliases
- generalize flags to php_output_stack_pop()
- mark the handler as started *after* run
- handler should still be flushable after marking it immutable
2006-08-30 07:39:09 +00:00
Michael Wallner
53ca648bb5 - fix php_output_handler_started() 2006-08-22 09:56:24 +00:00
Michael Wallner
31632b3458 - use the handler name zval directly when listing stati, too 2006-08-22 08:21:19 +00:00
Michael Wallner
0ff7bc29d9 - fix tests to comply with upgraded string.c
- use add_next_index_zval() when listing handlers
2006-08-22 08:16:37 +00:00
Michael Wallner
139f6ff79d - allocate handler stack on the heap and avoid segfaults on shutdown when startup fails
- don't try to append empty buffer
- fix some dbg format strings
2006-08-22 07:53:58 +00:00
Michael Wallner
de93f1dc91 - error message enhancements
- avoid duplicate error messages
- add PHP_OUTPUT_HANDLER_FLUSHABLE
- add PHP_OUTPUT_HANDLER_HOOK_GET_LEVEL
- add more tests
2006-08-09 13:56:45 +00:00
Michael Wallner
6e54e763ae - mark unicode safe functions 2006-08-09 10:57:46 +00:00
Michael Wallner
f5949edfe9 - use HashPosition for traversal of registered reverse conflicts
- fix protos
2006-08-09 10:21:10 +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
Michael Wallner
cf914cc0a7 - don't use anonymous union 2006-06-12 18:18:39 +00:00
Michael Wallner
773fa96dfc - fix SEGV in php_output_handler_started() 2006-06-06 22:13:23 +00:00
Michael Wallner
0fe565293f - fix regression with bug #22690 (ob_start() with create_function() output handler) 2006-06-06 11:08:45 +00:00
Michael Wallner
af012fd916 - fix output handler seeing buffered data when it gets discarded
- add test
2006-06-04 10:01:58 +00:00
Michael Wallner
231ad17475 - explicit usage of TS macros
# this could have been raised a lot earlier
2006-06-03 11:19:44 +00:00
Michael Wallner
4ce0141713 - new output control code
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
#  - improve existing output handlers
#  - move zlib.output_compression cruft from SAPI.c to zlib.c
#  - output_encoding handling was ambigious, resp. is undefined yet
#  - more tests
2006-06-02 19:51:43 +00:00
Antony Dovgal
d15557fb76 MF51: fix #36869 (memory leak in output buffering when using chunked output) 2006-03-27 08:26:20 +00:00
Dmitry Stogov
c366cc6d1a Nuke int32_t (everywhere except streams layer) and signed/unsigned warnings 2006-03-02 13:12:45 +00:00
Dmitry Stogov
e3b7f3fd0d Unicode support: MS Visual C compatibility 2006-02-26 11:57:14 +00:00
Dmitry Stogov
0f1209ab3d Portable unicode string API:
- use the same type (int) for zval.value.usr.len and zval.value.str.len
  - use union "zstr" as char*/UChar* mixture instead of void*
  - Z_UNISTR() and Z_UNILEN() no longer check for Z_TYPE()
  - nuke int32_t from ZE (not finisned)
2006-02-21 20:12:43 +00:00
Dmitry Stogov
227295a4f1 Unicode stuff is changed according to decision maden on PDM.
Now IS_BINRAY data type is removed and IS_STRING starts behave as IS_BINARY in unicode mode. IS_STRING is incompatible with IS_UNICODE, so ALL functions should be improved to support unicode mode.
2006-01-17 12:18:53 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Ilia Alshanetsky
0408e53679 Remainder of the 34191 bug fix. 2005-08-24 16:19:47 +00:00
Dmitry Stogov
6b622046dc zend_is_callable() and zend_make_callable() were changed to return readable function name as zval (instead of string). 2005-08-22 12:22:16 +00:00
Dmitry Stogov
0f026c9fb7 Unicode support 2005-08-18 10:18:40 +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
Antony Dovgal
b0d5236605 fix #32828 (Throwing exception in output_callback function with ob_start and
ob_end_clean leads to segfault)
2005-04-28 14:20:28 +00:00
Stanislav Malyshev
f799da0a21 MF4: fix double bailout in HEAD when output is attempted from shutdown 2004-10-20 15:31:06 +00:00