Commit graph

226 commits

Author SHA1 Message Date
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
Andrea Faulds
603d5c848b Fix modulus -> modulo, link division and modulo ops to eachother
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340175 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-25 15:05:45 +00:00
Andrea Faulds
41f08deefe Mention intdiv() alongside division operator
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340174 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-25 14:54:20 +00:00
TAKAGI Masahiro
078b995559 Fix example title
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339727 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-26 22:44:07 +00:00
Christoph Michael Becker
2355dfd77b Fix : Null coalesce operator example has if/else wrong way round
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339720 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-26 10:24:52 +00:00
Peter Cowburn
4b256089a5 fix build
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339713 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-25 09:52:36 +00:00
Bob Weinand
c6dccad7d7 Follow-up for last commit, missing information about the isset-like behavior
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339711 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-25 08:51:14 +00:00
Bob Weinand
4522603799 Move ?? null coalesce into its own section as it needs a few notes similar to ternary
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339710 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-25 08:43:12 +00:00
Christoph Michael Becker
d8669a0bd4 Document unary plus operator
Despite having two *downvoted* notes about the unary plus operator 
(108105 and 116868), we document it in the manual (and delete the notes).

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339585 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-08 00:10:36 +00:00
Christoph Michael Becker
f81df0ec7a Add example wrt. +,- and . having the same precedence
Albeit the behavior should be clear from the precendence table, Antistone 
posted a note about this two years ago which has got 67 votes and there 
have been two replies to this note which also have been upvoted, so we 
integrate this information into the manual, and delete the notes.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339582 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-07 18:41:06 +00:00
Christoph Michael Becker
a8b24da312 fixed (Comma operator does not behave as operator)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338860 c90b9560-bf6c-de11-be94-00142212c4b1
2016-03-31 16:11:48 +00:00
Christoph Michael Becker
acc7076441 fixed (Invalid precedence order of => (T_DOUBLE_ARROW) operator)
Actually, T_DOUBLE_ARROW isn't an operator.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338859 c90b9560-bf6c-de11-be94-00142212c4b1
2016-03-31 16:06:29 +00:00
Thomas Punt
f99e5eb6c7 Resolve doc bug
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338305 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-18 19:23:09 +00:00
Andrea Faulds
2bea2e045b Correct "null coalesce" to "null coalescing"
When I originally named the "Null Coalesce Operator" RFC, I made this mistake. But the manual doesn't need to repeat it.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338220 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-07 14:49:18 +00:00
André Luis Ferreira da Silva Bacci
f8732f08c5 Revert wrong modification.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338190 c90b9560-bf6c-de11-be94-00142212c4b1
2015-11-27 14:46:55 +00:00
André Luis Ferreira da Silva Bacci
0c64ee7008 Typo.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338187 c90b9560-bf6c-de11-be94-00142212c4b1
2015-11-27 14:17:57 +00:00
Bob Weinand
fbee8b3790 Fixed bug (Document new PHP7 operators under Operator Precedence)
Added spaceship and null-coalesce

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338021 c90b9560-bf6c-de11-be94-00142212c4b1
2015-10-22 12:33:31 +00:00
Bob Weinand
e4d33b9bb9 Extend the existing array operator example to illustrate the behavior of +=.
-- 
Provided by anonymous 62668 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338020 c90b9560-bf6c-de11-be94-00142212c4b1
2015-10-22 12:27:56 +00:00
Adam Harvey
620a91cf5e Update new operator documentation.
This includes removing some of the examples from the migration guide: that
needs to be punchy. We can reinsert them later in the operators reference if
they're of use.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337361 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-09 01:16:37 +00:00
Pasindu De Silva
3339c9e3f2 Fix programlisting, missing role
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337137 c90b9560-bf6c-de11-be94-00142212c4b1
2015-07-10 18:11:40 +00:00
Pasindu De Silva
bd6ce019dc Added Spaceship examples ( PHP 7 Alpha 2 )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337131 c90b9560-bf6c-de11-be94-00142212c4b1
2015-07-09 18:48:03 +00:00
Bob Weinand
a1b1f46c5c Backticks can be used in double-quoted strings, it just has no special interpolation meaning there
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336837 c90b9560-bf6c-de11-be94-00142212c4b1
2015-05-24 00:29:10 +00:00
Pasindu De Silva
becbd9a3bc Minor fix
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336689 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-30 00:12:13 +00:00
Pasindu De Silva
b566a4deb8 Fix typo in coalesce operator
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336688 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-30 00:09:30 +00:00
Pasindu De Silva
b607484b9d Added PHP version to coalesce operator
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336687 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-29 23:40:37 +00:00
Peter Cowburn
9b3dd4b20b less lying about spaceship operator return values
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336683 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-29 19:24:24 +00:00
Pasindu De Silva
397dbbaef7 Added Null Coalesce Operator
https://wiki.php.net/rfc/isset_ternary

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336682 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-29 17:21:39 +00:00
Peter Cowburn
fe67d205e2 condense spaceship operator result description
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336601 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-20 14:08:54 +00:00
Pasindu De Silva
f113bb15c9 added php version to Spaceship operator
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336596 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-19 15:25:56 +00:00
Peter Cowburn
d4545271e0 Add spaceship operator to operators list
-- 
Patch by Pasindu (ppasindud@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336563 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-17 14:18:14 +00:00
Tjerk Anne Meesters
6fc4e3e44b Changed associativity of power operator
Added the power assignment operator



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334668 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-29 23:28:23 +00:00
Adam Harvey
79eb03f7bf Manual ** 5.6. (Or, in other words, documented the new ** operator.)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333679 c90b9560-bf6c-de11-be94-00142212c4b1
2014-06-01 22:43:11 +00:00
Chris Wright
7e378e46ef Improved information on behaviour of bitwise operators on string operands
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333319 c90b9560-bf6c-de11-be94-00142212c4b1
2014-04-15 09:46:11 +00:00
Philip Olson
11749f70a3 Ternary is an expression, not a statement. Patch by Alok Menghrajani.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332978 c90b9560-bf6c-de11-be94-00142212c4b1
2014-03-13 00:22:52 +00:00
Joe Watkins
f002c9de8f fix operator precedence table with literal tags
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332327 c90b9560-bf6c-de11-be94-00142212c4b1
2013-12-10 09:07:12 +00:00
Joe Watkins
6586f45780 fix make operator precedence table more readable (commas and "and")
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332319 c90b9560-bf6c-de11-be94-00142212c4b1
2013-12-09 11:15:38 +00:00
Bob Weinand
35787490f2 Fix bug (Syntax error in example code)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332228 c90b9560-bf6c-de11-be94-00142212c4b1
2013-11-29 21:22:54 +00:00
Yasuo Ohgaki
825561668c Fixed typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332126 c90b9560-bf6c-de11-be94-00142212c4b1
2013-11-15 22:09:31 +00:00
Yasuo Ohgaki
84692172ca Improve comparison description. Add example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332116 c90b9560-bf6c-de11-be94-00142212c4b1
2013-11-15 04:05:46 +00:00
Nikita Popov
6d1db2739b Forgot to remove duplicate example from precedence docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331577 c90b9560-bf6c-de11-be94-00142212c4b1
2013-09-29 10:17:33 +00:00
Nikita Popov
e28fdbe16c Improve operator precedence docs regarding evaluation order
Associativity has nothing to do with evaluation order and we do not give any guarantees regarding that.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331484 c90b9560-bf6c-de11-be94-00142212c4b1
2013-09-25 11:59:47 +00:00
Yasuo Ohgaki
095653e0ce session.auto_start cannot work at runtime and never worked. Code is fixed also.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331110 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-10 09:38:25 +00:00
Sara Golemon
95664a500f Revert Yasuo's incorrect change regarding undefined behavior
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330986 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-20 04:03:07 +00:00
Yasuo Ohgaki
1f540fa961 Add missing echo in example code comment
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330985 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-20 03:27:05 +00:00
Yasuo Ohgaki
84d43cf819 Fix typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330984 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-20 03:21:38 +00:00
Yasuo Ohgaki
c6b0a258de Remove untrue comment from operator precedence
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330983 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-20 03:17:00 +00:00
Karoly Negyesi
4520ea8d7f note that increment/decrement does not affect arrays, objects and resources
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330975 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-19 06:58:20 +00:00
Karoly Negyesi
0e6ad6673c objects are greater than arrays.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329723 c90b9560-bf6c-de11-be94-00142212c4b1
2013-03-10 10:08:53 +00:00
Sherif Ramadan
95f54b87fd Clarifying operator precedence docs on meaning of non-associativity and how this affects operator parsing.
Fixes bug 


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329164 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-16 15:56:24 +00:00
Karoly Negyesi
50c959fc2e Clarifying what happens when instanceof tests non-objects.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327594 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-10 11:54:51 +00:00