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
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
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
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
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
Christoph Michael Becker
8c7cec965e
Merged revision(s) 346849 from phpdoc/en/trunk/language/types/string.xml:
...
Add opening PHP tag
Patch provided by Csirmaz Bendegúz.
........
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346851 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 12:00:46 +00:00
Christoph Michael Becker
fd5464bb1c
Add opening PHP tag
...
Patch provided by Csirmaz Bendegúz.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346849 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 09:23:06 +00:00
Tyson Andre
578f5f3744
fix typos in language reference
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346847 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 05:16:33 +00:00
Christoph Michael Becker
d371c0ab53
Nowdocs treats backslashes literally
...
This integrates user note 123533.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346613 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-21 11:01:23 +00:00
Christoph Michael Becker
3cc52069e2
Refer to intdiv()
...
Based on a patch provided by an anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346580 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-09 18:05:27 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
e4bf37c420
Replaced an example of negative indices in arrays with an example of negative indices in strings for the page on the String type.
...
--
Provided by anonymous 83124 ()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342556 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-07 11:58:15 +00:00
Pieter Hordijk
af3c002df8
Fixed duplicate word
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342445 c90b9560-bf6c-de11-be94-00142212c4b1
2017-05-04 08:34:49 +00:00
Andrey Gromov
d820976d6d
Typos. From "files in progress"
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342440 c90b9560-bf6c-de11-be94-00142212c4b1
2017-04-30 07:08:06 +00:00
Jiří Pudil
86d8c6800b
Fix #74296 : add documentation for iterable pseudo-type and is_iterable()
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342265 c90b9560-bf6c-de11-be94-00142212c4b1
2017-04-08 17:03:13 +00:00
Andrey Andreev
028513e94b
Document PHP 7.2 deprecations as the result of https://wiki.php.net/rfc/deprecations_php_7_2
...
Also, simplify the first paragraph of 'Traditional assertions' in assert() docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342126 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-14 11:30:59 +00:00
Christoph Michael Becker
0ade9d91c1
Fix #65852 : Wrong documentation about NAN comparison
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341793 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-28 16:32:58 +00:00
Christoph Michael Becker
66b2a057a0
Explain that pseudo-types can't be used in userland
...
Patch provided by Bart van der Wal.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341438 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-23 15:49:12 +00:00
Maciej Sobaczewski
95bdd6883b
Another round of PHP 4 content removal (mostly inline mentions)
...
Review is welcome
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341282 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-05 10:17:07 +00:00
Christoph Michael Becker
a66ee8dc56
Fix grammar, add markup, remove PHP 4 info
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341143 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-25 16:32:05 +00:00
Christoph Michael Becker
b7e2253079
Document support for negative indices in simple variable parsing syntax
...
Cf. <https://github.com/php/php-src/pull/2144 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340479 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-14 12:42:37 +00:00
Christoph Michael Becker
1b08ec49bf
Fix broken invalid example
...
We also add a valid example, as suggested by Andrey Gromov.
Furthermore we move the unrelated paragraph below the examples.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340379 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-08 09:49:02 +00:00
Christoph Michael Becker
59ea89792d
There is no 2**31 byte restriction regarding the string length anymore for 64-bit
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340324 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-05 14:22:23 +00:00
Christoph Michael Becker
3ec69d212d
Fix broken example
...
Heredoc terminators must not be indented. Pointed out by rjhdby.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340223 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-28 12:36:54 +00:00
Christoph Michael Becker
d225d89995
Update manual wrt. < https://wiki.php.net/rfc/negative-string-offsets >
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340032 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-14 11:53:33 +00:00
Christoph Michael Becker
68199788a9
Fix docs wrt. bug #71572
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340031 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-14 11:10:13 +00:00
Christoph Michael Becker
1b5a19a7b4
Fix #72430 : [] operator not supported for strings
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340030 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-14 10:56:07 +00:00
Bob Weinand
5e4630858d
Resources hold handles, not handlers (which are governed by the individual functions operating on them)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339952 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-29 20:15:27 +00:00
Christoph Michael Becker
69c0c0c9ed
Document behavior of array dereferencing scalar values
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339937 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-25 11:41:19 +00:00
Bob Weinand
55f05f668b
Fix last commit, * is indeed not an addition...
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339899 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-18 10:19:53 +00:00
Bob Weinand
7d646ff064
Changing the example from + to *, as arrays have special behavior when added…
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339898 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-18 00:20:21 +00:00
Christoph Michael Becker
0b626f05d2
Improve fix of #69234 as suggested by salathe
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339475 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-24 10:25:58 +00:00
Christoph Michael Becker
49cdb0085e
Fix #69234 : Escaped single quotes within double quotes not recognized
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339469 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-23 23:57:55 +00:00
Fábio Luciano Nogueira de Góis
d98f67b5c6
updating manual
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339405 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-19 20:31:19 +00:00
Christoph Michael Becker
eeb2bef9bb
Fix #53614 : Strings variable parsing - problematic example among complex syntax examples
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339345 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-14 13:42:53 +00:00