Leo BONAZ
78a11d3ca0
Deprecated non-canonical cast names ( #5016 )
2026-01-09 01:56:03 +00:00
Derick Rethans
e587d0655e
Enable WASM for language.types, and tweak examples
2025-04-09 17:47:37 +01:00
Tim MacDonald
8859c8b96c
Standardise casting spacing ( #2717 )
2024-09-11 14:29:15 +01:00
Mikhail Alferov
c09d80b942
integer.xml: wrap NaN, Inf and -Inf with the literal tag (GH-3716)
...
There are two infinities: positive and negative. I think we should mention both, not just the positive one ;-)
2024-09-05 11:32:10 +02:00
wpdevelopment11
ffc4b7a1c5
Update integer overflow example (GH-3637)
...
And moved the integer division example to a new section, since not related to overflow.
2024-09-03 13:43:04 +02:00
George Peter Banyard
161dde4fe7
Rewrite type section ( #1726 )
...
This commit rewrites the whole type section to (hopefully) be better structured and future proof for further additions to the type system.
* Each type now gets their individual page instead of being shoved in the type declaration page.
* A type system page is added which describes PHP's type system, regardless if it is possible to declare the type in userland or not. Therefore, the type declaration page only has information related to writing type declarations in userland.
* The description of strict_type and the type coercion is moved into the type juggling page.
* Remove outdated information in string implementation section
* Add paragraph about using non string in string context can throw
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
2022-11-30 15:39:41 +00:00
Sergey Panteleev
754641d8dd
[PHP 8.1] Document incompatible float to int implicit conversions ( #1528 )
...
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com >
Co-authored-by: George Peter Banyard <girgias@php.net >
2022-04-28 11:57:41 +01:00
cmp
085c38d45e
PHP 8.1: Update integer docs for new octal notation
...
Closes GH-1091.
2021-11-13 11:00:05 +01:00
George Peter Banyard
d494ffa4d9
Add a page about numeric strings
...
Closes GH-215
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351700 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-27 15:56:30 +00:00
Christoph Michael Becker
86e6094e86
Use canonical type names
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351133 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:39:04 +00:00
George Peter Banyard
cdaea04215
Remove mention of PHP 5 in Language Reference section
...
This does not cover the OOP nor Error sections, but everything else should be covered
Closes GH-156
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351112 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-31 19:13:58 +00:00
Christoph Michael Becker
411c8ecee0
Update info regarding max integer size on 64bit Windows
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350156 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-15 10:02:46 +00:00
Christoph Michael Becker
b03dfce3fd
Fix #79302 : Support for underscores in numbers not documented
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349427 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-14 16:18:30 +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
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
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
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
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
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
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
2891a305f1
Document behavior of NaN/Inf to int casts
...
As of PHP 7.0.0 this results in int(0); formerly it has been undefined.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339291 c90b9560-bf6c-de11-be94-00142212c4b1
2016-06-03 13:28:47 +00:00
Thomas Punt
fb3920c122
Resolve doc bug #69583
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338443 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-08 22:52:27 +00:00
Andrea Faulds
f10d35baab
Update integer docs for PHP 7: not 32-bit on Windows, PHP_INT_MIN exists
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337994 c90b9560-bf6c-de11-be94-00142212c4b1
2015-10-13 15:39:15 +00:00
Pasindu De Silva
b9e7cd2534
Updated PHP 7 octal handling
...
--
Provided by Thomas Punt
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337102 c90b9560-bf6c-de11-be94-00142212c4b1
2015-07-03 19:00:29 +00:00
Christoph Michael Becker
a706ea6af5
fixed typos, grammar, expression
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336939 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-13 22:22:45 +00:00
Adam Harvey
67cf4f3786
Clarify the integer situation on 64 bit Windows.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333785 c90b9560-bf6c-de11-be94-00142212c4b1
2014-06-13 17:57:04 +00:00
Adam Harvey
7c2c57dddc
Clarify the uniqueness and stability of casting resources to string/integer.
...
It was pointed out on comp.lang.php that the existing wording was unclear on
the point of what in the resource->string casting behaviour shouldn't be relied
upon (whether it was not guaranteed that the string is unique, or just that the
exact format of the string is subject to change). I've also added a paragraph
to the integer page noting what a resource->integer cast results in.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332894 c90b9560-bf6c-de11-be94-00142212c4b1
2014-02-26 21:23:36 +00:00
Joe Watkins
f3c9e2b61f
#55378 add a binary example in docs, original bug resolved for some time.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331688 c90b9560-bf6c-de11-be94-00142212c4b1
2013-10-05 08:26:14 +00:00
Yannick Torres
33040b3b1b
Typo found by online editor user
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331135 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-16 09:25:19 +00:00
Justin Martin
371a80eac9
Replaced Zahlen literal with character entity. Fixes bug #54088 .
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320469 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-05 23:26:30 +00:00
Stanislav Malyshev
89ea22350e
document binary notation
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@318142 c90b9560-bf6c-de11-be94-00142212c4b1
2011-10-16 01:56:25 +00:00
Karoly Negyesi
a92b44ef99
Use the correct Unicode character for the integer set
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@307334 c90b9560-bf6c-de11-be94-00142212c4b1
2011-01-10 09:13:26 +00:00
Daniel Egeberg
afd3e0543e
Removed useless warning about a bug in versions prior to 4.1.0.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299538 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-20 22:24:07 +00:00
Adam Harvey
11c3994c5a
Update to the integer type page to make it clearer how overflow works on 32-
...
and 64-bit systems and what the critical thresholds are. Prompted by
bug #51274 , although not an actual fix for it.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@296829 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-26 06:50:18 +00:00
Jakub Vrana
423eabfd02
Usual maximum on 64-bits (bug #47718 )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290980 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-19 11:30:09 +00:00
Torben Wilson
af4410a7e1
Normalized the sgml-default-dtd-file local-variable line for those
...
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Nilgün Belma Bugüner
04077dd209
fixed properties
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283798 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 06:17:58 +00:00
Gwynne Raskind
0feec568a3
Major cleanup of language.types.*; mostly grammatical work, some markup and WS fixes, no new content. The title 'Resource' was changed to 'Resources' for consistency; a TOC regen is needed to reflect it.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@253468 c90b9560-bf6c-de11-be94-00142212c4b1
2008-02-21 18:43:17 +00:00
Gwynne Raskind
847b241496
Some markup structure and whitespace fixes. This stye of markup is more consistent with DB 5. No content changes.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@253176 c90b9560-bf6c-de11-be94-00142212c4b1
2008-02-18 22:32:54 +00:00
Gwynne Raskind
123738b556
step two: massive whitespace updates. types.xml (containing the entire description of PHP types) was a very large file, and has now been split in several files in en/language/types. No content has been changed whatsoever at this point. This commit fixes whitespace across the board in all the files, and contains no other changes.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@252928 c90b9560-bf6c-de11-be94-00142212c4b1
2008-02-14 20:50:33 +00:00
Gwynne Raskind
5b09b299d6
step one of updating language.types: split into separate files (types.xml) was getting too big
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@252927 c90b9560-bf6c-de11-be94-00142212c4b1
2008-02-14 19:57:17 +00:00