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

31020 Commits

Author SHA1 Message Date
Máté Kocsis
3f82c54505 Add packagesynopsis tag for BCMath, FFI and PDO classes (#5406) 2026-03-08 21:04:48 +01:00
Máté Kocsis
37d269b8f6 Add packagesynopsis tag for objects recently converted from resource (#5405) 2026-03-08 21:04:28 +01:00
Máté Kocsis
fcd9214294 Sync return type changes (#5075) 2026-03-08 21:03:56 +01:00
Kamil Tekiela
aa79a143fb Fix doc of mysqli_get_charset (#5411) 2026-03-07 22:46:13 +00:00
武田 憲太郎
63bd68a3fd Fix duplicated constant name in IntlChar 8.4.0 changelog
The changelog entry lists PROPERTY_ID_COMPAT_MATH_START twice.
The second should be PROPERTY_ID_COMPAT_MATH_CONTINUE.

See https://www.php.net/manual/en/migration84.constants.php
2026-03-06 14:23:32 +01:00
武田 憲太郎
cdb9b8afa5 Fix wrong varname for SoapFault::$lang property
Under xml:id="soapfault.props.lang", the <varname> says "headerfault"
instead of "lang" (copy-paste error).

See https://www.php.net/manual/en/class.soapfault.php
(the rendered page shows "headerfault" twice, "lang" is missing)
2026-03-06 14:22:34 +01:00
Andrey Andreev
cd4180557a HTTP Basic auth page: Remove old IE and Netscape stuff, make it HTTP-compliant 2026-03-06 14:09:05 +01:00
lacatoire
a684294e0b Fix stream_filter_append and stream_filter_prepend parameter names
- stream_filter_append: $filtername -> $filter_name, $read_write -> $mode
- stream_filter_prepend: $filtername -> $filter_name, $read_write -> $mode
2026-03-06 13:08:49 +01:00
lacatoire
8d49e302b4 Document ValueError thrown by settype() since PHP 8.0
Add Errors/Exceptions section and changelog entry.

Fixes php/doc-en#3431
2026-03-06 13:07:44 +01:00
Louis-Arnaud Catoire
ae90ecc932 docs: fix outdated ssl:// transport description 2026-03-06 08:53:37 +01:00
Mikhail Alferov
f81bbcf9d3 Update incompatible.xml Fix a method names 2026-03-06 08:50:19 +01:00
Mikhail Alferov
048982b729 incompatible.xml Fix a method name 2026-03-06 08:50:19 +01:00
AllenJB
96b10a9885 CLI Web Server: Add a note about php --help (fixes #4587) 2026-03-06 08:46:12 +01:00
Julien Dubois
54a788ca59 Document NAN return value case. 2026-03-06 08:34:42 +01:00
Louis-Arnaud
423a1da63f Apply suggestion from @TimWolla
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
2026-03-06 08:31:11 +01:00
Louis-Arnaud Catoire
1ada637cc8 Document underflow limitation in Randomizer::getFloat() 2026-03-06 08:31:11 +01:00
John Charman
058ea1e842 Add missing constant to json-last-error
Include JSON_ERROR_NON_BACKED_ENUM in json-last-error
2026-03-06 08:29:56 +01:00
Louis-Arnaud Catoire
6bb90d24b2 Document ValueError for empty filename in getimagesize() 2026-03-06 08:28:54 +01:00
武田 憲太郎
122d5d0969 grapheme-str-split.xml: Remove erroneous locale changelog entry 2026-03-06 08:25:23 +01:00
Christian Weiske
a4bcdd05f1 Change permissions for cloned repositories
The current user and group ID are passed passed to the docker build command
and the ownership of the cloned directories are changed to them.
This gets rid of git's "dubious ownership" error.

Without this changes I got an error:
> $ make
> docker run --rm -v :/var/www/en -w /var/www -u 1000:1000 php/doc-en
> configure.php on PHP 8.2.29, libxml 2.9.14
>
> fatal: detected dubious ownership in repository at '/var/www/doc-base'
> To add an exception for this directory, call:
>
> 	git config --global --add safe.directory /var/www/doc-base
> doc-base/temp clean up FAILED.
> make: *** [Makefile:22: xhtml] Fehler 1

Resolves: https://github.com/php/doc-en/pull/4645
2026-03-05 15:24:21 +01:00
Christian Weiske
1f3033eaee Pass full local path to docker
Passing "." as path does not work with docker 20.10.24:
> $ make
> docker run --rm -v .:/var/www/en -w /var/www -u 1000:1000 php/doc-en
> docker: Error response from daemon: create .: volume name is too short, names should be at least two alphanumeric characters.
> See 'docker run --help'.
> make: *** [Makefile:22: xhtml] Fehler 125
2026-03-05 15:24:21 +01:00
Gina Peter Banyard
ae7db14ea8 Properly revert "Fix wrong xml:id on the fieldsynopsis element of Exception::$code"
This reverts commit 6a05d92a32.

On the request of Máté to fix the build.

It might make sense to rewrite history and force push to prevent revcheck issues, but that's another debate.
2026-03-05 13:35:28 +00:00
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
462d2bcb3f Revert "Fix wrong xml:id on the fieldsynopsis element of Exception::$code"
This reverts commit 6a05d92a32.

The id is needed since 3c4752c0ae
2026-03-05 14:21:25 +01:00
Christian Weiske
74ef2355c5 Document ssh2_auth_pubkey() from pecl/ssh2 v1.4 (#5010)
Changelog: https://pecl.php.net/package-info.php?package=ssh2&version=1.4
2026-03-05 12:50:36 +00:00
Máté Kocsis
6a05d92a32 Fix wrong xml:id on the fieldsynopsis element of Exception::$code 2026-03-05 13:48:51 +01:00
Máté Kocsis
30bda33771 Fix missing attribute for NoDiscard 2026-03-05 13:46:32 +01:00
Michael Voříšek
28930349ca Improve SQLite createFunction example (#5374) 2026-03-02 22:55:36 +01:00
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
Louis-Arnaud
7d5c74c9a5 Normalize DOM error sections to explicitly mention DOMException (#5261) 2026-03-02 22:32:36 +01:00
Daniel Scherzer
b53f03f249 DATE_ATOM: refer to RFC 3339, not 3399 (#5393)
Fixes #5386
2026-03-02 11:36:42 -08:00
Derick Rethans
1d1aad45d5 Updated to version 2026.1 (2026a) 2026-03-02 18:13:37 +00:00
dependabot[bot]
5e79ef6b69 build(deps): bump actions/upload-artifact from 6 to 7 (#5396)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-01 19:42:14 -08:00
Máté Kocsis
c8e3b2ccad Declare the namespace of ext/random classes (#5394) 2026-02-28 14:37:54 +00:00
KentarouTakeda
a7be7e9abb Fix typo: simparapara -> simpara in StreamBucket (#5395) 2026-02-28 13:51:10 +00:00
sasezaki
02bee41067 Add NoDiscard attribute (#5041)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2026-02-27 06:49:08 -08:00
Dustaboy3
1709768e97 FAQ: Mention named arguments and discourage manual escaping (#5377)
Updates the FAQ:

- Mentions named arguments in the parameter order entry.
- Adds a note discouraging manual escaping in the addslashes entry,
  recommending prepared statements and parameter binding instead.
2026-02-19 16:36:21 -08:00
Mikhail Alferov
6122a8317c setcookie.xml Arrange the versions of the change log (#5378) 2026-02-19 16:33:29 -08:00
Kamil Tekiela
1beae37b69 Clarify how multi_query works (#5380) 2026-02-18 22:58:14 +00:00
Daniel Scherzer
88eb0d53c6 property-hooks: add missing $modified declaration to example 4 (#5124) 2026-02-17 10:25:16 -08:00
AllenJB
fa98755da4 FPM Status page: Fix proxypass URL (#3145)
* FPM Status page: Fix proxypass URL

* FPM Status page: Update to use modern Apache require configuration
2026-02-17 17:48:58 +01:00
Daniel Scherzer
34bd6f08bd finfo_close: add changelog for NOP and deprecation (#5373) 2026-02-15 15:52:26 -08:00
Andreas Braun
dac7a370d3 Document new API in ext-mongodb 2.2.0 (#5370)
* Document new API in ext-mongodb 2.2.0

* Apply suggestions from code review

Co-authored-by: Jeremy Mikola <jmikola@gmail.com>

---------

Co-authored-by: Jeremy Mikola <jmikola@gmail.com>
2026-02-13 08:19:35 +01:00
Daniel Scherzer
29c3d13980 curl_share_close: add changelog for NOP and deprecation (#5249) 2026-02-11 21:07:40 -08:00
Christian Schneider
c6fb604f39 Fix parameter names to match between synopsis and description part (#5247) 2026-02-08 10:00:50 +01:00
Karoly Negyesi
31e56c25f9 add literal around getcurrent error 2026-02-06 17:33:25 +01:00
Christian Schneider
4e69a9f2b1 Remove descriptions of obsolete parameters not in synopsis (#5246)
Co-authored-by: Christian Schneider <schneider@search.ch>
2026-02-06 14:42:29 +00:00
Máté Kocsis
5e36b489fc Add some missing properties and constants (intl/soap/attribute) (#5069) 2026-02-06 14:15:34 +00:00
Louis-Arnaud
a2a3f35259 Fix rand() range constraint to use abs() for reversed parameters (#5264) 2026-02-06 13:56:19 +00:00
Samuel
53fb200fed do-while: align example code indentation (#5278) 2026-02-06 01:00:26 -08:00