summaryrefslogtreecommitdiff
path: root/ext/session/mod_user.c
Commit message (Collapse)AuthorAgeFilesLines
* fix #78624: session_gc return value for user defined session handlersBrent Shaffer2019-10-041-7/+8
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Improve error messageYasuo Ohgaki2016-11-161-1/+1
|
* Refactor and cleanup implementation.Yasuo Ohgaki2016-11-161-0/+8
|
* Revert "Fix Bug #73461"Yasuo Ohgaki2016-11-161-82/+0
| | | | This reverts commit 0383de14678e4c77e11ebf261530d4c1260825a1.
* Fix Bug #73461Yasuo Ohgaki2016-11-161-0/+82
| | | | This patch disables any invalid save handler calls.
* Revert "Revert "Implement RFC Add session_gc() ↵Yasuo Ohgaki2016-09-011-2/+11
| | | | | | https://wiki.php.net/rfc/session-gc"" This reverts commit 355c7e7d1cdc180d368c6214ea7605443fc88c92.
* Revert "Implement RFC Add session_gc() https://wiki.php.net/rfc/session-gc"Yasuo Ohgaki2016-09-011-11/+2
| | | | This reverts commit 1cf179e4150308d8217d9517408ca5e22b5d607f.
* Implement RFC Add session_gc() https://wiki.php.net/rfc/session-gcYasuo Ohgaki2016-08-291-2/+11
|
* Replace zend_ce_error with NULL and replace more E_ERROR with thrown ErrorAaron Piotrowski2016-06-131-3/+2
|
* Merge branch 'master' into throw-error-in-extensionsAaron Piotrowski2016-06-101-2/+11
|\
| * Merge branch 'PHP-5.6' into PHP-7.0Yasuo Ohgaki2016-01-151-1/+10
| |\ | | | | | | | | | | | | * PHP-5.6: Fixed bug #69111 (Crash in SessionHandler::read()). Made session save handler abuse much harder than before.
| | * Fixed bug #69111 (Crash in SessionHandler::read()).Yasuo Ohgaki2016-01-151-1/+10
| | | | | | | | | | | | Made session save handler abuse much harder than before.
| * | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| | * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
| * | Reverted ad4533fdbabcc3e545277e30023b2fdce16297a0Anatol Belski2015-07-211-2/+2
| | | | | | | | | | | | | | | The E_ERROR to E_RECOVERABLE_ERROR should be readded with the proper tests.
| * | Change E_ERROR and some E_WARNING to E_RECOVERABLE_ERROR.Yasuo Ohgaki2015-07-211-2/+2
| | |
* | | Convert E_ERROR to thrown Error in extensionsAaron Piotrowski2015-07-051-2/+3
|/ /
* | 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)