Christoph M. Becker
c4de1a0604
Revert "Show info about PHP error reporting"
...
This reverts commit f3e5da139a
, because
it was accidentally committed.
Cf. <https://github.com/php/doc-en/pull/465 >.
2021-03-19 01:54:04 +01:00
Christoph M. Becker
dde64312eb
PHP 7.0 was silent about pseudo-numeric string juggling
2021-03-19 01:28:04 +01:00
kestutisv
f3e5da139a
Show info about PHP error reporting
...
Reader needs to be informed about PHP errors.
2021-03-19 01:09:29 +01:00
Eric Stern
661e99fa9d
Correct Closure::bindTo failure return value
...
Closes GH-492.
2021-03-18 21:51:46 +01:00
Sara Golemon
6a89105fdc
Annotate return types for Throwable/Exception/Error as possibly returning null
2021-03-18 14:42:35 +00:00
George Peter Banyard
fc26164b4b
Hot fix for comment of last line
2021-03-11 13:51:06 +00:00
George Peter Banyard
68c0fcdb9e
Add example of a float string as an array key
...
The behaviour is different from a float key
Also reorder to put this example closer to the numeric keys
Use single quotes consistently
Closes GH-487
2021-03-11 13:49:51 +00:00
Alex Erohin
1075568da5
Fix Ticks usage example
...
Clarify where tick events are generated, and delete the "equivalent
behavior" example which calls tick_handler() manually, because that
example isn't really suitable.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-464.
2021-03-11 14:18:10 +01:00
Rowan Tommins
ede9d209f6
Clarify the syntax and role of arguments for echo and print
...
- Rather than implying that parentheses are optional, make clear
that they are never part of the syntax for these keywords.
- Don't spend so many examples on different types of string.
- Do include examples of non-string arguments.
- Add a note with additional examples of how parentheses interact.
- Don't refer to either construct as "function-like", instead use
the term "expression" consistently.
- Additional tidying to make the pages more consistent with each
other.
- Add "print" to the list of language constructs which are
documented as functions.
- Remove mention of what PHP versions below 5.4 did with short
echo tags.
2021-03-10 14:37:20 +01:00
Larry Garfield
77a77dbd29
Note that all visibilities of trait abstract methods are supported now
...
Closes GH-476.
2021-03-10 14:14:18 +01:00
Christoph M. Becker
80958298c0
Fix wording in example
...
The evaluation order is irrelevant; what matters is the associativity.
This amends commit bcd666c7d0
.
2021-03-08 16:19:09 +01:00
Michael Voříšek
bcd666c7d0
Fix ternary precedence
...
We also fix the misleading note about the ternary operator's
associativity.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-470.
2021-03-08 16:11:18 +01:00
Yoshinari Takaoka
8e7cce7b98
fixed Static resolution operator (::) link, point to paamayim-nekudotayim page.
2021-03-05 23:21:40 +09:00
Yoshinari Takaoka
33e300f8f0
added missing UnhandledMatchError version info.
2021-03-05 22:17:32 +09:00
George Peter Banyard
9ee9eccf45
Refactor OO section part 2
...
Some misses from the first time
Signed-off-by: Larry Garfield <larry@garfieldtech.com>
Closes GH-329
2021-03-04 17:06:22 -06:00
Christoph M. Becker
3e08a8aae6
Remove obsolete PHP 5 related info from ini.core and related pages
2021-02-24 14:32:08 +01:00
Alex Erohin
529359031b
Add final example includes all variations of type casting and overwriting
...
Closes GH-450.
2021-02-22 17:48:22 +01:00
Christoph M. Becker
3ba291b86a
Slightly improve previous commit
...
Sorry, forgot to do right away.
2021-02-22 17:25:33 +01:00
Alex Erohin
3801e08ff8
Added protected property example for Object To Array conversion
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-453.
2021-02-22 17:10:05 +01:00
George Peter Banyard
871df69f47
Explain what consistitutes a more specific type
...
Closes GH-457
2021-02-18 18:00:47 +00:00
George Peter Banyard
12b1d4704e
Cleanup and update docs related to @ operator
...
Also fix part of the set_error_handler() docs
Closes GH-441
2021-02-18 16:31:56 +00:00
Christoph M. Becker
4dfe5cc41e
Fix #77889 : URL in Location header not used
2021-02-17 14:28:06 +01:00
Yoshinari Takaoka
ae956cd678
Named Arguments are also supported.
2021-02-15 23:28:58 +09:00
Sebastian Schendel
46efcedd4a
Allow Throwable for $previous param
...
In current PHP versions the Exception-class seems to allow all Throwable
values for its constructor's $previous param instead of only values of
type Exception.
Closes GH-442.
2021-02-13 15:39:45 +01:00
George B
86951bfac9
Update attributes.xml: Adjustments to grammar
...
Closes GH-445.
2021-02-13 14:55:49 +01:00
Christoph M. Becker
b3d7fa5000
Add separate section for magic constants
...
It is pretty confusing to only have a section about "Magic constants"
with the xmlid `language.constants.predefined` but to start that
section with a paragraph about predefined constants.
2021-02-12 14:22:24 +01:00
Rowan Tommins
99b8716337
Remove incorrect note about autoloading in interactive CLI
...
This was apparently added in response to a bug report against PHP
5.2 [https://bugs.php.net/bug.php?id=40775 ]. Testing suggests the
limitation was removed at least as long ago as 5.6, and probably
earlier.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes-GH444.
2021-02-11 23:28:27 +01:00
George Peter Banyard
783fbc2001
Add exponentiation assignment operator to corresponding table
2021-02-03 01:46:50 +00:00
Michael Voříšek
fc4e5c27fa
Add nullable to return type for Serializable::serialize
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-423.
2021-01-28 11:14:29 +01:00
Christoph M. Becker
e55a1ca950
goto labels are case-sensitive
...
This integrates user note 125733.
2021-01-28 11:10:30 +01:00
Tyson Andre
02f3bf5717
$this is not a **reference** to the called object.
...
It's the value of the called object.
Additionally, in php 7.1, it was no longer possible to reassign $this
indirectly through a reference.
Even in php 7.0, I'd think it would initially be more like a value
(that references can be created from) than
a reference, but I may be misunderstanding what this means or what $this
did in php 5 or older.
Closes GH-380.
2021-01-24 15:56:27 +01:00
grimskin
572c672502
Small grammar fix for the Attributes docs
...
- using `is` instead of `are` with singular noun - typo fix in word `separated`
Closes GH-370.
2021-01-22 14:05:08 +01:00
USAMI Kenta
ffbe652535
require_once and include are expressions, not statements
...
Closes GH-369.
2021-01-20 14:29:11 +01:00
Lucas Werkmeister
fab81eeee3
Add floats without exponent to numeric string grammar
...
The formal grammar for numeric strings included integers, and
floating-point numbers (decimals) with a mandatory exponent, but not
decimal numbers without exponent.
Closes GH-368
2021-01-20 11:38:41 +00:00
George Peter Banyard
4a7ddddc27
Remove some mentions of register globals
2021-01-16 11:30:04 +00:00
George Peter Banyard
4317fec755
Update method signature section for PHP 7/8
...
Closes GH-321
2021-01-16 09:45:36 +00:00
George Peter Banyard
a9edd62d08
Refactor OO section
...
This mostly consists of removing PHP 5 mentions and rewritting the docs accordingly.
Reviewed by Christoph M. Becker <cmbecker69@gmx.de> and Anna Filina <afilina@gmail.com>
Co-authored-by: Anna Filina <afilina@gmail.com>
Closes GH-277
2021-01-13 04:00:03 +00:00
George Peter Banyard
1822bb3819
Make class type declaration context independent
...
Closes GH-316
2021-01-10 01:40:34 +00:00
George Peter Banyard
f0d6f41604
Add 'parent' type declaration
2021-01-09 01:25:56 +00:00
George Peter Banyard
a8aca5fb3f
Typo in code output
2021-01-09 00:46:23 +00:00
Christoph M. Becker
c4ac84bedb
Fix #68540 : Documenation about checking SimpleXML needs clarification
2021-01-08 12:07:40 +01:00
Nilgün Belma Bugüner
d60cfe1bfd
chmod -x
2021-01-06 15:22:17 +03:00
Henri Larget
646e6eb3e3
fix typo in arithmetic assignment operators
...
Closes GH-313
Signed-off-by: George Peter Banyard <girgias@php.net>
2021-01-05 22:54:51 +00:00
Christoph M. Becker
4f04bd50ed
Fix #80570 : Incorrect named argument name for the nested function
2021-01-01 14:57:42 +01:00
Kamil Tekiela
4774ba9dba
Incorrect value in include. Patch provided by anonymous 992 via edit.php.net
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352283 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-29 17:55:33 +00:00
Kamil Tekiela
72880807af
Fix double full stop in several places.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352282 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-29 17:43:02 +00:00
Christoph Michael Becker
ef81c708fa
Fix #80486 : Undocumented backward incompatible change between 7.4.8 and 7.4.9
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352241 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-28 14:07:20 +00:00
George Peter Banyard
e132ef28fd
Fix Attribute constant name in title
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352158 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-21 16:17:18 +00:00
Christoph Michael Becker
8ebad33b9c
Fix #69962 : php://temp / php://memory don't support stat()
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352123 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-18 12:44:03 +00:00
George Peter Banyard
d152dc1021
Revert unintentional whitespace change
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352101 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-15 18:07:23 +00:00