Commit graph

24578 commits

Author SHA1 Message Date
Christoph Michael Becker
5d29ab74d0 Add phpdbg documentation to the manual
We start by running docgen, and fixing and fleshing out the documentation
by what we can get by skimming the phpdbg.c code.  We also fix and update
the version information.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345181 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-22 12:59:54 +00:00
Christoph Michael Becker
802fb7ce9f Fix #76516: shuffle() has a note about undefined sorted order
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345180 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-22 10:18:33 +00:00
Christoph Michael Becker
761bd0ba2d Some of the aliases for encodings were marked as such ("(alias:...)") but others weren't (just "(...)"). Added "alias:" to those missing it for (a) consistency and (b) at least one person (see user notes) didn't understand that "(...)" represented an alias.
-- 
Provided by anonymous 92003 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345173 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-19 15:10:34 +00:00
Christoph Michael Becker
8e301bd33b Fix #76496: Missing changelog entry about 7.2.0
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345172 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-19 15:08:12 +00:00
Christoph Michael Becker
e5273c2500 Fix #76500: fputcsv() is ignoring the value FALSE
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345171 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-19 15:02:34 +00:00
Christoph Michael Becker
0ea2fa3e03 Document compact() change for 7.3
Based on a patch provided by Gabriel Caruso.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345170 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-19 14:55:51 +00:00
Christoph Michael Becker
57177f4159 Fix #76490: Documentation of Directory::read() makes no sense
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345164 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-18 10:54:23 +00:00
Christoph Michael Becker
22c8f44c1a Fix #69273: bad context option name given
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345163 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-18 10:52:06 +00:00
Christoph Michael Becker
308c398d63 Flesh out the doc skeleton
Based on a patch provided by Norbert Fuksz.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345159 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-17 13:17:45 +00:00
Christoph Michael Becker
290080bd4d Fix #76486: hrtime() return value descriptions unclear
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345156 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 21:24:48 +00:00
Christoph Michael Becker
1f61f60d77 Fix #72109: SplFileObject::__construct() not mentioned in class synopsis
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345155 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 16:43:16 +00:00
Christoph Michael Becker
6e2faf8ef3 Fix #76265: The order of the same priority is not maintained
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345154 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 15:40:40 +00:00
Christoph Michael Becker
4025d1cf5e Revert r339623
The proper term here is indeed “sift”, not “shift”.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345153 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 15:27:05 +00:00
Christoph Michael Becker
4bff852af9 The added, but not filled in functions that pertain to the socket_addrinfo_* set.
-- 
Provided by anonymous 57081 (dave@mudsite.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345152 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 12:46:25 +00:00
Christoph Michael Becker
87054c1c43 Refer to the (unset) casting section
Inspired by a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345151 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 12:34:51 +00:00
Christoph Michael Becker
9f9ed4225c Add missing changelog entry
Based on patch provided by Konrad Papała.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345150 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 12:26:26 +00:00
Christoph Michael Becker
aaeb51d919 Exception implements Throwable
While this is only the case as of PHP 7.0.0, we nonetheless make it
the default, and change the note regarding the former state.

Based on a patch provided by Artem Ostretsov.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345149 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 12:20:45 +00:00
Christoph Michael Becker
4b3211634a Clarify return value
Based on patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345148 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 12:14:32 +00:00
Christoph Michael Becker
02424f4d2a Update example to avoid the deprecated each()
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345141 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-15 12:09:29 +00:00
Christoph Michael Becker
654f983667 Update wrt. new “object” type declaration
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345140 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-15 11:56:43 +00:00
Christoph Michael Becker
9cc4767b2d What's in a name?
The Macintosh operating systems changed their name a few times since
version 10. We follow suite, and use the proper name whenever we refer
to a certain version, and use “macOS” as generic term, since “Mac OS X”
and “OS X” versions are already unsupported, or loose support at the end
of this year.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345139 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-15 11:50:40 +00:00
Nikita Popov
b7b8f77a69 Fix type of getPartsIterator key_type parameter
Also document values it accepts

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345135 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-13 22:00:49 +00:00
Christoph Michael Becker
2f491ab5e1 Fix #76473: PHP_INT_MAX doesn't mention 64-bit value
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345134 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-13 21:29:18 +00:00
Christoph Michael Becker
f0a1e153d5 Document new hrtime() function
Based on patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345130 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-13 16:59:02 +00:00
Christoph Michael Becker
f8cde5e160 Fix #76471: PHP Warning: ftp_get() expects at least 4 parameters, 3 given
We add the missing changelog entries.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345129 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-13 16:03:25 +00:00
Christoph Michael Becker
406fe415fb Fix typos
Patch provided by Nicolas Dermine.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345128 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-13 15:30:31 +00:00
Christoph Michael Becker
15aac5e453 Namespace names are case-insensitive
This integrates user notes 113597 and 117905.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345127 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-13 15:26:05 +00:00
Nikita Popov
cccd50e8ed Remove redundant note in count() docs
Follows from general PHP behavior (undefined variable reads as NULL) and discusses something nobody should be doing in the first place. This was probably more relevant ten years ago than it is now.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345126 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-13 14:15:05 +00:00
Mark Jones
4a826d6fa4 Fix bug #71817: openssl_dh_compute_key typo in example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345120 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-11 18:08:15 +00:00
Christoph Michael Becker
c275d0e5ab Document image2wbmp() deprecation
Cf. <https://wiki.php.net/rfc/image2wbmp>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345114 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-10 10:45:11 +00:00
Christoph Michael Becker
92e25e152b Document *actual* behavior
See <https://wiki.php.net/rfc/image2wbmp>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345112 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-09 21:13:30 +00:00
Christoph Michael Becker
a00e5d589d Fix #76432: Incorrect documentation of Phar constants
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345111 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-09 20:59:26 +00:00
Christoph Michael Becker
6f653eff39 Apply consistent switch indentation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345106 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-08 11:35:36 +00:00
Christoph Michael Becker
4cf779d048 Fix switch code tabs in example
This is consistent with all but one example in the switch man page, and also PSR-2.

-- 
Provided by anonymous 91782 (dunhamjared130@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345105 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-08 11:20:15 +00:00
Christoph Michael Becker
61a86c26f7 This patch changes the confusing use of ~ in the float documentation, to the word "approximately" to avoid ambiguousness with the ~ bitwise NOT operator.
-- 
Provided by anonymous 91768 (php@madara.ninja)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345104 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-08 11:15:07 +00:00
Christoph Michael Becker
ae43d9892e Document SO_REUSEPORT
Patch provided by Michał Brzuchalski

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345096 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 12:20:13 +00:00
Christoph Michael Becker
7923a7bbfb Add markup
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345095 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 11:32:38 +00:00
Christoph Michael Becker
2985b542a0 Now it is not clear what the default value for parameter flag does.
This patch explains it

-- 
Provided by anonymous 91702 (mailofjordi@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345094 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 11:27:31 +00:00
Christoph Michael Becker
7bea6c9d9d We use generated links to the documentation, and pm.max_children directive has an incorrect link because of the typo.
-- 
Provided by anonymous 91704 (eugene.a.kazakov@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345093 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 11:23:46 +00:00
Christoph Michael Becker
a39d6f9134 Fix #74176: Add changelog entry
The properties have already been documented via r345090.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345092 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 11:17:48 +00:00
Christoph Michael Becker
c0020be1f4 Add missing version info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345091 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 11:10:52 +00:00
Christoph Michael Becker
62d7e3d656 The DatePeriod class has a few properties that are public, but are not documented, this patch documents them
-- 
Provided by anonymous 55921 (php@duncanc.co.uk)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345090 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 11:08:43 +00:00
Christoph Michael Becker
ac05776cd0 Document sapi_windows_vt100_support()
Patch provided by Michele Locati.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345089 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 10:56:42 +00:00
Christoph Michael Becker
000d2fa763 Fix syntax error in example
Patch provided by Pushkar Anand.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345088 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 10:55:45 +00:00
Christoph Michael Becker
2c34c3abf5 Fix typo
-- 
Provided by anonymous 91720 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345087 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-04 10:54:41 +00:00
Jeremy Mikola
0efcae4759 Do not repeat constant values in <varlistentry> records
Constant values are already reported in <fieldsynopsis> blocks. Furthermore, literal values should not appear within <term><constant> tags.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345085 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-01 17:21:55 +00:00
Jeremy Mikola
518443c9c7 Describe previous behavior in UTCDateTime constructor changelog
https://jira.mongodb.org/browse/PHPC-536


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345084 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-01 16:55:52 +00:00
Yasuo Ohgaki
29a76b5333 Fix typo.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345081 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-30 00:39:20 +00:00
Yasuo Ohgaki
15793ac539 Some users consider calling session_name() after session_start() is perfectly valid. However it is not valid and allows crash and misbehaviors.Add changelog for it. Remove bogus session_register() description.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345080 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-30 00:27:40 +00:00
Christoph Michael Becker
dff09f6780 Fix grammar and improve wording
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345077 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-29 14:50:40 +00:00