summaryrefslogtreecommitdiff
path: root/ext/session/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Micro optimization & fixed invalid key handlingXinchen Hui2018-08-171-1/+3
|
* Fix #76688: Disallow excessive parameters after options arrayPedro Magalhães2018-08-121-0/+9
|
* Support for samesite cookies with array syntaxPedro Magalhães2018-07-315-10/+93
| | | | | | | | | Allows using an alternative array argument with support for the samesite option on the following functions: setcookie setrawcookie session_set_cookie_params
* implement same site cookie see https://bugs.php.net/bug.php?id=72230 see ↵Frederik Bosch2018-07-315-13/+99
| | | | https://tools.ietf.org/html/draft-west-first-party-cookies-07 see https://scotthelme.co.uk/csrf-is-dead/
* Merge branch 'PHP-7.2'Christoph M. Becker2018-04-121-0/+23
|\ | | | | | | | | * PHP-7.2: Fixed #74892 - Fixed URL rewriting for urls started with #
| * 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.
* | Remove duplicated testsGabriel Caruso2018-02-222-41/+0
| |
* | remove support for string|unicode in testsGabriel Caruso2018-02-2213-78/+78
| |
* | Use EXPECT instead of EXPECTF when possibleGabriel Caruso2018-02-2061-61/+61
| | | | | | | | EXPECTF logic in run-tests.php is considerable, so let's avoid it.
* | Remove empty sections in testsGabriel Caruso2018-02-142-3/+2
| |
* | Remove trailing whitespace in inc filesGabriel Caruso2018-02-101-1/+1
| |
* | Use bool instead of boolean while throwing a type errorGabriel Caruso2018-02-043-10/+10
| | | | | | | | | | | | | | | | | | | | PHP requires boolean typehints to be written "bool" and disallows "boolean" as an alias. This changes the error messages to match the actual type name and avoids confusing messages like "must be of type boolean, boolean given". This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which implements the same change for integer->int.
* | Use int instead of integer in type errorsGabriel Caruso2018-02-041-4/+4
| | | | | | | | | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* | Remove superfluous SKIPIF sections in more testsGabriel Caruso2018-02-041-1/+0
| |
* | Remove checks for unicode.semantics ini optionNikita Popov2018-02-031-7/+0
| |
* | Use %d when expecting line number in testsGabriel Caruso2018-02-021-1/+1
| |
* | Merge branch 'PHP-7.2'Anatol Belski2017-07-261-0/+22
|\ \ | |/ | | | | | | * PHP-7.2: Fixed bug #74833, SID constant created with wrong module number
| * Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-07-261-0/+22
| |\ | | | | | | | | | | | | * PHP-7.1: Fixed bug #74833, SID constant created with wrong module number
| | * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-07-261-0/+22
| | |\ | | | | | | | | | | | | | | | | * 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-261-0/+22
| | | |
| | * | Fixed #74892 - Fixed URL rewriting for urls started with #Andrew Nester2017-07-181-0/+23
| | | |
* | | | Add warning for change session id when session is activedreamsxin2017-07-252-27/+28
|/ / /
* | | Fixed bug #74941 - Session fails to start after having headers sentSergei Morozov2017-07-201-0/+22
| | |
* | | Fixed bug #74936 - session_*() functions trigger a warning in read mode when ↵Sergei Morozov2017-07-188-26/+26
| | | | | | | | | | | | the session is active
* | | Fixed bug #74514 5 session functions incorrectly warn when calling in ↵Yasuo Ohgaki2017-07-011-0/+34
| | | | | | | | | | | | read-only/getter mode
* | | Merge branch 'PHP-7.1'Xinchen Hui2017-05-0937-1/+56
|\ \ \ | |/ / | | | | | | | | | | | | * 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-0937-1/+56
| |\ \ | | |/ | | | | | | | | | | | | * 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-081-0/+18
| | |
| * | 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'Nikita Popov2017-01-0110-127/+0
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-01-016-60/+0
| |\ \ | | |/
| | * Flush stderr on win32 in cli_log_messageNikita Popov2017-01-016-60/+0
| | | | | | | | | | | | This allows us to unfork a bunch of tests for Windows.
* | | Fixed typo in "session_module_name"Graham Campbell2016-12-275-5/+5
| | |
* | | fork testsAnatol Belski2016-12-264-3/+73
| | |
* | | Fix tests for appveyorYasuo Ohgaki2016-12-242-4/+2
| | |
* | | Fix bug #73100 - Improve bug fix. Forbid to set 'user' save handler other ↵Yasuo Ohgaki2016-12-223-5/+11
| | | | | | | | | | | | than set_save_handler().
* | | Remove "register_globals" support codes from php/php_binary serializers.Yasuo Ohgaki2016-12-211-1/+1
| | | | | | | | | | | | As a result, users may use PS_UNDEF_MAKER(=!) char for session variable name.
* | | fix test portabilityAnatol Belski2016-12-131-4/+3
| | | | | | | | | | | | | | | Since there's no fatal error anymore, the execution continues. However, removing the CWD is not always possible.
* | | Merge branch 'PHP-7.1'Xinchen Hui2016-12-102-1/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed tests
| * | Fixed testsXinchen Hui2016-12-102-1/+2
| | |
* | | Add XFAIL for failing testYasuo Ohgaki2016-11-271-0/+2
| | |
* | | Merge branch 'pull-request/2221'Yasuo Ohgaki2016-11-271-0/+36
|\ \ \ | | | | | | | | | | | | | | | | * pull-request/2221: Add a test for bug 73529