Mikhail Alferov
1ad4e2d550
setcookie.xml: add tags for the parameter and function names ( #3517 )
...
* setcookie.xml: add the `parameter` tag for the `value`
* setcookie.xml: add the `function` tag to the fn `setcookie`
2024-07-07 15:13:33 +01:00
Mikhail Alferov
d4b1a88096
setcookie.xml: amend the argument type to bool ( #3516 )
...
In strict types mode: `Fatal error: Uncaught TypeError: setcookie(): Argument #6 ($secure) must be of type bool, int given`
2024-07-07 14:16:28 +01:00
Gina Peter Banyard
5c1ccc6e24
[skip-revcheck] Whitespaces
2024-01-18 12:17:39 +00:00
Ben Morss
cefe817294
Document approach to set cookie attributes not known to setcookie() ( #3101 )
...
* Modified setcookie() doc to mention that people could use header() to use additional parameters - and created a relevant example in header()
* Split lines so that none are longer than 80 characters.
* Removing the word "you", changing "parameter" to the more commonly used "attribute"
---------
Co-authored-by: Gina Peter Banyard <girgias@php.net >
2024-01-18 12:14:18 +00:00
Christoph M. Becker
5d6153f896
Fix GH-2049: setcookie() datetime format change in 8.2 is undocumented
2023-01-07 12:19:03 +01:00
Christoph M. Becker
a64d62cdd7
Fix GH-1663: setcookie documentation recommends using mktime()
...
We improve the somewhat confusing mixing of time() and mktime(), and
also reword to avoid personalization.
2022-07-07 19:10:16 +02:00
Christoph M. Becker
d829c7d11f
Closes GH-1209: Named argument in setcookie function called $expires instead of $expires_or_options
2021-12-17 15:35:31 +01:00
Christoph M. Becker
730cbb0a7a
Fix GH-1192: setcookie() description is not updated
...
The exact date in the past may not matter too much, so we are
unspecific here.
And no, you can't set `$value` to false, because the parameter expects
a string.
2021-12-10 10:59:35 +01:00
Máté Kocsis
7f99d5e488
Remove some unnecessary methodsynopsis role attributes ( #913 )
2021-09-14 14:37:29 +02:00
Sergey Panteleev
f33c301789
Fix issues in Network directory
...
Part of #658
2021-06-10 12:30:36 +03:00
George Peter Banyard
4a7ddddc27
Remove some mentions of register globals
2021-01-16 11:30:04 +00:00
Christoph Michael Becker
728b7a9bc0
Fix #80449 : setcookie doc improvement
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351968 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-09 12:17:23 +00:00
Christoph Michael Becker
83f2f6fa3a
Fix #80209 : setcookie() is not fully RFC 6265 compliant
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350831 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-09 14:35:13 +00:00
Christoph Michael Becker
8e3b1a6c1f
Remove confusing reference to PHP 5
...
One can also use `setrawcookie()` with PHP 7 and 8; it just wasn't
available with PHP 4.
We also remove the now obsolete note that `httponly` is available as of
PHP 5.2.0.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350830 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-09 14:20:49 +00:00
Christoph Michael Becker
9af43469f4
Remove more changelog entries, mostly from PHP 5.2 era
...
Patch contributed by Sobak <msobaczewski@gmail.com >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Karoly Negyesi
5f90c8ee0f
warning is correct but it doesnt return null
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350000 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-02 09:12:06 +00:00
Karoly Negyesi
dc9b239186
document setcookie options keys
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349997 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-01 22:21:53 +00:00
Jakub Vrana
0272dc9ba7
Add samesite=None.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348895 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-13 12:27:10 +00:00
Christoph Michael Becker
ffe8f84ec5
Document SameSite cookie attribute support (PHP 7.3.0)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345661 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-20 10:50:01 +00:00
Jakub Vrana
b8758b0605
Use entities in initializer
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343899 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:11:34 +00:00
Christoph Michael Becker
d62d6b01c4
minor fixes by anon users
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338862 c90b9560-bf6c-de11-be94-00142212c4b1
2016-03-31 18:48:08 +00:00
Thomas Punt
c05d218bed
Fix doc bug #71106
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338304 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-18 18:50:14 +00:00
Christoph Michael Becker
c097c5d3ec
no need for $HTTP_COOKIE_VARS anymore;
...
$_REQUEST does not necessarily contain cookies
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337615 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-24 21:34:35 +00:00
Christoph Michael Becker
6fb5cd0a4e
added proper <initializer>s
...
That saves the need to explain how to skip optional parameters.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337614 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-24 21:28:18 +00:00
Adam Harvey
7a35b9c421
Note the addition of a max-age attribute in sent cookies.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330583 c90b9560-bf6c-de11-be94-00142212c4b1
2013-06-21 00:24:51 +00:00
Justin Martin
1e0cb85be7
Updated to reflect that cookies are now governed by RFC 6265 instead of RFC 2109. Closes bug #60026 .
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320317 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-03 20:41:05 +00:00
Justin Martin
0fb8963bfb
Added weasel words to httponly parameter, as per bug #55002 .
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312787 c90b9560-bf6c-de11-be94-00142212c4b1
2011-07-01 23:05:37 +00:00
Jakub Vrana
c2c05e4952
Expire is relative to Date HTTP header
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304220 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-09 20:09:07 +00:00
Jakub Vrana
de5c939b06
Prevent XSS
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304219 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-09 19:56:44 +00:00
Adam Harvey
0616d35712
Fix doc bug #52916 (Reference to old RFC version) by removing the references to
...
the Netscape cookie spec in the parameters section and adding a little more
detail to the domain parameter description on how that parameter should be
structured and is matched.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@303739 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-24 04:06:05 +00:00
Daniel Egeberg
96c9d88bad
Converted to utf-8
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00
Michael Maclean
1c4e52219a
Minor change spotted by mysgroda - ##php on freenode
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293596 c90b9560-bf6c-de11-be94-00142212c4b1
2010-01-15 21:13:25 +00:00
Jakub Vrana
bc93886cd1
Prefer <initializer> before "default is"
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@291316 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-25 15:41:53 +00:00
Torben Wilson
af4410a7e1
Normalized the sgml-default-dtd-file local-variable line for those
...
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Jakub Vrana
0efda2548a
Undocument PHP 3
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288650 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-24 11:02:03 +00:00
Nilgün Belma Bugüner
0dacad8c3d
fixed properties
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283827 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 08:18:07 +00:00
Yannick Torres
7988eb137a
fix markup
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@279806 c90b9560-bf6c-de11-be94-00142212c4b1
2009-05-03 19:20:33 +00:00
Jakub Vrana
5730e7a2fa
Initializers - part 5
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@273648 c90b9560-bf6c-de11-be94-00142212c4b1
2009-01-16 16:14:26 +00:00
Philip Olson
6bbdc5267f
Fixed simple spelling errors
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@271311 c90b9560-bf6c-de11-be94-00142212c4b1
2008-12-16 04:22:48 +00:00
Jakub Vrana
e5ad7310c6
Delete internals (bug #45887 )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268335 c90b9560-bf6c-de11-be94-00142212c4b1
2008-11-05 09:55:00 +00:00
Kalle Sommer Nielsen
44ca5c00c7
* Added missing changelog refsect1
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@268062 c90b9560-bf6c-de11-be94-00142212c4b1
2008-10-31 03:13:34 +00:00
Hannes Magnusson
5cd5661448
Use proper markup for variables
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265362 c90b9560-bf6c-de11-be94-00142212c4b1
2008-08-23 15:40:25 +00:00
Philip Olson
d522d135a1
Removed PHP 3 information from the manual. Goodbye PHP 3, thanks for all the memories!
...
This commit covers many files.
The CVS file phpweb/manual/php3.php will exist to store [most of] this info.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@253274 c90b9560-bf6c-de11-be94-00142212c4b1
2008-02-19 21:45:32 +00:00
Nuno Lopes
496ff91e41
fix bug #42518 : fix typo in see also
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@242075 c90b9560-bf6c-de11-be94-00142212c4b1
2007-09-02 16:36:55 +00:00
Hannes Magnusson
c030e2adf7
Upgrade to DocBook5:
...
- All id attributes are now xml:id
- Add docbook namespace to all root elements
- Replace <ulink /> with <link xlink:href />
- Minor markup fixes here and there
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Mehdi Achour
295e3a2ce8
ref.network: switch to new doc style
...
#: why are (old) debugging and accurate error handling facilities located here ?
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237333 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-10 01:57:09 +00:00
Mehdi Achour
6ceb56fff1
WS, prepare for new doc style
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237331 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-10 01:55:51 +00:00
Jakub Vrana
000de17b6f
Clarify that secure relates to client (bug #40778 )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@232437 c90b9560-bf6c-de11-be94-00142212c4b1
2007-03-23 15:03:09 +00:00
Philip Olson
48af34847f
Removing "autoglobal" in favor of "superglobal" as it's the "official" term.
...
This should not confuse users because superglobal is used about 4x as often
in the manual, and it's what most people say/write. This old term is leftover
from when these auto super global variables were first introduced.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@229400 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-09 07:28:30 +00:00
Hannes Magnusson
61b368a616
Fixed bug#39994 (setcookie() docs don't say what to pass in "expire" to set a session cookie)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@226737 c90b9560-bf6c-de11-be94-00142212c4b1
2007-01-08 10:35:00 +00:00