Commit Graph

109 Commits

Author SHA1 Message Date
Dmitry Stogov
11187a40e0 Fixed bug #36205 (Memory leaks on duplicate cookies) 2006-02-13 12:18:16 +00:00
foobar
5bd93221a8 bump year and license version 2006-01-01 12:51:34 +00:00
Ilia Alshanetsky
1a04335ec2 MFH: Fixed possible GLOBALS variable override when register_globals are ON.
MFH: Fixed possible register_globals toggle via parse_str().
MFH: Fixed negative offset handling in substr_compare() function.
2005-09-28 22:39:52 +00:00
Ilia Alshanetsky
5f8809907a MFH: Fixed bug #34331 (php crashes when variables_order is empty). 2005-09-01 19:15:19 +00:00
Rasmus Lerdorf
ba8cfb4a93 Minor consistency cleanup 2005-08-10 23:33:10 +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
Dmitry Stogov
84fef05939 Fixed possible memory corruption on request shutdown
`valgrind -q --tool=memcheck sapi/cli/php tests/reflection/001.phpt`
2005-05-31 17:42:15 +00:00
Dmitry Stogov
1add2cc70e Fixed bug #29971 (variables_order behaviour) 2005-05-25 17:41:50 +00:00
foobar
0783e0a358 Revert. (Nokia is not that important :) 2005-04-25 21:18:15 +00:00
Ilia Alshanetsky
320dd75443 MFB: zval** not zval* 2005-04-24 18:11:55 +00:00
Ilia Alshanetsky
409c3fd4a6 Fixed bug #32802 (General cookie overrides more specific cookie). 2005-04-24 17:52:21 +00:00
foobar
815aff1caf - Fixed bug #32111 (Cookies can also be separated by colon) 2005-04-23 20:33:34 +00:00
foobar
e642d180f6 ws, pval -> zval 2005-04-23 19:30:29 +00:00
Rui Hirokawa
8235a70ef9 added a server variable PHP_AUTH_DIGEST to support HTTP Digest Authentication. 2005-04-04 15:06:36 +00:00
Ilia Alshanetsky
6071843d4c Proper fix for the memory leak. 2005-03-28 18:46:57 +00:00
Ilia Alshanetsky
ec841c8e12 Fixed memory leak when variables_order does not contain 'S'. 2005-03-28 18:09:28 +00:00
Ilia Alshanetsky
ed9e8c7c81 Fixed bug #31440 ($GLOBALS can be overwritten via GPC when register_globals
is enabled).
2005-02-17 04:44:11 +00:00
Ilia Alshanetsky
0802b1286d Make request start time be available via $_SERVER['REQUEST_TIME'].
# As discussed on internals.
2004-10-24 17:41:13 +00:00
Antony Dovgal
e865bc2bc5 fix bug #30442 ( segmentation fault when parsing ?getvariable[][ ) 2004-10-18 15:05:06 +00:00
Rasmus Lerdorf
bb8167cda3 Stop at the index on an unmatched [ 2004-09-09 16:10:24 +00:00
Stefan Esser
0e8de752fd Ooups... 2004-07-11 21:14:50 +00:00
Stefan Esser
8c075de7c7 Fixed: PARSE_TYPE parameter to input_filter
Fixed: input_filter should also be able to filter empty variables by name
2004-07-11 20:13:39 +00:00
Andi Gutmans
e5cfb1d05c - Better stability during premature shutdown of request startup 2004-07-10 07:46:17 +00:00
Stefan Esser
59d55efb17 As long we pass values by reference this is needed. Ugly! 2004-06-26 08:09:28 +00:00
Zeev Suraski
02344b1dae Improve the way auto-globals JIT works, and add the ability to turn it off 2004-03-16 19:49:19 +00:00
foobar
e3c80d52da - Remove gpc_order since it doesn't serve any purpose. 2004-01-26 04:15:08 +00:00
Andi Gutmans
dbeb4158d2 - A belated happy holidays and PHP 5 2004-01-08 08:18:22 +00:00
Derick Rethans
74eed61504 - Fix the default SAPI filter too; all weird problems should be gone again. 2003-12-01 19:25:07 +00:00
Derick Rethans
750b0338bf - Fix sapi_input_filter patch. Returning 1 from the filter handler should
make PHP register the variable, returning 0 shouldn't. The new length of
  the variables being filtered is now returned in the new_val_len argument
  of the function.
2003-11-29 15:24:35 +00:00
Derick Rethans
370dfd39a9 - Prevent registration of the variable when a zero-length is returned
from the sapi_input_filter.
2003-11-26 09:53:22 +00:00
Ilia Alshanetsky
3c84c0eefc Fixed bug #25836 (last key of multi-dimensional array passed via GPC
not being escaped when magic_quotes_gpc is on).
2003-10-14 03:49:13 +00:00
Stanislav Malyshev
dd7bdcf4b1 Fix $_SERVER['argv'] and $_SERVER['argc'] 2003-10-07 08:46:16 +00:00
Andrei Zmievski
b3920d5012 Made the $argc and $argv always available as globals in CLI, and not as
$_SERVER vars which depended on variables_order anyway. No more
silliness.
2003-10-01 23:11:59 +00:00
Ilia Alshanetsky
de7f7658cf Only register server variables when needed. 2003-07-31 22:56:57 +00:00
Ilia Alshanetsky
0eb76eb2ec Fixed bug #24883 (variables created through register_globals, ignore
gpc_order and variables_order).
Prevent multiple registration of ENV & SERVER variables when more then one
is specified.
Prevent multiple addition of GET/POST/COOKIE variables when building
_REQUEST.
2003-07-31 22:29:32 +00:00
Zeev Suraski
0a49c033d0 - Use the new infrastructure of zend_symtable_*() (fixes bug #24565)
- Fix bogus use of get_current_key()
2003-07-22 16:08:50 +00:00
Zeev Suraski
023c8a7d95 Fix register_globals 2003-07-21 17:42:24 +00:00
Ilia Alshanetsky
e40142047b Fixed bug #24208 2003-06-16 19:24:56 +00:00
Ilia Alshanetsky
93a5238465 Fixed bug #24007 (Problem with register_globals & arrays) 2003-06-14 15:08:27 +00:00
James Cox
f68c7ff249 updating license information in the headers. 2003-06-10 20:04:29 +00:00
Zeev Suraski
ce40bc9073 Make $_FILES auto global (bug #23680) 2003-06-08 15:30:33 +00:00
Shane Caraveo
0f3a0dfa52 _SERVER also should not be quoted by magic_quotes_GPC
also remove an empty if statement
2003-03-30 01:06:54 +00:00