summaryrefslogtreecommitdiff
path: root/ext/session
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #79221 - Null Pointer Dereference in PHP Session Upload ProgressStanislav Malyshev2020-02-152-4/+51
|
* Fix #79091: heap use-after-free in session_create_id()Christoph M. Becker2020-01-202-0/+68
| | | | If the `new_id` is released, we must not use it again.
* Set session.gc_probability=0 in bug78624.phptNikita Popov2019-10-071-0/+1
| | | | | We only want to test manually triggered session GC. Avoid spurious output due to automatic GC.
* fix #78624: session_gc return value for user defined session handlersBrent Shaffer2019-10-043-7/+81
|
* use {TMP} placeholder in phpt testsHolly Li (WIPRO LIMITED)2019-05-212-5/+5
|
* Fix #77911: Wrong warning for session.sid_bits_per_characterChristoph M. Becker2019-04-171-1/+1
|
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1598-107/+3
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in *.phptPeter Kokot2018-10-14129-301/+301
|
* Merge branch 'PHP-7.1' into PHP-7.2Peter Kokot2018-10-148-8/+0
|\ | | | | | | | | * PHP-7.1: Fix failing ext/session/tests due to final newlines
| * Fix failing ext/session/tests due to final newlinesPeter Kokot2018-10-148-8/+0
| |
| * Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
| * Trim trailing whitespace in source code filesPeter Kokot2018-10-135-6/+6
| |
| * Convert CRLF line endings to LFPeter Kokot2018-10-132-99/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
* | Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* | Trim trailing whitespace in source code filesPeter Kokot2018-10-134-5/+5
| |
* | Convert CRLF line endings to LFPeter Kokot2018-10-131-57/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-05-071-7/+8
|\ \ | |/ | | | | | | * PHP-7.1: Update _bits_per_char to use with new PHP 7.1. or greater
| * Update _bits_per_char to use with new PHP 7.1. or greaterRicardo F2018-05-071-7/+8
| | | | | | | | | | | | Fix typo Remove references to PHP lower than 7.1
| * year++Xinchen Hui2018-01-029-9/+9
| |
* | Fixed #74892 - Fixed URL rewriting for urls started with #Andrew Nester2018-04-121-0/+23
| | | | | | | | | | | | | | (cherry picked from commit 6c32d271d238a18cfc19d98877cdead1ab38f417) This should have already been merged via 9cd82df0bbb1f9a1407ffb749292576be1b91c07, but that merge went wrong.
* | ext/session: catch incompatible configure flags earlier.Michael Orlitzky2018-01-241-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The session extension has a --with-mm flag that tells it to build the mm backend ("mm" is the name of the library). However, that backend is not thread-safe, and mod_mm.c will refuse to compile if the --enable-maintainer-zts flag was also passed to the configure script. Rather than crash halfway through the build, this commit adds a check to the session extension's config.m4 file. If both --with-mm and --enable-maintainer-zts are "on," then the configure script will die and explain that they can't be used together. PHP-bug: 14269
* | year++Xinchen Hui2018-01-029-9/+9
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-07-262-1/+28
|\ \ | |/ | | | | | | * PHP-7.1: Fixed bug #74833, SID constant created with wrong module number
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-07-262-1/+28
| |\ | | | | | | | | | | | | * PHP-7.0: Fixed bug #74833, SID constant created with wrong module number
| | * Fixed bug #74833, SID constant created with wrong module numberAnatol Belski2017-07-262-1/+28
| | |
| * | Fixed #74892 - Fixed URL rewriting for urls started with #Andrew Nester2017-07-181-0/+23
| | |
* | | Fixed bug #74941 - Session fails to start after having headers sentSergei Morozov2017-07-202-2/+24
| | |
* | | Fixed bug #74936 - session_*() functions trigger a warning in read mode when ↵Sergei Morozov2017-07-189-29/+29
| | | | | | | | | | | | the session is active
* | | Fixed bug #74514 5 session functions incorrectly warn when calling in ↵Yasuo Ohgaki2017-07-012-5/+39
| | | | | | | | | | | | read-only/getter mode
* | | Only compute callback name in error casesNikita Popov2017-06-251-3/+2
| | | | | | | | | | | | | | | Mostly the callback name is only used to report an error. Try to avoid calculating it if no error occurred.
* | | Merge branch 'PHP-7.1'Xinchen Hui2017-05-0938-2/+61
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-7.1: Fixed tests when using cumstom php.ini(session.save_handler) Fix Bug #74541 Wrong reflection on session_start()
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-05-0938-2/+61
| |\ \ | | |/ | | | | | | | | | | | | * PHP-7.0: Fixed tests when using cumstom php.ini(session.save_handler) Fix Bug #74541 Wrong reflection on session_start()
| | * Fixed tests when using cumstom php.ini(session.save_handler)Xinchen Hui2017-05-0936-1/+38
| | |
| | * Fix Bug #74541 Wrong reflection on session_start()Fabien Villepinte2017-05-082-1/+23
| | |
* | | Separate array in session upload progressNikita Popov2017-01-231-0/+1
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-191-2/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Update comment, incorrect since 224aaf94
| * | Update comment, incorrect since 224aaf94SjonHortensius2017-01-191-2/+1
| | | | | | | | | | | | In 224aaf94; the warning was enabled; making the comment above incorrect. I've updated the comment to reflect the current code
| * | Set a session path for this testRasmus Lerdorf2017-01-101-0/+1
| | |
| * | Missing %sRasmus Lerdorf2017-01-101-1/+1
| | |
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-072-1/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixes for session and fpm tests in PHP7.0 branch
| | * Fixes for session and fpm tests in PHP7.0 branchMitch Hagstrand2017-01-062-1/+2
| | | | | | | | | | | | | | | | | | 1. Increased the timeout on sapi/fpm tests to match the cli server 2. Disabled session GC in session_set_save_handler_basic.phpt 3. Fixed GC in save_handler.inc to delete files based on age
* | | Set a session path for this testRasmus Lerdorf2017-01-101-0/+1
| | |
* | | Missing %sRasmus Lerdorf2017-01-101-1/+1
| | |
* | | Fixes for session and fpm tests to make them more reliable in Travis CIMitch Hagstrand2017-01-073-3/+6
| | | | | | | | | | | | | | | | | | 1. Increased the timeout on sapi/fpm tests to match the cli server 2. Fixed user session GC function to return number of sessions removed 3. Disabled session GC in session_set_save_handler_basic.phpt
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-061-2/+8
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed bug #69582 session not readable by root in CLI
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-061-2/+8
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed bug #69582 session not readable by root in CLI
| | * Merge branch 'pull-request/1360' into PHP-7.0Joe Watkins2017-01-061-2/+8
| | |\ | | | | | | | | | | | | | | | | | | | | * pull-request/1360: Fixed bug #69582 session not readable by root in CLI news entry for PR #1360
| | | * *[Sessions]: Now session is accessible if process is ran by root. Fixing ↵Evgeniy Spinov2015-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | bug: https://bugs.php.net/bug.php?id=69582 *[Sessions]: Replaced fstat with zend_fstat
| | | * *[Sessions]: Now session is accessible if process is ran by root. Fixing ↵Evgeniy Spinov2015-06-241-2/+8
| | | | | | | | | | | | | | | | bug: https://bugs.php.net/bug.php?id=69582
| | * | Update copyright headers to 2017Sammy Kaye Powers2017-01-049-9/+9
| | | |