Commit graph

2187 commits

Author SHA1 Message Date
Christoph Michael Becker
0119ca9ded Fix build and make desired changes visible
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349319 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 13:39:49 +00:00
Sherif Ramadan
1b3f589696 Add missing language constructs
Take 2


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349318 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 11:55:36 +00:00
Christoph Michael Becker
0cddfa08a4 Merged revision(s) 349310 from phpdoc/en/trunk:
Updating constructs to include eval, echo, and list

........

This can't possibly work, see <https://news-web.php.net/php.doc.cvs/17222>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349313 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 10:51:15 +00:00
Sherif Ramadan
74670c410f Updating constructs to include eval, echo, and list
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349310 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 10:30:27 +00:00
Christoph Michael Becker
dbf319f8b2 Fix #74897: Links to "warning" & "fatal error" have a blank href
Let's be pragmatic, and just use <constant> elements as in the rest of docs,
and hope that PhD will support automatically linking these elements sometime.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349307 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 08:22:42 +00:00
Sherif Ramadan
9ac8f763f2 Reverting revision #349291
I'm going to roll this back since the doc build is currently broken
and I'm not sure if it's my latest commit or an issue with the
build server.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349292 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-03 03:38:24 +00:00
Sherif Ramadan
b68084b35a Fix typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349291 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-03 02:24:04 +00:00
Sherif Ramadan
ae20b4d812 Fix revision #349288
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349290 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-03 02:17:29 +00:00
Sherif Ramadan
4fbfc73b7a Add missing constructs to language reference.
Even though echo, eval, list, and array are all listed under functions
in the manual, they are infact language control structures and should
be indexed here.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349289 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-03 01:58:08 +00:00
Nikita Popov
34f775f6f0 Operator Precedence - Add missing ??=
Patch by SpacePossum.

