1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 00:18:23 +02:00
Commit Graph

204 Commits

Author SHA1 Message Date
Nuno Lopes 0e29c9a870 upgrade the rest of the functions to Unicode (except ob_gzhandler, that I leave for Mike).
also update tests to force binary data to be passed
2006-07-27 16:31:07 +00:00
Nuno Lopes ae95b257f8 convert void* to zstr when using the 't' parameter type 2006-07-27 15:53:47 +00:00
Nuno Lopes 67793e71c0 change char* to void* when using the 't' parameter (as noted by Andrei) 2006-07-08 21:54:49 +00:00
Nuno Lopes 6cfeae5782 upgrade a couple of functions to Unicode 2006-07-07 23:30:30 +00:00
Antony Dovgal dfc2fd651c zero-terminate strings produced with FORCE_DEFLATE 2006-06-26 23:22:45 +00:00
Antony Dovgal ffac3d3c1b MFB: don't try to inflate empty strings 2006-06-26 22:53:42 +00:00
Dmitry Stogov 943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Hannes Magnusson 53d262c04d Nuke unused var 2006-06-11 20:33:29 +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 be96a46e96 - fix encoding 2006-06-02 20:09:22 +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
Frank M. Kromann 1c307a8a9e fix build. ZSTR() must be applied to the buf argument of php_stream macros 2006-04-29 14:38:35 +00:00
Ilia Alshanetsky 27e175eef0 So long safe_mode mode.
Also removed the magic_quotes configure option, no longer relevant since
the magic is gone :-).
2006-03-08 14:41:45 +00:00
Pierre Joye bb1ec86f9d - remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Andi Gutmans 1efe984d08 - Get rid of using ENFORCE_SAFE_MODE. 2006-02-19 04:29:42 +00:00
foobar 251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
foobar a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
Michael Wallner 3fa81199ad - fix the fix 2005-10-25 15:35:22 +00:00
Michael Wallner a31744ee55 - fix bug #34821 zlib encoders fail on widely varying binary data on windows 2005-10-25 15:13:55 +00:00
Ilia Alshanetsky 3ed0413de5 Resolved bug #34240.
# Thanks to xuefer at 21cn dot com for providing it.
2005-09-02 17:25:10 +00:00
Ilia Alshanetsky c8dedc16a8 Fixed bug #34191 (ob_gzhandler does not enforce trailing \0). 2005-08-21 16:02:25 +00:00
foobar 23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Sara Golemon 5289adbe99 Add zlib stream filter support 2004-07-17 00:05:31 +00:00
Andi Gutmans dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Hartmut Holzgraefe 075e66cc08 signed/unsigned compiler warning fixes 2003-09-26 08:09:56 +00:00
Stefan Roehrich 6206837929 Code cleanup:
Fixed ob_gzhandler with register_long_arrays = On.
Unified compression_coding global var (removed ob_gzip_coding).
Switched to zend_parse_parameters().
Added some tests.
2003-09-06 15:31:35 +00:00
Sascha Schumann 5b09f342fe improve format string 2003-08-29 07:34:47 +00:00
Stefan Roehrich aa632187cd Fixed bug #25218 ("deflate" compressed pages had a gzip header, which
should only be sent with "gzip" compressed pages).
2003-08-24 13:59:34 +00:00
Stefan Roehrich 8828e17a44 Fixed zlib.output_compression without register_long_vars set. 2003-08-24 13:32:50 +00:00
foobar e9eb29011c Nuke unused variable 2003-08-11 01:56:43 +00:00
Derick Rethans e491d75df3 - Fix memleak (this strndup is totally unnecessary) 2003-08-09 11:20:38 +00:00
Ilia Alshanetsky 308df2af54 Fixed bug #24827 (ob_gzhandler overrides Vary header) 2003-07-27 18:16:06 +00:00
Andrey Hristov 5fcc682ebc proto fixes 2003-07-19 19:23:34 +00:00
James Cox f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Rasmus Lerdorf 18954d8bd2 Remove bogus commit here too 2003-05-21 17:02:40 +00:00
Sander Roobol ff36043d14 ob_gzhandler and zlib.output_compression should send a Content-Length
header if the length of the complete compressed  output is known
# MFH follows in a few minutes, please wait with the release :)
2003-05-21 16:05:03 +00:00
foobar d8a62b8e4d WS & CS fixes 2003-03-17 14:45:07 +00:00
Hartmut Holzgraefe fa692f6744 proto fix 2003-03-17 13:08:59 +00:00
foobar 3c9155e0cb Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +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
Stefan Esser af4aa97d1e Fixing functionicalls with variable number of parameters... 2003-03-06 20:31:20 +00:00
Zeev Suraski 4934744b93 Win32 build improvements 2003-02-17 13:29:59 +00:00
Wez Furlong 0a18a9d744 A add much more useful select(2) implementation than is provided by
windows sockets.  The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.

This change required linking against the winsock2 library.  In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default.  It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.

Also, add a win32 compatible pipe test when opening a stream from a pipe.  This test will only work on NT, win2k and XP platforms.  Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered.  I will be working on a fix for this issue for win9x.
2003-02-16 03:48:49 +00:00
Moriyoshi Koizumi 21f766b7a4 Fixed zlib.output_compression so it can work even if zlib extension is built as shared 2003-02-10 19:04:44 +00:00
Ilia Alshanetsky 72b356c1bc Removed pointless memory allocation checks. 2003-01-18 19:28:10 +00:00
Sebastian Bergmann b506f5c8f8 Bump year. 2002-12-31 16:08:15 +00:00
Wez Furlong abc4b4bb99 Fix for #21304 (gzopen did not report errors on open; "a" mode broken) 2002-12-31 11:42: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
Stefan Roehrich e50dc16b21 Comment about maximal length now matches code. 2002-12-01 18:48:51 +00:00