Máté Kocsis
adf11d8d64
Revert "Add documentation for default constructors - part 1 ( #2089 )" ( #2121 )
2022-12-28 08:50:09 +01:00
Máté Kocsis
0510540984
Add documentation for default constructors - part 1 ( #2089 )
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
2022-12-19 21:40:26 +01:00
Máté Kocsis
4b8dfa8d22
Fix casing of XMLParser class name ( #1795 )
2022-09-02 18:02:37 +02:00
othercorey
e700973701
Fix return null description for xml_error_string()
...
Closes GH-1685.
2022-07-08 11:28:13 +02:00
Christoph M. Becker
f5992156e6
Fix XMLParser example for more recent PHP versions ( #1662 )
...
The example uses the `$parser` as array index, but that implicit
conversion to integer already raises a notice as of PHP 7.0.0, and
outright fails as of PHP 8.0.0, since the `$parser` is an object now.
Since there doesn't appear a good reason for `$depth` to be an array
which supports different parsers, we change it to an integer, what also
simplifies the example.
This basically integrates user note 127199.
2022-07-01 15:12:48 -05:00
Rowan Tommins
99d758bd25
Improve documentation of string encoding conversion functions
...
- Move utf8_encode and utf8_decode into the strings chapter, since
they were moved out of the XML extension in 7.2
- Recommend mb_convert_encoding, iconv, and UConverter::transcode
when mentioning encoding in passing
- Document UConverter::transcode, based on examination of source
and upstream ICU docs
- Make the language used more consistent, e.g. "convert" rather
than "encode"/"decode", "encoding" rather than "charset"
Closes GH-1418.
2022-04-04 12:24:24 +02:00
Kamil Tekiela
52dc204a77
Add note about NOP code
...
Closes GH-933.
2021-09-14 15:09:52 +02:00
Sergey Panteleev
8cdc6621f9
Remove PHP 5, 7 references ( #563 )
...
- array functions
- datetime functions
- mbstring functions
- strings functions
- var functions
- xml functions
- json functions
2021-05-16 22:07:40 +03:00
thinkverse
4dcf5a9f13
Fix xml_get_current_byte_index notes section before changelog
2021-04-30 19:14:49 +01:00
thinkverse
0d0c319c7d
Fix xml_set_default_handler return values section out-of-order
2021-04-30 19:14:49 +01:00
Sergey Panteleev
f9c4a68ef4
Removed references to PHP 5, PHP 7.0 ( #548 )
2021-04-26 11:46:55 +03:00
Rowan Tommins
4138897b12
Remove or rewrite examples using implode("", file(...)) ( #523 )
...
This is a weirdly inefficient way of getting a file's content into
a string, and I'm not sure why anyone would think it was a good
idea.
2021-04-12 22:33:56 +02:00
Yoshinari Takaoka
4bc958f807
Added PHP 8 into versions.xml for xml based on stubs.
...
Closes GH-390.
2021-01-24 15:43:41 +01:00
Christoph Michael Becker
0c9c2dd669
Generate some standard methodsynopses based on stubs
...
Cf. <https://github.com/php/doc-en/pull/289 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352191 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 19:26:31 +00:00
Christoph Michael Becker
5f8047c12b
Document new opaque classes which replace resources
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351932 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 22:11:40 +00:00
Christoph Michael Becker
3db49ee0a3
XmlParser has been renamed to XMLParser
...
Although class names are case-insensitive, we better document the proper case.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351792 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-30 16:03:37 +00:00
Christoph Michael Becker
e41806c30b
Revert revision(s) 351724 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@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
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
Jakub Vrana
c80da7c04a
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
c0b9e812f0
Mark up constants as such
...
Maybe some day we'll get automatic linking of constants – one may dream.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351473 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-21 16:55:20 +00:00
Christoph Michael Becker
a8f6a0f119
XML parsers are objects as of PHP 8.0.0
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351472 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-21 16:53:39 +00:00
Christoph Michael Becker
5ce1caaf99
Generate xml methodsynopses based on stubs
...
Based on a patch contributed by Máté Kocsis <kocsismate@woohoolabs.com >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351469 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-21 14:06:31 +00:00
Christoph Michael Becker
b95d28e6ec
Fix return types
...
Functions which return false on failure should state that in their
signature as well.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +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
Yoshinari Takaoka
294be84ef1
followed rev. 348566 fix
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348570 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-18 16:34:07 +00:00
Yoshinari Takaoka
c90b300562
fixed typo. ( s/heeded/needed/ )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348557 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-17 15:08:02 +00:00
Kalle Sommer Nielsen
b2a306dc88
Remove PHP4 style constructor usage
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347090 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-28 08:04:59 +00:00
Christoph Michael Becker
86d2bbd19b
Fix #77610 : xml_parser_create and xml_parser_create_ns do not document failure return
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346823 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-13 16:04:08 +00:00
Christoph Michael Becker
89232cebd2
Document xml_set_external_entity_ref_handler() fix
...
Cf. <https://github.com/php/php-src/pull/3596 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345905 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-27 16:24:55 +00:00
Christoph Michael Becker
9ee6e26a20
Document new options supported by xml_parser_get_option()
...
Cf. <https://github.com/php/php-src/pull/3594 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345822 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-16 17:38:47 +00:00
Christoph Michael Becker
4279863b96
Fix #76874 : Documentation of memory leak in Xml Parser
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345634 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-14 12:09:43 +00:00
Christoph Michael Becker
c94bd1e13a
Add example for chunked reading and parsing
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344608 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-02 00:10:58 +00:00
Christoph Michael Becker
ec7b74c91b
Fix #61542 : xml_parse with invalid attribute returns 1
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344503 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-14 16:17:11 +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
Kalle Sommer Nielsen
bbc9bc8e92
Added a note about utf8_encode() and utf8_decode() is now in the core of PHP, and not ext/xml as of 7.2.0
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343495 c90b9560-bf6c-de11-be94-00142212c4b1
2017-11-29 15:48:01 +00:00
Christoph Michael Becker
47065812c2
Fix #71595 : NS end handler is never called
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341634 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-08 18:41:14 +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
Andrea Faulds
2634ea3b40
Correct copy-paste error
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340507 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-17 16:15:13 +00:00
Andrea Faulds
838941f6cc
Improve utf8_decode() and utf8_encode() documentation
...
This rewrites the descriptions of both to clarify that they convert
specifically between ISO-8859-1 and UTF-8, adds a warning about
confusion with Windows-1252, and adds helpful "See also" links to
other character set conversion functions. Additionally, the
behaviour for invalid characters in utf8_decode() was clarified,
and the description of the UTF-8 binary encoding was removed.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340506 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-17 14:31:39 +00:00
Christoph Michael Becker
1ff86a66e6
Fix #72793 : xml_parser_free leaks mem when execute xml_set_object
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339867 c90b9560-bf6c-de11-be94-00142212c4b1
2016-08-12 10:46:29 +00:00
Christoph Michael Becker
cdab70215c
minor fixes by anon users
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338911 c90b9560-bf6c-de11-be94-00142212c4b1
2016-04-04 16:14:46 +00:00
Adam Harvey
41d8e7ffe4
Update version information to include PHP 7.
...
This was mostly done programmatically, and is likely wrong for a small number
of functions. We may have to wait for bug reports, unless someone wants to
review this by hand. Basic efforts were made to avoid adding "PHP 7" to
functions that were removed in PHP 5.x (x > 0) and PHP 7, but there are
undoubtedly still issues.
In case we're still using Docbook for PHP 8, I've uploaded the script that I
wrote to do this to GitHub at
https://github.com/LawnGnome/php-doc-version-migrator .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338406 c90b9560-bf6c-de11-be94-00142212c4b1
2016-01-04 21:40:07 +00:00
Adam Harvey
28fe0b00a9
Change the XML parser external entity example, as suggested by clicky.
...
Fixes doc bug #68368 (Insecure example).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335165 c90b9560-bf6c-de11-be94-00142212c4b1
2014-11-07 10:59:29 +00:00
Simion Onea
14af302c9c
Making the XML definition consistent across the entire project.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334762 c90b9560-bf6c-de11-be94-00142212c4b1
2014-09-05 07:44:07 +00:00
Dejan Marjanovic
9905374cd0
Replace single quotes with double for (string) <initializer> unless string contains double quotes
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333317 c90b9560-bf6c-de11-be94-00142212c4b1
2014-04-14 23:48:06 +00:00
Kalle Sommer Nielsen
f5ba33b597
Add a see also link to utf8_decode()
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333158 c90b9560-bf6c-de11-be94-00142212c4b1
2014-03-29 15:20:04 +00:00
Phil Sturgeon
8ea1f0e33d
Fixed bug #65442
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332465 c90b9560-bf6c-de11-be94-00142212c4b1
2013-12-18 21:02:00 +00:00
Jakub Vrana
1634a88641
Delete redundant <!-- Membership: -->
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330340 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-23 17:38:21 +00:00
Davide Pastore
1d86eec448
Small correction
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327378 c90b9560-bf6c-de11-be94-00142212c4b1
2012-08-30 13:41:38 +00:00