Closes php/doc-en#47.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349236 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-19 10:21:03 +00:00
Peter Cowburn
9d7bbd34d5 Clarification on interaction between finally and return statements (doc bug #68290)
Patch by Sorin Nunca

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349132 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-05 20:03:54 +00:00
George Peter Banyard
8e00768efc Update doc in regards to being able to throw exceptions in __toString().
-- 
Provided by anonymous 101201 (Arek Pietrzyk)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349020 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-26 10:20:34 +00:00
George Peter Banyard
a123922b53 Remove a mention of PHP 4.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348957 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-20 02:39:19 +00:00
Peter Cowburn
a8cc01634c k
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348562 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-17 20:24:03 +00:00
Christoph Michael Becker
6ccb666358 Fix #78977: Assigning the return value of new is a syntax error instead of deprecated
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348555 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-17 13:17:29 +00:00
Peter Cowburn
a2063d1336 Add oop5 section for covariance and contravariance with examples.
Patch by Tiffany Taylor (credit also to Mark Randall for help with examples)



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348547 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-16 20:40:29 +00:00
Pieter Hordijk
515b704813 Added the 7.3 change to the changelog list
-- 
Provided by anonymous 59531 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348403 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-03 16:40:13 +00:00
Pieter Hordijk
254f1e9c54 Added sentence about continue behavior of continue in switch statement
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348402 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-03 16:30:56 +00:00
George Peter Banyard
0f9d5fdc88 Typo, provided by an anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348385 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-01 12:59:19 +00:00
George Peter Banyard
f94482f07a The current phrasing of the description of the spaceship operator is confusing. This patch moves the "respectively" to the end of the sentence to make the phrasing clearer.
-- 
Provided by anonymous 100956 (douglas@chippy.ch)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348384 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-01 12:55:38 +00:00
Nikita Popov
3fbaa7057b Remove sign from floating point definition
The sign is not part of the number,
it is a separate unary operator.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348072 c90b9560-bf6c-de11-be94-00142212c4b1
2019-09-26 17:11:21 +00:00
George Peter Banyard
298f39a1cf Improve fix for Doc Bug #78581 as per Editor recommendation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348031 c90b9560-bf6c-de11-be94-00142212c4b1
2019-09-21 15:15:07 +00:00
George Peter Banyard
d1a445bc7a Fix Doc Bug #78581 No mention of <?= other than in the chagelog of the PHP tags doc page
Added a paragraph about the short echo tag.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348029 c90b9560-bf6c-de11-be94-00142212c4b1
2019-09-21 14:35:28 +00:00
Christoph Michael Becker
9b5b5b7285 Fix #78464: Abstract may not or cannot be instantiated?
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347912 c90b9560-bf6c-de11-be94-00142212c4b1
2019-09-01 09:25:34 +00:00
Nikita Popov
eafbe3d6d1 Remove [ from operator precedence table
This is not a real operator and having it here is confusing.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347901 c90b9560-bf6c-de11-be94-00142212c4b1
2019-08-27 19:49:21 +00:00
Christoph Michael Becker
528e97348f Remove unsuitable example part
This example is about integer literals, but -123 is not a literal but rather an expression.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347812 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-30 15:54:31 +00:00
George Peter Banyard
ebc32dec7b changes null coalescing operator link and title
-- 
Provided by anonymous 99001 (vike2000@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347764 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-19 10:36:09 +00:00
George Peter Banyard
1319917d0f Added links, entities, and some slight rewording.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347744 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-14 00:34:55 +00:00
George Peter Banyard
b41b0af93b Typos and sentence structure.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347742 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-13 23:45:44 +00:00
George Peter Banyard
dfb5bfc4f5 Partial fix to Doc Bug #77176
Added changes to PHP's OOP model starting from PHP 7.0.
Hope I didn't miss anything and phrasing may be improved but based on the previous format of changelog. This may be (should?) need some tweaks, please advise.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347741 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-13 20:18:58 +00:00
Nikita Popov
901fc6375e Fix generator xrange() example
Patch by KodyWiremane.

Closes php/doc-en#4.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347735 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-13 10:42:35 +00:00
Karoly Negyesi
0c97611503 expand overloading docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347517 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-30 20:13:02 +00:00
George Peter Banyard
417eda23c6 Removing mention of WDDX as it's been deprecated.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347511 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-29 15:38:39 +00:00
Christoph Michael Becker
faabf4e74a Fix #78048: Weakref extension and PHP 7.4 weak references might cause confusion
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347473 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-23 08:17:25 +00:00
George Peter Banyard
0853ac9168 Fix Copy and Paste mistake (nested <code> tags)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347270 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-17 15:21:07 +00:00
George Peter Banyard
6187696fb4 Updated REGEX of valid symbols in various instances
Fixes Doc Bug #75814

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347269 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-17 15:17:19 +00:00
Christoph Michael Becker
b20fb5e69d Fix #77901: declare tick is now local for each PHP file
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347260 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-17 10:13:47 +00:00
Christoph Michael Becker
e392d576ed Fix wording
“i.e” is the abbreviation of “id est” (that means); 
“e.g.” is the abbreviation of “exempli gratia” (for example).

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347079 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-27 17:35:07 +00:00
Christoph Michael Becker
a36065c3de Increment/decrement operators don't affect booleans
Cf. <http://news.php.net/php.internals/104933>

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347062 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-26 13:51:27 +00:00
George Peter Banyard
1b5dc67e5c Removed various notions about PHP 4 in variable language spec;
Fix Doc Bug #77725

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347045 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-24 19:49:33 +00:00
George Peter Banyard
9134a81215 Fix changelog order
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347044 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-24 19:48:24 +00:00
George Peter Banyard
af6fdf16ab Remove PHP 4 and 5.0.0 mentions.
This includes changelogs but also some paragraphs and notes which mention PHP 4.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347043 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-24 19:38:53 +00:00
Peter Cowburn
4fe372927e negative zero is falsy (fix bug #77778)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347033 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-21 19:26:14 +00:00
Christian Weiske
f8c13c6050 Link to error_get_last() which is the recommended replacement.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347009 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-13 21:20:25 +00:00
Kalle Sommer Nielsen
1ae887f71c Class constants may not be declared as final either
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346977 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-07 12:05:13 +00:00
Oliver Albers
ffe8a35861 Fix typos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346964 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-03 12:40:54 +00:00
Christoph Michael Becker
9a9be2c2b0 Fix #77679: Operator Precedence table does not contain yield and yield from
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346925 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-28 15:08:41 +00:00
Nikita Popov
00c86b65a1 Remove note about Serializable::serialize() acting as destructor
This doesn't make any sense. serialize() has nothing to do with destructors and __destruct() will still be called on the object, once it is destroyed.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346869 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-21 10:46:28 +00:00
Christoph Michael Becker
df6198b7a2 Improve example wrt. subgenerator name
This integrates user note 123631.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346863 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-21 07:54:04 +00:00
Christoph Michael Becker
b234cd852d Add opening PHP tag
Patch provided by Csirmaz Bendegúz.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346852 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 12:03:39 +00:00