Commit graph

2086 commits

Author SHA1 Message Date
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
Patrick Allaert
64fb8f6a38 Fixed: doc bug 74727
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342844 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-11 18:49:46 +00:00
Christoph Michael Becker
70fb482c26 Reverted revision(s) 337719 from phpdoc/en/trunk/language/oop5/visibility.xml:
Protected members cannot be accessed by parent classes

-- 
Provided by anonymous 62572 (tunght13488@gmail.com)
........

If we like it or not, that's how it is. See also bug #74932.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342692 c90b9560-bf6c-de11-be94-00142212c4b1
2017-07-21 18:40:37 +00:00
Pieter Hordijk
73c0f9b6d5 Fixed non matching quotes. Fixes #74944
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342676 c90b9560-bf6c-de11-be94-00142212c4b1
2017-07-18 13:10:04 +00:00
Jiří Pudil
1cf8f88730 Fix #74319: add documentation for ArgumentCountError
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342629 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-30 19:45:07 +00:00
Jiří Pudil
0b517ab52a Add multi catch exception handling docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342628 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-30 17:00:19 +00:00
Jean-Sebastien Hedde
db1dd771e1 Added <literal>iterable</literal> to the list of type declarations that may be used in function arguments/return values, as introduced in 7.1.0.
-- 
Provided by anonymous 82584 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342597 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-16 11:50:03 +00:00
Jean-Sebastien Hedde
3f74beaf6b I did a mispell in my previous patch for this section. This intends to fix it.
-- 
Provided by anonymous 83640 (jdomenechbborges@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342576 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-09 12:01:52 +00:00
Christoph Michael Becker
57b593d529 Not all strings containing valid integers are cast to int
This commit includes user note 117129 into the manual.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342559 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-07 15:09:53 +00:00
Jean-Sebastien Hedde
c4910a6ef8 There was a note that has not been updated according implementation of https://wiki.php.net/rfc/generator-return-expressions in PHP 7.0.
-- 
Provided by anonymous 83640 (jdomenechbborges@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342557 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-07 12:10:06 +00:00