Commit graph

338 commits

Author SHA1 Message Date
Christoph Michael Becker
4754397753 Revert revision 351727 from phpdoc/en/trunk:
Document false and null return types

Cf. <https://news-web.php.net/php.doc.cvs/17645>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b Document false and null return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00: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
ac20506c2a Added documentation for the get_resource_id function
Closes GH-227.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351584 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-24 17:52:54 +00:00
Christoph Michael Becker
75a1a31dc0 Fix #80401: Inaccurate documentation on gettype (for Integer)
We also fix the markup (this is not about types, but rather about
literal strings), and use a more appropriate `<simplelist>`.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351521 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-23 01:59:21 +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
Christoph Michael Becker
9e0f03ac35 Proper variadics instead of pseudo variadics
We markup variadic parameters with the `rep=repeat` standard DocBook
attribute of `<methodparam>`, and use proper variable names instead of
using the old pseudo variable name `...`.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351129 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 11:17:26 +00:00
Christoph Michael Becker
ccfd117024 is_float() is deprecated and removed
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350756 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-04 11:06:52 +00:00
Christoph Michael Becker
3e15d2894f Remove more changelog entries, mostly from PHP 5.4 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350656 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:15:17 +00:00
Christoph Michael Becker
7f569e1f17 Remove more changelog entries, mostly from PHP 5.3 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
be5b0f33a1 Remove more changelog entries, mostly from PHP 5.1 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350653 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:45:57 +00:00
Christoph Michael Becker
5ebd63a4b5 Reflect removal of functions dropped in minor or patch releases
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350652 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:40:03 +00:00
Christoph Michael Becker
53bdffa6b9 Removed some of the PHP5 changelogs
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350645 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:32:19 +00:00
Christoph Michael Becker
468e71623d Fix #80110: object with __invoke method is considered callable
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350580 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-17 10:11:40 +00:00
Christoph Michael Becker
e1438a020b Document the __serialize/__unserialize magic in PHP 7.4
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349590 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-01 23:15:30 +00:00
Christoph Michael Becker
d4e3166e8c Typo fix
Patch provided by Larry Garfield.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349581 c90b9560-bf6c-de11-be94-00142212c4b1
2020-04-01 07:08:43 +00:00
Christoph Michael Becker
bb2cebd575 is_numeric() accepts leading whitespace
Cf. bug #67719.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349477 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-17 09:03:45 +00:00
Christoph Michael Becker
9ddc8b6946 Fix broken changelog and wrong version number
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349260 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-28 14:00:14 +00:00
Nikita Popov
68601c39b9 var_export: Mention 7.3.0 change for stdClass
Patch by hikari-no-yume.

Closes php/doc-en#49.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349259 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-28 10:40:04 +00:00
Pieter Hordijk
f491e90003 Added conversion values for true and false in the examples area
-- 
Provided by anonymous 99841 (chris@env.ms)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348405 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-03 16:44:44 +00:00
George Peter Banyard
d693ad157f Adapting some anonymous user contributions.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348339 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-24 05:12:07 +00:00
George Peter Banyard
9651001802 Use type tag for resource
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348211 c90b9560-bf6c-de11-be94-00142212c4b1
2019-10-24 09:49:47 +00:00
Christoph Michael Becker
8088fbe7ef Fix parameter name
Based on a patch provided by jasny@php.net.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347807 c90b9560-bf6c-de11-be94-00142212c4b1
2019-07-27 11:25:45 +00:00
George Peter Banyard
652367cc9d Remove PHP 4 and 5.0.0 mentions.
This includes changelogs but also some paragraphs and notes which mention PHP 4.

These should be the last ones from the core extensions.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347577 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-08 15:52:28 +00:00
George Peter Banyard
cec5c740b5 Fix Doc Bug #74842
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347047 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-24 20:06:21 +00:00
Christoph Michael Becker
a2148bbab3 Improve wording
Patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346966 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-03 13:49:34 +00:00
Christoph Michael Becker
18da52a535 Clarify serialize() exceptions
Inspired by a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346043 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-26 12:02:22 +00:00
Christoph Michael Becker
b6d3b6bc18 Fix “typo”
Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345219 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-26 17:27:50 +00:00
Christoph Michael Becker
87054c1c43 Refer to the (unset) casting section
Inspired by a patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345151 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-16 12:34:51 +00:00
Christoph Michael Becker
ac51aaac3b Fix changelog entries
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344866 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-27 15:08:50 +00:00
Christoph Michael Becker
700a269f55 Add missing version info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344864 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-27 14:11:00 +00:00
Christoph Michael Becker
6b099ab00d RFC: https://wiki.php.net/rfc/is-countable
-- 
Provided by anonymous 88937 (carusogabriel34@gmail.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344863 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-27 13:54:04 +00:00
Jakub Vrana
64642ea9c3 Fix ID of unserialize_callback_func INI entry
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344075 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 20:43:44 +00:00
Jakub Vrana
b8758b0605 Use entities in initializer
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343899 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:11:34 +00:00
Jakub Vrana
331fbfeac5 Use bool instead of boolean in return types
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343889 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:50:10 +00:00
Peter Cowburn
c32d648fbb add deprecation info to (unset) example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343843 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-15 22:07:42 +00:00
Christoph Michael Becker
f7800a7c1d Clarify definition of *values* which are considered empty
$var; is neither a declaration nor an empty value. The docs
already clearly points out that unitialized variables are
considered to be empty.

See also <http://news.php.net/php.doc/969386870>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343811 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-10 14:44:17 +00:00
Kalle Sommer Nielsen
1e0e81afe2 Documented the new behavior for is_object() and __PHP_Incomplete_Class as of PHP 7.2.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343504 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-29 16:49:20 +00:00
Kalle Sommer Nielsen
402dc11916 Minor cosmetics to the resource (closed) return value
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343499 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-29 16:01:47 +00:00
Kalle Sommer Nielsen
cdf21a5326 Added a note about closed resources with gettype()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343493 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-29 15:39:00 +00:00
Dan Ackroyd
7be4d7b94a Adds example for null for is_numeric.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343341 c90b9560-bf6c-de11-be94-00142212c4b1
2017-10-30 17:25:27 +00:00
Jean-Sebastien Hedde
b17ddfcfd7 --
Provided by anonymous 85257 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342955 c90b9560-bf6c-de11-be94-00142212c4b1
2017-08-28 11:46:08 +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
Christoph Michael Becker
b5de5957f5 Fix #73702: get_resource_type returns NULL instead of false
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341792 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-28 15:27:52 +00:00
Christoph Michael Becker
d29db0f6dd Remove misleading version info
The behavior with regard to private and protected properties is the same
for PHP 5 and 7, and PHP 4 doesn't matter for the manual anymore.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341643 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-11 22:53:47 +00:00
Christoph Michael Becker
a258daf0ac Fix #73836: unserialize() with $options['allowed_classes'] = null behaves different
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341547 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-30 13:37:09 +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
683e141d3e Simplify example
Patch provided by anon user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341235 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-30 12:07:08 +00:00
Christoph Michael Becker
bc655954b9 Fix typos (patches provided by anon users)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340224 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-28 12:54:16 +00:00
Yasuo Ohgaki
153a97e29d Move warning to inside description. There are too many users use unserialize() unsafe way. Add validation note
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340014 c90b9560-bf6c-de11-be94-00142212c4b1
2016-09-10 06:18:23 +00:00