Commit graph

2095 commits

Author SHA1 Message Date
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
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
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
b3e793af14 Fix #53934: The negative PHP_INT_MAX is incorrectly converted to float
Actually, PHP does not support integer literals with explicit signs;
instead these are regarded as identity and negation operators, respectively.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345073 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-29 13:41:01 +00:00
Christoph Michael Becker
f559b71c79 Improve wording
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345055 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-25 14:50:18 +00:00
Nikita Popov
75fb719c3c Remove "functionally identical" foreach examples
Especially now that this is throwing deprecation warnings, this should not be in the main foreach docs.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345048 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-25 13:59:28 +00:00
Christoph Michael Becker
c72fae7864 In the "Internal (built-in) functions" I changed mysql_connect to mysqli_connect
-- 
Provided by anonymous 90612 (bounya9mehdi@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344927 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-02 22:04:49 +00:00
Christoph Michael Becker
fddb6fb793 Array to object cast: numeric keys are accessible as of PHP 7.2.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344924 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-02 21:51:50 +00:00
Christoph Michael Becker
8c23c19594 Fix typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344807 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-22 21:34:19 +00:00
Christoph Michael Becker
e8984166a3 Remove obsolete PHP 4 related info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344806 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-22 21:31:08 +00:00
Christoph Michael Becker
0018149a06 Fix example title
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344802 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-22 17:25:22 +00:00
Christoph Michael Becker
35e70db263 Remove obsolete PHP 4 info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344801 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-22 17:23:47 +00:00
Nikita Popov
d2f332fa94 Remove outdated note on return by ref with parentheses
While writing return($a) may be stupid, it will still work fine.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344782 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-21 10:10:38 +00:00
Christoph Michael Becker
459c0e1de4 Fix #75414: tcp_nodelay option for stream context
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344750 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-19 17:04:53 +00:00
Christoph Michael Becker
fb9b5ebe0e Don't refer to removed or obsolete extensions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344618 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-04 15:09:29 +00:00
Christoph Michael Becker
dea92cb699 Fix typo
Patch provided by Elliot Ward.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344560 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-25 13:50:08 +00:00
Christoph Michael Becker
9fadd7d16a Fix #76104: Generator::next() causes yield to return null
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344528 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-16 17:33:42 +00:00
Christoph Michael Becker
0d15d9602e Partially fix #76102: language.types.integer - binary structure missing
This fixes the part of the bug report which is not related to the
translation.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344518 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-15 15:31:27 +00:00
Christoph Michael Becker
0fe00e3574 Minor doc improvements
Patches provided by anonymous users.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344469 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-09 12:44:59 +00:00
Pieter Hordijk
aa8396c551 Grammar tweak
-- 
Provided by anonymous 87588 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344274 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-16 15:19:15 +00:00
Pedro Magalhães
852f4696f1 Consistently use 4 spaces for tabs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344091 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-30 09:58:53 +00:00
Jakub Vrana
64642ea9c3 Fix ID of unserialize_callback_func INI entry
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344075 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 20:43:44 +00:00
Jakub Vrana
7c50ead1ed Fix versions based on parsed php-src
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344068 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 15:23:17 +00:00
Jakub Vrana
920901f85f Remove >= 5.0.0 from versions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344032 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 09:04:35 +00:00
Jakub Vrana
3d1b737b25 Document that Exception extends Throwable (fix #75865)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344005 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-28 13:19:59 +00:00
Jakub Vrana
331fbfeac5 Use bool instead of boolean in return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343889 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:50:10 +00:00
Jakub Vrana
dd07341fae Remove trailing fullstop in <refpurpose>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343888 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:34:22 +00:00
Peter Cowburn
bc914daf98 foo(new foobar()) raises a notice as of PHP 7.0.7 (doc bug #75844)
This is due to the fixing of #72038

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343850 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-18 19:24:11 +00:00
Joe Watkins
f84c11fb10 reword empty string operator warning for clarity
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343719 c90b9560-bf6c-de11-be94-00142212c4b1
2017-12-30 07:12:01 +00:00
Christoph Michael Becker
d17c8485fd Fix typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343679 c90b9560-bf6c-de11-be94-00142212c4b1
2017-12-20 18:36:48 +00:00
Andrey Gromov
169d4be91b typo by anonymous
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343575 c90b9560-bf6c-de11-be94-00142212c4b1
2017-12-05 10:18:28 +00:00
Kalle Sommer Nielsen
cfa9e1bb71 Documented the remaining new functionality to ext/zip as of PHP 7.2.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343502 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-29 16:30:58 +00:00
Kalle Sommer Nielsen
4fc282f33e Added a note about the deprecation of the (unset) cast in 7.2.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343494 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-29 15:44:34 +00:00
Philip Olson
660a9ebe1f Mentioned $_SERVER equivalent for $argc/$argv, and added see also links
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343409 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-13 20:45:28 +00:00
Andrey Gromov
ead385635a fix by anon
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343316 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-28 08:25:00 +00:00
Pieter Hordijk
5e40a5a43d Added missing PHP open tags to examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343230 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-11 13:20:05 +00:00
Peter Cowburn
ea8575f778 add ids for wrappers refsects
To address the problem of HTML ids (for permalinks) like:
refsect2-wrappers.php-unknown-unknown-unknown-unknown-unknown-descriptios

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343104 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-18 19:19:12 +00:00
Remi Collet
1d95721863 Revert (7.0 restriction only for define)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343089 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-14 11:46:33 +00:00
Remi Collet
b0329daf2d Array constant only allowed in 7+
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343088 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-14 10:38:27 +00:00
Christoph Michael Becker
7c0b830e98 Fixed bug #75202 (Interfaces shouldn't be able to define a constructor)
We document that interfaces allow constructors to be declared.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343082 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-13 15:07:42 +00:00
Christoph Michael Becker
8070abb4fe const constants are always case-sensitive
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343078 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-12 11:27:09 +00:00
Andrea Faulds
995eaea864 Update bitwise shift warning for PHP 7.0 changes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343009 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-05 18:14:58 +00:00
André Luis Ferreira da Silva Bacci
e9366ee458 Fix svn:eol-style, svn:keywords and svn:mime-type on XML files. No content change, but some revision numbers will upgrade.
See https://github.com/phpdocbrbridge/bridge/blob/master/src/revbumper.php for automatic tool for translations.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342988 c90b9560-bf6c-de11-be94-00142212c4b1
2017-09-02 18:42:15 +00:00
Christoph Michael Becker
a61987978d Fix #75104: yet another old-style constructor
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342905 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-22 12:46:23 +00:00
Christoph Michael Becker
f3341279fd Fix #75104: Example 3 Heredoc string quoting example
Since the manual doesn't apply to PHP 4 anymore, there is no need
to use old-style constructors in general examples.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342904 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-22 10:06:18 +00:00
Thomas Punt
7b3702d15c Fix the build
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342845 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-11 21:18:58 +00:00