1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-24 15:52:15 +01:00
Commit Graph

189 Commits

Author SHA1 Message Date
Christian Weiske
dca2a8354f Document special handling for "&" in SimpleXml::addChild()
See the comments section for that page: https://www.php.net/manual/en/simplexmlelement.addchild.php
2026-03-05 14:33:07 +01:00
Máté Kocsis
c142be8117 Fix class constant references inside parameter default values (#5084) 2026-01-09 09:50:14 +01:00
Mikhail Alferov
bdc3ab31fb examples.xml Amend the case in the class name (#4794) 2025-10-15 15:32:15 +01:00
Jakub Vrana
8ac065774e SimpleXML: Add namespace example 2025-04-19 09:33:55 +02:00
Derick Rethans
c1f37a6c27 Mark oop5 and xml* categories as 'interactive' (with exceptions) and use 'examples/' dir for XML example files so they (will) work with WASM 2025-03-06 14:35:36 +00:00
Derick Rethans
d6f54016d6 Fixed examples, and made some self-contained 2025-03-06 14:33:15 +00:00
Niels Dossche
b7bef37009 Fix missing version information for SimpleXML iterator methods (#4268)
Prior to PHP 8, these were actually living in SimpleXMLIterator, but
since then they live in SimpleXMLElement. The version file never changed
the SimpleXMLIterator entries to SimpleXMLElement. We change the names
here and because they are only available since PHP 8 on SimpleXMLElement
also change the version data.
2024-12-07 17:27:33 +00:00
Niels Dossche
739803892e Reference new Dom class in SimpleXML 2024-12-07 18:12:19 +01:00
Niels Dossche
62514381ff Update simplexml_import_dom for PHP 8.4 (#3906)
* Update simplexml_import_dom for PHP 8.4

* Update reference/simplexml/functions/simplexml-import-dom.xml

Co-authored-by: Gina Peter Banyard <girgias@php.net>

---------

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-10-23 18:31:39 +02:00
haszi
48ce43fe79 Remove empty resources pages (#3545)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-26 02:17:29 +01:00
haszi
765b2d6eec Remove empty configuration pages (#3538)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-09 22:24:55 +01:00
haszi
46a9cdd2db Remove empty constants pages (#3527)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-09 16:08:35 +01:00
Gina Peter Banyard
4d17b7b494 [skip-revcheck] Convert class markup to be compatible with DocBook 5.2
Closes GH-3415
2024-06-14 17:04:53 +01:00
Máté Kocsis
d715365c09 Sync some methodsynopses with stubs (#3199)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-04-16 13:02:43 +02:00
haszi
28f0dc949d Remove links from within constant tags (#3265)
Co-authored-by: haszi <haszika80@gmail.com>
2024-03-17 17:56:30 +00:00
Kamil Tekiela
39dc32304a Fix argument to SimpleXMLElement's constructor 2024-02-10 23:11:02 +01:00
Niels Dossche
d2939d4611 Cleanup libxml options parameter description (#2811)
PHP 7.0 requires at least libxml2 2.6.11. So any note about an older
version is simply irrelevant.

Use an entity to use consistent, more useful wording.

This patch also gets rid of some personification.
2023-09-29 23:53:29 +01:00
Niels Dossche
523e43a7d9 Fix SimpleXMLElement::current() example (#2766)
1) There's a typo in the variable name
2) The call returned NULL in PHP < 8.1. It throws an exception starting
   in 8.1. To keep the example simple and not introduce different
   variants based on the version, just remove the faulty call and
   expand upon the comment.
2023-09-16 18:06:36 +01:00
Máté Kocsis
14767af0f0 Use new class synopsis markup (#2611)
Follow-up on https://github.com/php/phd/pull/77
2023-08-30 12:28:30 +01:00
Máté Kocsis
dcb657b7e9 Move iterator methods of SimpleXMLIterator to SimpleXMLElement (#2161) 2023-05-10 15:09:44 +02:00
Máté Kocsis
3fc56d76de List inherited constructors on the class synopsis pages (#2090) 2022-12-28 15:51:40 +01:00
Christoph M. Becker
071a588364 Fix xpointer expressions
When removing the `not()` operator, some closing parentheses have been
overlooked, which resulted in broken xpointer expressions.
2022-12-13 12:13:33 +01:00
Máté Kocsis
770c6facae Update ext/simplexml role attributes (#2057) 2022-12-11 23:21:31 +01:00
Pierrick Charron
08e0e7dd68 Replace each() with foreach in usort and simplexmlelement/xpath 2022-05-26 13:16:41 -04:00
George Peter Banyard
c44e9cb68b Fix some (con|de)structor pages (#1507)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-04-06 18:55:35 +01:00
Christoph M. Becker
1ceec35d4d SimpleXMLElement::children() returns null for attribute nodes 2022-01-20 12:00:39 +01:00
Máté Kocsis
6803b3c62d Generate various class synopses from stubs - part 1 (#1241) 2021-12-23 14:22:05 +01:00
Christoph M. Becker
6199e10e91 simplexml_load_file(): see also libxml_set_streams_context()
Cf. <https://bugs.php.net/53369>.
2021-09-09 16:27:36 +02:00
George Peter Banyard
74a2224b35 Fix section order issues in SimpleXML extension
Part of #658
2021-06-06 18:03:03 +01:00
Máté Kocsis
1367cac761 Update the methodsynopsis of some recently changed stubs
Closes GH-625.
2021-05-24 23:29:02 +02:00
Máté Kocsis
5916fd8f74 Update ext/simplexml methodsynopses based on stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes-GH 599.
2021-05-22 17:15:57 +02:00
Sergey Panteleev
184f3f7bd4 Remove PHP 5, 7 references (#565) 2021-05-12 14:49:16 +03:00
Sergey Panteleev
f9c4a68ef4 Removed references to PHP 5, PHP 7.0 (#548) 2021-04-26 11:46:55 +03:00
Sergey Panteleev
a0ae28d3bc Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Sergey Panteleev
aab33d6443 Removed references to PHP 5, PHP 7.0 (#544) 2021-04-23 11:35:26 +03:00
Sergey Panteleev
5fabd07880 Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
fullbl
793c9fc579 SimpleXMLElement::attributes() may return NULL
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-482.
2021-03-08 11:22:03 +01:00
Ondřej Mirtes
2d2492f8d5 Fixed simplexml_import_dom return type
Closes GH-446.
2021-02-13 14:53:38 +01:00
Yoshinari Takaoka
7e0580fe26 Added PHP 8 into versions.xml for simplexml based on stubs.
Closes GH-376.
2021-01-26 19:34:57 +01: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
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
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
9af43469f4 Remove more changelog entries, mostly from PHP 5.2 era
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
6aafa955a6 Fix section order
According to <http://svn.php.net/viewvc/phpdoc/doc-base/trunk/RFC/skeletons/function.xml?view=markup>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349883 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-14 08:04:25 +00:00
Christoph Michael Becker
cd38bc2a91 SimpleXML: add missing changelog entries for $is_prefix
According to the PHP 5.2 migration guide, the `$is_prefix` parameter was added to three methods and two functions in PHP 5.2, but only two of those had a changelog entry about this change.

Ref: https://www.php.net/manual/en/migration52.parameters.php

Patch provided by jrfnl.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349881 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-14 07:49:51 +00:00
Christoph Michael Becker
0694f17113 Fix #63060: Option LIBXML_NOEMPTYTAG is ignored
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349428 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-14 16:56:46 +00:00
Nikita Popov
37909220d2 Replace each() with foreach in asXML() example
Patch by nikic.

Closes GH-1.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347573 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-08 12:52:24 +00:00
Jakub Vrana
578a13198f Update versions based on parsing sources
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344132 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-31 12:27:12 +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