1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00

94 Commits

Author SHA1 Message Date
Louis-Arnaud
5b7646656e Fix return type for 5 misc functions: bool -> true (#5357)
* Fix return type for 5 functions: bool -> true

These functions always return true (or throw on error):
- finfo_close (fileinfo)
- ftp_set_option (ftp)
- libxml_set_external_entity_loader (libxml)
- shm_detach (shmop)
- array_multisort (standard)

* Add changelog entries for return type change bool -> true

* Fix changelog version: use 8.5.0 instead of entity hardcoded to 8.2.0

The &return.type.true; entity is hardcoded with version 8.2.0, but all
5 functions changed their return type from bool to true in PHP 8.5.
Replace the entity with manual changelog rows using the correct version.
2026-03-02 22:55:02 +01:00
Niels Dossche
64e1182c98 Fix #5003: LIBXML_XINCLUDE is not supported for non-pull parsers, should be documented (#5092) 2026-01-11 20:37:06 +01:00
Hans Krentel (hakre)
3abd17e61d fix(reference/stream): example code php5.4 array syntax
in reference to 037266adde ("fix(reference/stream): HTTP headers are U+0D U+0A (CR LF) separated", 2025-06-22) streamline by 'http' 'header' stream context option.
2025-06-22 16:45:06 +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
Máté Kocsis
9b1673cf11 Mark deprecated functions with the #[\Deprecated] attribute (#4161) 2024-11-27 20:38:45 +01:00
Mikhail Alferov
b8cefce033 Update setup.xml Add the missing comma (#4057) 2024-11-13 14:57:57 +00:00
Niels Dossche
81bc2b5f45 Document libxml changes for PHP 8.4 (#4051)
* Document version requirement change of libxml

* Document error change to libxml_set_streams_context()

* Apply suggestions from code review

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-11-12 19:56:26 +01:00
Niels Dossche
eae558e584 Fix GH-1408: Deprecation of libxml_disable_entity_loader() should warn about constants which will override the new default behaviour (#4036)
Based on stale PR GH-1409.
Closes GH-1409.
Closes GH-1408.

Co-authored-by: Andrew Nicols <andrew@nicols.co.uk>
2024-11-11 14:30:55 +00:00
Niels Dossche
f7745f9df0 Add libxml constants for PHP 8.4 (#3900) 2024-10-23 13:11:14 +01: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
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
2a8b2f1c53 Sync some classsynopses with stubs (#3367)
* Sync some classsynopses with stubs

* Rename class constant container IDs

* Remove double hypens from IDs
2024-05-20 13:15:53 +01:00
haszi
8f6fd5c55a Add missing libxml related constants (#3388)
* [skip-revcheck] Fix whitespace

* Add missing libxml related constants

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-05-18 15:06:51 +02:00
Máté Kocsis
90afcd69fc Fix LibXMLError class name (#3063) 2024-01-05 12:47:14 +00:00
Máté Kocsis
5e9500ddad [skip-revcheck] Syncronize predefined constants with stubs - part 1 (#2739)
Preparation commit for syncing constants with stub.

This reformats the page, which is mainly just whitespace changes.
2023-09-04 23:37:50 +01:00
Yoshinari Takaoka
6ec541d590 re-added libxml2 required version prior to PHP 8.0
because we have "Installation PHP [>=|<] 7.4" section
2023-08-02 09:01:18 +09:00
Niels Dossche
28c6feba80 Update libxml installation text (#2623)
Fixes GH-1362
Fixes GH-2574
2023-08-01 14:53:21 +01:00
Niels Dossche
8109567de7 Fix type of $public_id of libxml_set_external_entity_loader (#2592) 2023-07-25 15:14:00 +01:00
Niels Dossche
09b23d2b26 Add extra words of caution for validateOnParse and LIBXML_VALIDATEDTD (#2585) 2023-07-17 16:02:08 +01:00
Máté Kocsis
dea05ca001 Remove unnecessary role attribute for libxml_get_external_entity_loader 2022-12-11 23:35:46 +01:00
Tim Starling
d0d1ec131e Add documentation for libxml_get_external_entity_loader() (#1933) 2022-11-04 12:01:29 +00:00
Christoph M. Becker
554179d438 Fix libxml deprecations
`libxml_disable_entity_loader()` is deprecated as of PHP 8.0.0, not
`libxml_set_external_entity_loader()`.
2021-08-10 22:26:31 +02:00
Yoshinari Takaoka
fed3682684 Fix section order issues in some extensions (#667)
Fix section order issues

- ldap
- libxml
- intl

Part of php/doc-en#658
2021-06-07 23:04:32 +09:00
Juliette
f3b5475eeb PHP 8.0 migration/deprecated: expand on libxml_disable_entity_loader() (#528)
The current text in the migration guide about the deprecation of `libxml_disable_entity_loader()` is misleading and can easily lead to the introduction of XXE vulnerable code.

In select circumstances, when `LIBXML_NOENT` is used, code can still be vulnerable to XXE attacks, even on PHP 8.0.
So I'm proposing to add an appropriate warning and mention the upgrade path in the migration guide.

Includes fixing a typo on the `libxml_disable_entity_loader()` page.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>
2021-04-16 10:44:07 +02:00
Yoshinari Takaoka
a6561ba12e Added PHP 8 into versions.xml for libxml based on stubs.
Closes GH-387.
2021-01-24 15:39:31 +01:00
Christoph M. Becker
5b5bb5d9b3 Improve libxml_disable_entity_loader() docs
We clarify that `libxml_set_external_entity_loader()` is the preferred
alternative, and also note that the function is deprecated as of PHP
8.0.0.
2021-01-19 16:32:53 +01:00
Christoph M. Becker
0e06ad7d77 Improve libxml_set_external_entity_loader() docs
We point out that this function can be used to avoid XXE, and is
preferable to `libxml_disable_entity_loader()` in this regard.

We also set up a proper methodsysnopsis for the `$resolver_function`.
2021-01-19 14:41:43 +01:00
Christoph Michael Becker
f90df97fa5 Generate libxml 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@351550 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-23 21:59:02 +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
a07808fdd7 Fix #62577: simplexml_load_file does not file if libxml_disable_entity_loader(true)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350442 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-31 16:29:59 +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
fa994a739c Fix function signatures
Some of these probably deserve an entry in changelog, please add it if you have energy.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343898 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:03:56 +00:00
Christoph Michael Becker
e1b57a1950 minor fixes by anon users
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338890 c90b9560-bf6c-de11-be94-00142212c4b1
2016-04-02 18:09:05 +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
Christoph Michael Becker
0b21aec05f documented LIBXML_BIGLINES constant
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336953 c90b9560-bf6c-de11-be94-00142212c4b1
2015-06-14 17:14:26 +00:00
Jean-Sebastien Hedde
a3f1006c02 Just a simple spelling and type error fix
-- 
Provided by anonymous 53037 (tpunt@hotmail.co.uk)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335780 c90b9560-bf6c-de11-be94-00142212c4b1
2015-01-20 12:57:47 +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
Maciej Sobaczewski
b72a6bf2e6 Remove last three PHP 4 extensions
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334662 c90b9560-bf6c-de11-be94-00142212c4b1
2014-08-29 12:41:06 +00:00
Peter Cowburn
795edfedf7 add three libxml constants that comes with 5.4.0 (doc #54037)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@332498 c90b9560-bf6c-de11-be94-00142212c4b1
2013-12-22 17:14:42 +00:00
Peter Cowburn
678f1d720a Document DOMDocument::schemaValidate/Source() flags parameter.
See https://github.com/php/php-src/pull/325

-- 
Provided by Chris Wright (phpdoc@daverandom.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331156 c90b9560-bf6c-de11-be94-00142212c4b1
2013-08-19 08:10:16 +00:00
Jakub Vrana
b89d5b4683 Add missing version info
Found by PhD

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330435 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-31 22:33:43 +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
Hannes Magnusson
858cacd62c mark bunch of extensions with "membership" PI (like the membership comment)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326064 c90b9560-bf6c-de11-be94-00142212c4b1
2012-06-09 17:34:56 +00:00
Yannick Torres
94497636f2 Fix svn keywords
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324194 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-13 15:34:05 +00:00
Jakub Vrana
5faa7a6747 Document and use callable type hint introduced in PHP 5.4
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324122 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-12 05:55:59 +00:00
Philip Olson
67324381bf Added documentation for libxml_set_external_entity_loader(). Example stolen from php-src/tests.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323683 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-01 01:27:05 +00:00
Jakub Vrana
4de5cce5d8 Linkable reference constants
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323624 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-28 13:22:09 +00:00
Hannes Magnusson
31fc034469 Mention which PHP version the constant exists in (see bug#55656)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321134 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-18 16:26:33 +00:00