summaryrefslogtreecommitdiff
path: root/ext/session/mod_user.c
Commit message (Collapse)AuthorAgeFilesLines
* ZTS cleanupReeze Xia2015-03-081-1/+1
|
* Remove excessive macrosYasuo Ohgaki2015-01-291-30/+10
|
* WIP - test passesYasuo Ohgaki2015-01-221-1/+37
|
* bump yearXinchen Hui2015-01-151-1/+1
|
* trailing whitespace removalStanislav Malyshev2015-01-101-3/+3
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-14/+14
|
* s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|
* Avoid double IS_INTERNED() checkDmitry Stogov2014-09-191-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-8/+8
|
* basic macro replacements, all at onceAnatol Belski2014-08-191-5/+5
|
* Merge branch 'master' into phpngDmitry Stogov2014-07-081-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | * master: Fix still broken session test. Only return true/false. Fixed bug #66830 (Empty header causes PHP built-in web server to hang). Followup fix to custom session save handlers create locales and re-add test rm test for now Conflicts: ext/session/tests/session_set_save_handler_class_012.phpt
| * Followup fix to custom session save handlersSara Golemon2014-07-071-1/+4
| | | | | | | | | | | | | | | | 2d9885c introduced some regressions. This addresses those. * Don't throw return type notice or session write failure when in an exception * Fix tests to properly return true/false since null is no longer falsy/successy * Rerecord a few tests to accomodate difference in raised warnings
* | Merge branch 'master' into testDmitry Stogov2014-07-071-6/+18
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (48 commits) change locale - looks like not everybody has sl_SI Fix bug #66921 - Wrong argument type hint for function intltz_from_date_time_zone fix format Fix bug #67052 (NumberFormatter::parse() resets LC_NUMERIC setting) Make sure the generator script also creates a newline at the end of file Add newline at end of file to prevent compilation warning Fix handling of session user module custom handlers. Reference bug report instead of github issue in NEWS file add more exts for Travis Update NEWS Fix phpdbg.1 man page installation when build != src directory BFN for bug #67551 (php://input temp file will be located in sys_temp_dir instead of upload_tmp_dir) reorder restore API compatibility finish refactor php_stream_temp_create{,_ex} and use it for the php://input stream refactor _php_stream_fopen_{temporary_,tmp}file() fix length overflow of HTTP_RAW_POST_DATA Update NEWS Fixed bug #67215 (php-cgi work with opcache, may be segmentation fault happen) ... Conflicts: ext/opcache/zend_accelerator_util_funcs.c ext/session/mod_user.c ext/spl/spl_array.c ext/spl/spl_dllist.c ext/standard/file.c ext/standard/streamsfuncs.c ext/standard/string.c main/streams/memory.c
| * Fix handling of session user module custom handlers.Sara Golemon2014-07-061-6/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the documentation, returning TRUE from user based session handlers should indicate success, while returning FALSE should indicate failure. The existing logic relied on casting the return value to an integer and returning that from the function. However, the internal handlers use SUCCESS/FAILURE where SUCCESS == 0, and FAILURE == -1, so the following behavior map occurs: return false; => return 0; => return SUCCESS return true; => return 1; => return <undefined> Since the session API checks against FAILURE, both boolean responses wind up appearing like "not FAILURE". This diff reasserts boolean responses to behave as documented and introduces some special handling for integer responses of 0 and -1 so that code can be written for older and newer versions of PHP.
* | Make they are in the same style of Z_ISREFXinchen Hui2014-05-031-7/+7
| |
* | Fixed retval for ps_call_handlerXinchen Hui2014-03-291-1/+6
| |
* | Refactor session (incompleted)Xinchen Hui2014-03-281-52/+44
|/
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Reduce compilation noise during normal compilation:Christopher Jones2013-08-211-1/+1
| | | | | | | | | | | | | | | php-5.5/ext/session/session.c:836: warning: unused variable ‘struc’ php-5.5/ext/session/session.c:836: warning: unused variable ‘num_key’ php-5.5/ext/session/session.c:836: warning: unused variable ‘key_length’ php-5.5/ext/session/session.c:836: warning: unused variable ‘key’ php-5.5/ext/session/session.c:835: warning: unused variable ‘key_type’ php-5.5/ext/session/session.c:834: warning: unused variable ‘_ht’ php-5.5/ext/session/session.c:857: warning: unused variable ‘has_value’ php-5.5/ext/session/session.c:856: warning: unused variable ‘namelen’ php-5.5/ext/session/session.c:853: warning: unused variable ‘name’ php-5.5/ext/session/session.c:852: warning: unused variable ‘p’ php-5.5/ext/session/mod_user.c:191: warning: unused variable ‘ret’
* kick unused varAnatol Belski2013-07-151-1/+0
|
* Merge PR 109 - Add create_sid to session_set_save_handler and SessionHandlerArpad Ray2013-06-271-1/+34
|\ | | | | | | | | | | Allows user session handlers to create session IDs by adding an optional 7th argument to session_set_save_handler() and a create_sid() method to SessionHandler.
| * Add create_sid to session_set_save_handler and SessionHandlerLeigh2012-06-151-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A lot of code already existed to allow a custom create_sid handler, but lacked a specific implementation. Therefore I have added a 7th (optional) argument session_set_save_handler, to allow a user function to be supplied for session id generation. If a create_sid function is not supplied, the default function is called in its absence to preserve backwards compatibility. Likewise create_sid only added to SessionHandler class, and not the interface to maintain backwards compatibility. If the result is not overridden, the default is called.
| * - Fixed bug #60860 (session.save_handler=user without defined function core ↵Felipe Pena2012-01-281-0/+7
| | | | | | | | dumps)
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * Implement object-oriented session handlers (https://wiki.php.net/rfc/session-oo)Arpad Ray2011-09-131-19/+10
| |
* | Happy New YearXinchen Hui2013-01-011-1/+1
| |
* | better fix & this test pass nowXinchen Hui2012-08-151-3/+2
| |
* | Attempt to fix segfault due to retval is not initializedXinchen Hui2012-08-151-1/+1
| |
* | improve the fixXinchen Hui2012-08-151-2/+2
| |
* | Fixed bug (segfault due to PS(mod_user_implemented) not be reseted when ↵Xinchen Hui2012-08-151-1/+15
| | | | | | | | closing handler call exit)
* | - Fixed bug #60860 (session.save_handler=user without defined function core ↵Felipe Pena2012-01-281-0/+7
| | | | | | | | dumps)
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | Implement object-oriented session handlers (https://wiki.php.net/rfc/session-oo)Arpad Ray2011-09-131-19/+10
|/
* - Year++Felipe Pena2011-01-011-1/+1
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: ws + syncJani Taskinen2009-05-181-42/+32
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: fix bug #32330 (session_destroy, "Failed to initialize storage module", ↵Gwynne Raskind2008-03-071-11/+19
| | | | custom session handler)
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Merge in session API changes (carry around tsrm context)Sascha Schumann2002-03-061-8/+7
| | | | | | Now PHP_SESSION_API is defined to the date of the last change, so that externa source-code can handle changes more gracefully.
* Weep out all recent commits of Yasuo.Sascha Schumann2002-03-061-7/+8
| | | | | | | | | | | | | | | I don't have time right now to leave in the good ones and remove only the bad ones. There are some semantical changes which I reject, because they aim at fixing a bug which is at a completely other location. Then SID does not gefined anymore properly. (This broken patch has not been sent to me at all.) Also, there were *so* many whitespace changes which already make these commits bogus.
* More TSRM workYasuo Ohgaki2002-03-061-1/+1
|
* Remove TSRMLS_FETCH() and use TSRMLS_C/TSRMLS_DYasuo Ohgaki2002-03-061-7/+6
| | | | | # Need a little more work for backword compatibility
* Maintain headers.Sebastian Bergmann2002-02-281-1/+1
|