1
0
mirror of https://github.com/php/doc-en.git synced 2026-04-29 10:13:23 +02:00

38 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
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
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 8109567de7 Fix type of $public_id of libxml_set_external_entity_loader (#2592) 2023-07-25 15:14:00 +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
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
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 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
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
Gordon Oheim 2eafaa5d9a fixes #60234 - Setting libxml_use_internal_errors to false will also clear any existing errors
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@318950 c90b9560-bf6c-de11-be94-00142212c4b1
2011-11-09 15:38:27 +00:00
Jakub Vrana d3c871ae1e Fix protos
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@308253 c90b9560-bf6c-de11-be94-00142212c4b1
2011-02-11 13:16:13 +00:00
Daniel Egeberg 96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00
Jakub Vrana 201dc3748c Prefer <initializer> before "defaults to"
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@291313 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-25 14:49:47 +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
Kalle Sommer Nielsen 8b9093186a Fixed bug #49140 (Bad coding practice in example code)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@286768 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-03 21:14:19 +00:00
Hannes Magnusson 3fbb1438bd Update the output to use recent libxml2 version which includes better column support
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@286584 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-31 10:45:45 +00:00
Nilgün Belma Bugüner 50f05a02f3 fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283820 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 07:50:41 +00:00
Kalle Sommer Nielsen 37c8ec8c6a libxml_disable_entity_loader()'s parameter is a boolean, not a string
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282789 c90b9560-bf6c-de11-be94-00142212c4b1
2009-06-26 02:34:57 +00:00
Hannes Magnusson 98574a0e0e Document libxml_disable_entity_loader()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282639 c90b9560-bf6c-de11-be94-00142212c4b1
2009-06-23 12:22:57 +00:00
Jakub Vrana f663f39df9 Initializers - part 3
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@273443 c90b9560-bf6c-de11-be94-00142212c4b1
2009-01-13 12:47:53 +00:00
Hannes Magnusson c030e2adf7 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Nuno Lopes 9208ae0590 commit a nice example improvement that I forgot to commit 1 month ago :)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@195125 c90b9560-bf6c-de11-be94-00142212c4b1
2005-09-04 11:41:23 +00:00
Nuno Lopes ce6718ec07 more docs & examples
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@179841 c90b9560-bf6c-de11-be94-00142212c4b1
2005-02-15 17:20:43 +00:00
Nuno Lopes 9281c48d86 start writing libxml docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@179834 c90b9560-bf6c-de11-be94-00142212c4b1
2005-02-15 13:47:10 +00:00
Nuno Lopes e58a9d9926 add a new directory for libxml fucntions/constants. move teh constants from simplexml page to here
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@179773 c90b9560-bf6c-de11-be94-00142212c4b1
2005-02-14 18:01:02 +00:00