Commit graph

2125 commits

Author SHA1 Message Date
Christoph Michael Becker
1403073198 Types of pass-by-ref parameters are not checked on return
Cf. <http://news.php.net/php.internals/103599>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346309 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-12 17:17:36 +00:00
Christoph Michael Becker
6398de67ed Remove more PHP 4 related info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346158 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-04 01:12:11 +00:00
Christoph Michael Becker
9093ce1bc6 More PHP 4 related content removal
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346157 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-03 17:41:59 +00:00
Christoph Michael Becker
2fd5de559f Fix wording
Inspired by a patch provided by Kasper Franz.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346150 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-03 15:16:16 +00:00
Christoph Michael Becker
7ee0da6a02 Fix #75449: Ignored return type for abstract methods, defined in traits
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346114 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-28 12:41:43 +00:00
Christoph Michael Becker
add41695ca Document nullable return types
Based on a patch provided by Massimo Naccari.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346044 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-26 12:32:50 +00:00
Christoph Michael Becker
0c78bb07f5 Fix error level
Cf. <https://3v4l.org/P2iuQ>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346031 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-22 18:10:01 +00:00
Christoph Michael Becker
5c58791fed Fix #77172: convert error on receiving variables from external sources
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346017 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-19 13:11:21 +00:00
Christoph Michael Becker
74a8bfdfce Add missing xml:id
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346012 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-18 11:15:45 +00:00
Christoph Michael Becker
6f439ae86a Fix #77148: No mention of __FUNCTION__ being self-referential inside a closure
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345983 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-14 14:25:43 +00:00
Christoph Michael Becker
4284b55c35 Fix example output
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345964 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-07 14:14:32 +00:00
Christoph Michael Becker
ac33a4e791 Fix #77053: Invalid "continue" handling change in PHP 7 is undocumented
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345956 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-05 16:20:12 +00:00
Christoph Michael Becker
638e03e226 Fix #77100: Inconsistent behavior between constants and magic constants
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345954 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-05 14:56:40 +00:00
Christoph Michael Becker
9c902ef963 Document deprecation of undefined constant as bare string fallback
Cf. <https://wiki.php.net/rfc/deprecate-bareword-strings>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345953 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-05 14:09:08 +00:00
Christoph Michael Becker
316f5ea691 Markup identifier regexps as <code> for better readability
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345951 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-05 13:54:03 +00:00
Christoph Michael Becker
ad6c403209 Fix #77034: Casting null to int undefined
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345850 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-19 13:34:25 +00:00
Christoph Michael Becker
fd35a907bb Document new CompileError exception
Based on a patch provided by Huiren Woo.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345757 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-01 16:32:58 +00:00
Christoph Michael Becker
10bf01015f Show inherited properties of core error classes
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345729 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-29 16:20:46 +00:00
Pieter Hordijk
b08540046e Fixed typos in ::class description
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345616 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-09 16:27:09 +00:00
Christoph Michael Becker
067b3bca39 Fix typo
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345614 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-09 14:59:20 +00:00
Christoph Michael Becker
ee08edd259 Clarify that $_GET is not only populated for GET requests
Inspired by a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345582 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-01 11:19:05 +00:00
Christoph Michael Becker
db2ac1420f Use magic constant
Patch provided by Nicolas Lefevre.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345581 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-01 10:57:31 +00:00
Christoph Michael Becker
27b04f9647 Fix example
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345545 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-22 12:40:49 +00:00
Christoph Michael Becker
851a8dd812 Fix typo
Patch provided by hpr895.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345529 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-18 16:54:00 +00:00
Christoph Michael Becker
27c8a224e0 Fix comment
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345447 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-08 13:53:32 +00:00
Pieter Hordijk
d62fd8edf7 each is deprecated, should be removed from the page
https://bugs.php.net/bug.php?id=76673

Provided by anon

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345401 c90b9560-bf6c-de11-be94-00142212c4b1
2018-07-27 10:52:29 +00:00
Christoph Michael Becker
4c276c97e1 Fix #76606: Widespread regression with Serializable interface and legacy __wakeup method
We revert revision 339383.  While this info was valid for PHP 5.1.0 up to
PHP 5.4.28 and 5.5.12, respectively, it is no longer, and as such it's
rather confusing.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345303 c90b9560-bf6c-de11-be94-00142212c4b1
2018-07-11 12:53:51 +00:00
Christoph Michael Becker
482bc1d69c Clarify behavior of generator (functions)
Patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345249 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-30 11:56:50 +00:00
Christoph Michael Becker
c60cc6f3a8 Update wrt. PHP 7.1
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345238 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-29 14:14:24 +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
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