summaryrefslogtreecommitdiff
path: root/ext/session/session.c
Commit message (Collapse)AuthorAgeFilesLines
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-194/+194
|
* Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-11-181-23/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (398 commits) NEWS add test for bug #68381 Fixed bug #68381 Set FPM log level earlier during init proper dllexport move to size_t where zend_string is used internally fix some datatype mismatches return after the warning, to fix uninitialized salt usage fix datatype mismatches add missing type specifier fix datatype mismatches fix unsigned check "extern" shouldn't be used for definitions joined identical conditional blocks simplify fpm tests SEND_VAR_NO_REF optimization Add test for bug #68442 Add various tests for FPM - covering recent bugs (68420, 68421, 68423, 68428) - for UDS - for ping and status URI - for multi pool and multi mode Include small MIT FastCGI client library from https://github.com/adoy/PHP-FastCGI-Client Get rid of zend_free_op structure (use zval* instead). Get rid of useless TSRMLS arguments. Add new FPM test for IPv4/IPv6 ... Conflicts: win32/build/config.w32
| * Merge branch 'PHP-5.6'Yasuo Ohgaki2014-11-061-23/+1
| |\ | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fixed bug #68331 - This was partial patch for https://wiki.php.net/rfc/session-lock-ini Fixed 2 tests that expects bool retrun value from save handler. Conflicts: ext/session/session.c
| | * Fixed bug #68331 - This was partial patch for ↵Yasuo Ohgaki2014-11-061-16/+1
| | | | | | | | | | | | https://wiki.php.net/rfc/session-lock-ini
* | | ext/iconv, ext/json and ext/session use static tsrmls pointerAnatol Belski2014-10-171-0/+7
|/ /
* | Review a few more SEPARATE_ZVAL_IF_NOT_REF usagesNikita Popov2014-10-091-4/+1
| |
* | Move smart_str implementation into Zend/Nikita Popov2014-09-211-1/+1
| | | | | | | | | | | | | | | | So we can use it there as well... For now I've retained the zend_smart_str_public.h header, though it would probably be better to just move that one struct into zend_types.h.
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | fix signed/unsigned mismatchAnatol Belski2014-09-161-1/+2
| |
* | Refactored INI subsystem to use zend_string* instead of char*Dmitry Stogov2014-09-011-53/+52
| |
* | 's' works with size_t round 2Anatol Belski2014-08-271-3/+3
| |
* | first show to make 's' work with size_tAnatol Belski2014-08-271-3/+4
| |
* | Fix session handlers in ztsNikita Popov2014-08-271-18/+8
| | | | | | | | Also use ZEND_HASH_FOREACH API.
* | Fixed incompatible pointerXinchen Hui2014-08-261-1/+1
| |
* | master renames phase 3Anatol Belski2014-08-251-5/+5
| |
* | master renames phase 1Anatol Belski2014-08-251-80/+80
| |
* | fixes to %pd format usageAnatol Belski2014-08-241-3/+3
| |
* | Merge branch 'PHP-5.6'Tjerk Meesters2014-08-231-1/+1
|\ \ | |/ | | | | | | | | | | | | * PHP-5.6: Fixed #67694: Regression in session_regenerate_id() Conflicts: ext/session/session.c
| * Fixed #67694: Regression in session_regenerate_id()Tjerk Meesters2014-08-231-1/+1
| |
* | Merge remote-tracking branch 'php/master'Anatol Belski2014-08-201-3/+4
|\ \
| * | fix incompatible typesAnatol Belski2014-08-191-3/+4
| | |
* | | ported ext/sessionAnatol Belski2014-08-191-7/+7
| | |
* | | basic macro replacements, all at onceAnatol Belski2014-08-191-26/+26
|/ /
* | Restored "???" mark in the place that might be changed laterDmitry Stogov2014-08-141-2/+2
| |
* | clean up - remove checked questionsXinchen Hui2014-08-131-2/+2
| |
* | Merge branch 'master' into phpngDmitry Stogov2014-08-041-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (46 commits) PHP_INT_MIN and _MAX tests NEWS and UPGRADING Added PHP_INT_MIN Fix wrong lenght size Bug #51096 - Remove unnecessary ? for first/last day of Moved streams related functions to xp_ssl.c Remove duplicate NEWS Update NEWS Update NEWS Update NEWS BFN BFN Fixed bug #67715 (php-milter does not build and crashes randomly). We need to turn off any strict mode here for this warning to show up Disable restrictions regarding arrays in constants at run-time. For the discussion around it, see the thread on the mailing list: http://www.mail-archive.com/internals@lists.php.net/msg68245.html Revert "Fix bug #67064 in a BC safe way" Updated NEWS for #67693 Updated NEWS for #67693 Fixed bug #67693 - incorrect push to the empty array add missing entry to NEWS ... Conflicts: Zend/tests/errmsg_040.phpt Zend/tests/ns_059.phpt Zend/zend_language_parser.y Zend/zend_vm_def.h ext/openssl/openssl.c ext/reflection/php_reflection.c ext/session/session.c ext/spl/spl_directory.c ext/spl/spl_iterators.c ext/sqlite3/sqlite3.c ext/standard/array.c
| * \ Merge branch 'PHP-5.6'Stanislav Malyshev2014-07-281-1/+2
| |\ \ | | |/ | | | | | | | | | | | | * PHP-5.6: fix NEWS Fix missing type checks in various functions
| | * Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2014-07-281-1/+2
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.5: Fix missing type checks in various functions Conflicts: ext/openssl/openssl.c
| | | * Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2014-07-281-1/+2
| | | |\ | | | | | | | | | | | | | | | | | | | | * PHP-5.4: Fix missing type checks in various functions
| | | | * Fix missing type checks in various functionsStanislav Malyshev2014-07-271-1/+2
| | | | |
| | * | | Merge branch 'PHP-5.5' into PHP-5.6Xinchen Hui2014-07-191-9/+13
| | |\ \ \ | | | |/ /
* | | | | Merge branch 'master' into phpngDmitry Stogov2014-07-221-9/+13
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: fix nmake snap when ext name is different in target dll force atoll macro usage on windows Enable $ replacement in exif, ldap, pdo_pgsql and tidy See bug #67635 NEWS NEWS improve previous, add message during configure Fixed bug #67635 php links to systemd libraries without using pkg-config Improve fix for #66608 Fixed segfault with empty break New added opcodes don't need to be resloved Update NEWS Update NEWS Update NEWS Fixed bug #66827 Session raises E_NOTICE when session name variable is array implemented copy libs of core exts in phpize mode fix copy the ext dll into the prefix path in phpize mode fix default prefix in phpize mode fix file with zero size usage in phpize mode Conflicts: Zend/zend_opcode.c Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/session/session.c
| * | | | Merge branch 'PHP-5.6'Yasuo Ohgaki2014-07-191-9/+13
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: Fixed bug #66827 Session raises E_NOTICE when session name variable is array
| | * \ \ \ Merge branch 'PHP-5.5' into PHP-5.6Yasuo Ohgaki2014-07-191-9/+13
| | |\ \ \ \ | | | |/ / / | | |/| / / | | | |/ / | | | | | * PHP-5.5: Fixed bug #66827 Session raises E_NOTICE when session name variable is array
| | | * | Merge branch 'PHP-5.4' into PHP-5.5Yasuo Ohgaki2014-07-191-9/+13
| | | |\ \ | | | | |/ | | | | | | | | | | | | | | | * PHP-5.4: Fixed bug #66827 Session raises E_NOTICE when session name variable is array
| | | | * Fixed bug #66827 Session raises E_NOTICE when session name variable is arrayYasuo Ohgaki2014-07-191-9/+13
| | | | |
* | | | | Merge branch 'master' into phpngDmitry Stogov2014-07-081-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 phpngDmitry Stogov2014-06-181-9/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (41 commits) Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 Update copyright year to 2014 NEWS Fix Request #67453 Allow to unserialize empty data. Update copyright year to 2014 Update copyright year for re2c generated files Update copyright year to 2014 Update copyright year for re2c files as well Fix patch for bug #67436 fix failed test Fix test on modern distro where old unsecure algo are disabled in openssl config. Testing recent algo should be enough to check this function. Added tests for bug 67436 Fixed wrong XFAIL test - already fixed Fix typo in Bug #67406 NEWS entry Fix typo in Bug #67406 NEWS entry ... Conflicts: Zend/zend_compile.c ext/session/session.c ext/standard/array.c ext/standard/http_fopen_wrapper.c tests/classes/bug63462.phpt
| * | | | Merge branch 'httponly-cookies' of https://github.com/mj/php-srcAndrea Faulds2014-06-121-9/+2
| |\ \ \ \
| | * | | | Remove usage of pointless COOKIE_SET_COOKIE constant.Martin Jansen2014-05-181-1/+1
| | | | | |
| | * | | | Streamlining of cookie handling in ext/session and setcookieMartin Jansen2014-05-061-8/+1
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up until now the session cookie used "HttpOnly" to indicate cookies only available through HTTP while setcookie() used "httponly". The relevant RFC 6265 claims that case does not matter for this token, but only explicitely mentions "HttpOnly". Thus this seems like a logical choice when streamlining the code. Also the setcookie implementation now uses the same string constants as the session extension for other tokens like Max-Age or the domain attribute. This change poses a slight risk of backwards incompatibility in places where people deliberately ignore chapter 5.2.5 of RFC 6265 and perform case-sensitive checks for the HttpOnly attribute.
* | | | | Merge branch 'master' into phpngDmitry Stogov2014-05-131-1/+1
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (41 commits) fix test - output can be chunked fix test fix test Fixed test for commit 997be125eb0228c5b1b6dd278f617791e71192c6 Add bug fix to NEWS Update UPGRADING according to bug fix fix test improve CURL tests to allow testing without separate server improve CURL tests to allow testing without separate server Fixed bug #67199 mb_regex_encoding mishmash Fix bug #67248 (imageaffinematrixget missing check of parameters) Fix bug #67247 spl_fixedarray_resize integer overflow fix news add tests stuff to README Updated NEWS Fix Linux specific fail in error traces (cherry-picked and fix for bug #67245) Linux apparently does not like memcpy in overlapping regions... - Fixed off-by-one in phar_build (patch by crrodriguez at opensuse dot org) - Move checking - Fixed missing NULL check in SimpleXMLElement::xpath() - Fixed missing NULL check ... Conflicts: ext/bz2/bz2.c ext/gd/gd.c ext/mbstring/php_mbregex.c ext/session/tests/031.phpt ext/simplexml/simplexml.c ext/spl/spl_fixedarray.c
| * | | | Fix typoMartin Jansen2014-05-061-1/+1
| |/ / /
* | | | Refactoring wddx (incompleted, is there any one use it? )Xinchen Hui2014-05-111-1/+1
| | | |
* | | | Make they are in the same style of Z_ISREFXinchen Hui2014-05-031-12/+12
| | | |
* | | | Split IS_BOOL into IS_FALSE and IS_TRUEDmitry Stogov2014-04-301-1/+1
| | | |
* | | | Merge mainstream 'master' branch into refactoringDmitry Stogov2014-04-261-72/+45
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During merge I had to revert: Nikita's patch for php_splice() (it probably needs to be applyed again) Bob Weinand's patches related to constant expression handling (we need to review them carefully) I also reverted all our attempts to support sapi/phpdbg (we didn't test it anyway) Conflicts: Zend/zend.h Zend/zend_API.c Zend/zend_ast.c Zend/zend_compile.c Zend/zend_compile.h Zend/zend_constants.c Zend/zend_exceptions.c Zend/zend_execute.c Zend/zend_execute.h Zend/zend_execute_API.c Zend/zend_hash.c Zend/zend_highlight.c Zend/zend_language_parser.y Zend/zend_language_scanner.c Zend/zend_language_scanner_defs.h Zend/zend_variables.c Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/date/php_date.c ext/dom/documenttype.c ext/hash/hash.c ext/iconv/iconv.c ext/mbstring/tests/zend_multibyte-10.phpt ext/mbstring/tests/zend_multibyte-11.phpt ext/mbstring/tests/zend_multibyte-12.phpt ext/mysql/php_mysql.c ext/mysqli/mysqli.c ext/mysqlnd/mysqlnd_reverse_api.c ext/mysqlnd/php_mysqlnd.c ext/opcache/ZendAccelerator.c ext/opcache/zend_accelerator_util_funcs.c ext/opcache/zend_persist.c ext/opcache/zend_persist_calc.c ext/pcre/php_pcre.c ext/pdo/pdo_dbh.c ext/pdo/pdo_stmt.c ext/pdo_pgsql/pgsql_driver.c ext/pgsql/pgsql.c ext/reflection/php_reflection.c ext/session/session.c ext/spl/spl_array.c ext/spl/spl_observer.c ext/standard/array.c ext/standard/basic_functions.c ext/standard/html.c ext/standard/mail.c ext/standard/php_array.h ext/standard/proc_open.c ext/standard/streamsfuncs.c ext/standard/user_filters.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re main/php_variables.c sapi/phpdbg/phpdbg.c sapi/phpdbg/phpdbg_bp.c sapi/phpdbg/phpdbg_frame.c sapi/phpdbg/phpdbg_help.c sapi/phpdbg/phpdbg_list.c sapi/phpdbg/phpdbg_print.c sapi/phpdbg/phpdbg_prompt.c
| * | | Revert "Implement Bug #54649 Create session_serializer_name()"Yasuo Ohgaki2014-03-131-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 678ec306557f61bf54b6df454387e7d9c3f50de5. Conflicts: ext/session/tests/session_serializer_name_basic.phpt
| * | | Revert "Implemented Request #11100 (session_gc() function)."Yasuo Ohgaki2014-03-131-38/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 54a42f0d0cf85fe0c032009b1f601427ae1c8566. Conflicts: ext/session/tests/session_gc_basic.phpt