foobar
3619c6eb6a
Added $_SESSION to the $_* family.
2001-08-11 10:49:03 +00:00
Sascha Schumann
23b9300fd1
more tsrm cleanup
2001-08-06 03:50:52 +00:00
Sascha Schumann
a19563c8dc
more tsrm cleanup
2001-08-05 16:52:29 +00:00
Sascha Schumann
480ffb3d75
more tsrm cleanup
2001-08-05 16:43:57 +00:00
Sascha Schumann
8aef193056
more tsrm cleanup
2001-08-05 15:29:47 +00:00
Sascha Schumann
aafdfe82cb
further tsrm cleanup
2001-08-05 14:36:51 +00:00
Zeev Suraski
1159c84ab7
- TSRMLS_FETCH work
...
- whitespace fixes
2001-08-05 01:43:02 +00:00
Sascha Schumann
723bbcbea0
Do the nul'ifiying of php_var_serialize's result at the right place
2001-08-03 11:00:16 +00:00
Sascha Schumann
4a1943c542
Pass on nul'ified data
2001-08-03 10:39:48 +00:00
Sascha Schumann
60024a469d
Add some casts
2001-08-03 08:51:53 +00:00
Sascha Schumann
4dfa91543c
Convert serializer to smart_str.. avoids lots of sprintf's and
...
copying of data.
2001-08-03 07:25:27 +00:00
Zeev Suraski
797a079a95
More TSRMLS_FETCH work, and a bit of cleanup
2001-07-30 06:18:13 +00:00
Zeev Suraski
d87cc976e1
Redesigned thread safety mechanism - nua nua
2001-07-28 11:36:37 +00:00
Zeev Suraski
fe6f8712a4
- Get rid of ELS_*(), and use TSRMLS_*() instead.
...
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
2001-07-27 10:16:41 +00:00
Sascha Schumann
00596b414e
Get rid of memchr
2001-07-25 19:02:13 +00:00
Zeev Suraski
6f297a370a
Fix Windows build
2001-07-20 14:40:30 +00:00
Sascha Schumann
9576ab24dd
Instead of using the poor system rand() algorithm and the
...
system-time seed, rely on the long-living LCG to determine
whether to start the GC process.
2001-07-18 22:56:56 +00:00
Thies C. Arntzen
249c010d92
make regession test of session work without the ugly hack in session.c
...
and removed that ugly hack.
2001-07-13 10:32:37 +00:00
Hartmut Holzgraefe
319149fd8b
workaround to make ext/session well behaved with 'make test' and E_ALL
2001-07-11 13:46:11 +00:00
Hartmut Holzgraefe
e15d0193d9
cleanup in preparation for session_readonly()
2001-07-11 13:27:27 +00:00
Sascha Schumann
ef13ab5750
Improve url scanner speed (up to 40% for large chunks of data)
...
and handle some corner cases better. The scanner has been changed
to the format as proposed in "RE2C - A More Versatile Scanner Generator"
by Cowan et al.
2001-07-04 15:30:21 +00:00
Hartmut Holzgraefe
7f08918b87
suppress sending of cookies if session id already came
...
from a non-cookie source
2001-06-29 05:27:57 +00:00
Thies C. Arntzen
bd4f32cf12
- fixed the reference in session thingie
...
- regression test checked (this time;-)
- added new regression test for references
- references _between_ session variables also work in when the session var
replaces an already existing global var (this was a brain twister)
- saved one strlen call per session variable
- fixed one tiny leak
2001-06-21 18:46:26 +00:00
Sascha Schumann
375ef3aec5
Back out severely broken patch. I currently don't have the time
...
to debug this. Please reapply a fixed version.
2001-06-20 23:39:28 +00:00
Thies C. Arntzen
45f629925f
@- Fixed references in sessions. This doesn't work when using the
...
@ WDDX session-serializer. Also improved speed of sessions. (Thies)
from now on php_set_session_var no longer copies the variable recovered from a
session (tested with php, php_binary and wddx). this should speed up session
deserializing quite a bit. (this damn thing has cost me 6 hours of my life;-)
2001-06-20 15:16:08 +00:00
Harald Radi
22790c9602
removed warnings
2001-06-10 23:26:35 +00:00
Sascha Schumann
5ebe991cfe
Signal that no entry was found
2001-06-10 14:12:28 +00:00
Sascha Schumann
b31801b249
Check for http_session_vars != NULL.
2001-06-08 11:45:53 +00:00
Rasmus Lerdorf
9c55882133
Fold a bit more code
2001-06-06 14:32:27 +00:00
Stig Bakken
1beda9ee1e
* include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build)
2001-05-24 10:07:29 +00:00
Sascha Schumann
5e112d4384
Due to dynamic registration of storage handlers, OnUpdateSaveHandler
...
might be called before that registration takes place and hence the
INI update is dismissed. In that case, we defer the lookup to the
first request init.
2001-05-23 23:18:51 +00:00
Andrei Zmievski
699489d456
@- Made $HTTP_SESSION_VARS['foo'] and $foo be references to the same value
...
@ when register_globals is on. (Andrei)
2001-05-22 17:55:07 +00:00
Sascha Schumann
6c3b8d5619
Improve reading from external data source for session id creation.
...
Improve generating the string representation of the md5 session id.
2001-05-19 09:58:31 +00:00
Sascha Schumann
90c2979144
Nuke some warnings.
2001-05-13 07:37:28 +00:00
Sascha Schumann
9de9b7c1e9
add an interface for registering storage modules at run-time.
2001-05-03 15:48:49 +00:00
Andrei Zmievski
ea56318495
Patch from Sascha that abstracts session serializers. WDDX extension
...
now implements the encode/decode functions and registers them with
the session module.
2001-05-01 17:01:51 +00:00
Andi Gutmans
4c823e8a89
- Change macros from V_ to VCWD_ because of AIX name clash
2001-04-30 12:45:02 +00:00
Andi Gutmans
6e8f7a06f6
- use get_current_key_ex() in order to receive key length and not having
...
- to use strlen() everywhere.
2001-04-26 02:54:27 +00:00
Shane Caraveo
a7f48e470f
compile was broken, new argument?
2001-04-26 01:46:18 +00:00
Sascha Schumann
667a1f1fdb
buf is gone. Don't reference it.
2001-03-13 17:11:43 +00:00
Sascha Schumann
2b6698aaa9
Replace another sprintf
2001-03-13 16:58:36 +00:00
Sascha Schumann
86cf74a169
Nuke calls to sprintf, snprintf, strcat, strcpy and rely on
...
memcpy and smart_strs.
2001-03-13 16:53:34 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
Sascha Schumann
1b15d1f166
Use MAKE_STD_ZVAL/FREE_ZVAL to handle zval memory allocation.
2001-01-07 10:42:15 +00:00
Sascha Schumann
24c49a21b9
Use zval_ptr_dtor instead of zval_dtor/FREE_ZVAL pair.
...
Submitted by: Andi Gutmans
2001-01-07 10:32:06 +00:00
Sascha Schumann
3ca8721e99
More instances of s/efree/FREE_ZVAL/
2000-12-24 16:30:42 +00:00
Sascha Schumann
92f61634eb
(PHP session_unset) Return early, if no session was started.
...
PR: #8354
2000-12-22 22:53:14 +00:00
Zeev Suraski
aa6d2ac5d0
Heads up people!
...
Updated the get_current_key() API - the relevant authors, please take
a look at the updated code and make sure it's ok...
2000-12-22 12:57:09 +00:00
Sascha Schumann
5347ef1728
Whitespace fix and initialize ret properly
2000-11-22 04:10:04 +00:00
Stanislav Malyshev
119ee485c6
Move "replace value" logic to Zend
2000-11-20 12:39:14 +00:00