Commit Graph

145 Commits

Author SHA1 Message Date
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
Antony Dovgal
e593d7d611 add comment (the code is not that obvious indeed) 2007-07-18 11:46:28 +00:00
Antony Dovgal
71d7ee6d33 port the max_input_nesting_level ini option to Unicode mode 2007-06-05 11:24:13 +00:00
Antony Dovgal
ecd414c3b8 no register_globals in HEAD 2007-06-04 07:56:39 +00:00
foobar
feab02f3ed - Improved the error message for exceeding max_input_nesting_level. 2007-06-03 16:53:37 +00:00
Ilia Alshanetsky
7d74c2c3e6 MFB: Improved fix for MOPB-02-2007 2007-06-03 16:19:55 +00:00
Antony Dovgal
39454ffdfa fix compile warning 2007-03-28 09:13:55 +00:00
Stanislav Malyshev
3a0d0d1f2d limit nesting level of input variables 2007-03-02 22:04:46 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Andrei Zmievski
3de95b79c3 Keep CLI args as binary strings. 2006-12-12 18:05:07 +00:00
Ilia Alshanetsky
9901e4a31d MFB:
Fixed handling of multiple cookies with the same name.
	Added support for cookies into run-tests.php
2006-12-09 14:17:17 +00:00
Ilia Alshanetsky
16e11ad947 MFB: Strip leading spaces from cookie names, that can come from multi-cookie
headers where ; can be followed by any number of spaces.
2006-12-09 13:14:06 +00:00
Johannes Schlüter
823681aaa0 - Fix merging of $_REQUEST in unicode mode and remove $GLOBALS check from
register_globals times
2006-10-21 10:01:39 +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
Antony Dovgal
2c946984da unused variable 2006-08-08 17:05:14 +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
Ilia Alshanetsky
d2579f9dd1 MFB: Fixed bug #38236 (Binary data gets corrupted on multipart/formdata
POST).
2006-07-27 17:14:24 +00:00
Dmitry Stogov
736b8d903b Fixed bug #37276 (problems witch $_POST array) 2006-05-03 11:24:51 +00:00
Dmitry Stogov
83657db8ff Fixed memory leaks 2006-04-18 06:58:54 +00:00
foobar
6af3218f81 more cleanup (lingering ini settings which do not exist anymore, etc.) 2006-04-10 15:09:15 +00:00
Dmitry Stogov
7a6284cef0 Optimization 2006-04-07 13:57:39 +00:00
Dmitry Stogov
00c81b0e49 Fixed register_argc_argv behavior. Now it behave in the same way as before in combinations with variables_order and auto_globals_jit.
$argc and $argv global variables are registered only in CLI mode and under $_SERVER[] in other case. (This is done because register_globals was removed and assumed - off).
2006-03-20 10:18:50 +00:00
Dmitry Stogov
fb7324bb71 Fixed register_argc_argv 2006-03-17 15:04:23 +00:00
Dmitry Stogov
22a7b0c06e Allowed 'auto_globals_jit' work together with 'register_argc_argv' 2006-03-17 08:59:02 +00:00
Dmitry Stogov
22055cb8fd Dropped register_long_arrays, added E_CORE for all dropped setting 2006-03-16 09:44:42 +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
Pierre Joye
303bfea78f - remove register_globals support (aka "Kill the f***ing thing" :) 2006-03-07 00:20:54 +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
6da04e6292 pval -> zval (Steph) 2006-02-13 16:35:36 +00:00
Dmitry Stogov
b238135d53 Fixed bug #36205 (Memory leaks on duplicate cookies) 2006-02-13 12:18:31 +00:00
Dmitry Stogov
09ca61c125 Made server wide switch for unicode on/off (according to PDM). 2006-02-13 10:23:59 +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
146517684d Fixed possible GLOBALS variable override when register_globals are ON.
Fixed possible register_globals toggle via parse_str().
2005-09-28 22:31:29 +00:00
Ilia Alshanetsky
5f1aa243c3 Fixed bug #34331 (php crashes when variables_order is empty). 2005-09-01 19:14:54 +00:00
Dmitry Stogov
239f84c215 Fixed incorrect variable parsing in non-unicode mode 2005-08-12 13:27:38 +00:00
Andrei Zmievski
264cec8be6 Unicode support. 2005-08-11 23:36:07 +00:00
Rasmus Lerdorf
c95107492d MFB minor consistency cleanup 2005-08-10 23:35:51 +00:00
foobar
23e671a51e - Bumber up year 2005-08-03 14:08:58 +00:00
Ilia Alshanetsky
990f7043d9 Fixed bug #33958 (duplicate cookies and magic_quotes=off may cause a crash) 2005-08-02 17:01:05 +00:00
Ilia Alshanetsky
22db404132 Fixed bug #33904 (input array keys being escaped when magic quotes is off). 2005-07-29 15:43:37 +00:00
Rasmus Lerdorf
c35454440c I could have sworn I committed this a while ago. Just a tiny NULL safety
check here.
2005-07-25 22:37:35 +00:00
Wez Furlong
27c24383ee revert my last change; chasing ghosts.
# the lesson is, ensure that php4 and php5 aren't loaded at the same time
2005-07-19 19:25:33 +00:00
Wez Furlong
546418a66b Don't crash when no treat_data method has been set in the sapi module
# how come no one ran into this before?
2005-07-19 18:59:46 +00:00
Ilia Alshanetsky
e77c65f081 Revert cookie patch for BC reasons. 2005-07-18 19:18:03 +00:00
Ilia Alshanetsky
75e6dd1c61 Fixed handling of HTTP requests with multiple Cookie headers. 2005-07-18 04:04:18 +00:00
Dmitry Stogov
28446a4e45 Fixed "refcount" counting for autoglobals 2005-06-01 09:44:10 +00:00