Commit graph

697 commits

Author SHA1 Message Date
noonlit
51351c34a7
Update documentation for ldap_search() (#1629)
* Update documentation for ldap_search()

* Improve documentation for ldap_search()

* Use new entity for return values, update additional ldap_* method docs

* Avoid text duplication in ldap documentation

* Move para tag into entity

Co-authored-by: Sergey Panteleev <sergey@php.net>
2022-06-21 12:22:50 +01:00
Jeremy Mikola
a678daf64f
Document comment and let options for BulkWrite and Query
https://jira.mongodb.org/browse/PHPC-2049
https://jira.mongodb.org/browse/PHPC-2005
2022-06-07 18:51:34 -04:00
Derick Rethans
4586854a24 Fixed bug #74054: New DateInterval properties based on 2022-06-05 15:22:51 +01:00
Derick Rethans
eeeb152d8a Added missing return values/parameters sections 2022-06-02 16:18:33 +01:00
Christoph M. Becker
85b2c17bff
Fix GH-1572: Not specifying the pgsql connection parameter is deprecated 2022-05-09 16:12:16 +02:00
Christoph M. Becker
4225e50bc3
Fix GH-1571: f/sscanf() do not mention assignment suppression feature 2022-05-09 14:49:30 +02:00
Christoph M. Becker
1af58f6311
Fix GH-1568: No info on return value of ctype_alnum() in case of empty string
We explicitly add the info to every ctype's function return value
section.

We also overhaul the ctype introduction section by removing obsolete
information, adding a warning about the deprecation of int parameters,
and removing personalization.
2022-05-06 17:53:06 +02:00
Máté Kocsis
bc3e9a2933
Generate methodsynopses for ext/intl (idna, IntlChar) (#905) 2022-04-14 08:35:42 +02:00
Christoph M. Becker
a8b575aeac
Fix GH-1478: strftime is deprecated as of PHP 8.1 but no mention of what to use instead 2022-04-05 13:50:13 +02: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
Christoph M. Becker
b5275f7e82
Fix GH-1440: Mention that named arguments can't be used with empty() 2022-03-03 17:52:20 +01:00
Rowan Tommins
0bafd5454e
Optional parameter changes in 8.1, and description improvements
* Document change in behaviour of misplaced optional parameters in 8.1
  (see https://github.com/php/php-src/commit/afc4d67c)
* Expand and update documentation of default/optional parameters
* Fix example labels to use correctly formatted entities
* Style improvements, and a couple of extra notes.

Closes GH-1191.
2022-02-18 13:24:09 +01:00
Jakub Zelenka
04210d535d
Update FPM installation and intro (#1407) 2022-02-13 22:14:47 +00:00
Jeremy Mikola
33d23851b0
Warning about duplicate keys in BSON documents
https://jira.mongodb.org/browse/PHPC-1342
2022-01-14 19:58:21 -05:00
Christoph M. Becker
31cacb6f26
Fix #80699: array_map no longer passes by reference 2021-12-31 19:21:39 +01:00
Kamil Tekiela
1bb7bd6f02
Remove whitespace from parameter names
This should fix JavaScript bug
2021-12-28 15:20:40 +00:00
Jeremy Mikola
dcfdf315b4
KMIP KMS provider and KMS TLS options
https://jira.mongodb.org/browse/PHPC-1912
https://jira.mongodb.org/browse/PHPC-2009
2021-12-14 13:54:44 -05:00
Yoshinari Takaoka
39247cb926
[PHP 8.1] Document deprecated ctype non-string argument. (#1179)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-12-08 20:18:41 +09:00
Sergey Panteleev
0a192fcd9c
[PHP 8.1] Changelog entry for standard functions (#1123)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes #1034
2021-12-02 15:26:58 +03:00
Kamil Tekiela
dfa86bcd6d
Use type entities 2021-11-13 12:58:16 +00:00
hakre
d5161a40ab
Add note when return value is string (#1062)
Note taken from reference/mysqli/mysqli_result/num-rows.xml.

Extracting !ENTITY mysqli.integer.overflow.as.string.note
2021-11-13 12:49:53 +00:00
沈唁
de42b5016e
Fix 80971: func_get_args() didnt work when using named args (#650)
* Fix 80971: func_get_args() didnt work when using named args

* Update language-snippets.ent

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

* Update language-snippets.ent

* Update language-snippets.ent

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

* Update language-snippets.ent

Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-11-10 11:39:50 -05:00
Salomon88
6a6f43d1c4
Documentation of index reset effect of some array functions - issue #876 (#1077)
Co-authored-by: Alexey Kryuchkov <alexey.kryuchkov@jetbrains.com>

Closes GH-1077.
2021-11-09 13:01:19 +01:00
Juliette
41c8533ff5
PCRE: add missing "Errors/Exceptions" section
All PCRE pattern matching functions will throw a warning when an invalid regex is passed to the `$pattern` parameter.
See: https://3v4l.org/WkVIW

This was thus far undocumented behaviour.

This PR adds:
* The "Errors/Exceptions" section to each of the PCRE pattern matching function documentation pages (if it didn't exist yet).
* Adds a macro for the text snippet about the warning to display in the section and uses that in the "Errors/Exceptions" section for each function.

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>

Closes GH-1057.
2021-11-08 13:01:56 +01:00
Abu Hurayra
09cf574276
[skip-revcheck] Grammar changes on intro page (#1017)
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
Co-authored-by: Sergey Panteleev <sergey@php.net>
2021-10-19 16:13:44 +01:00
Sergey Panteleev
c2eca73ef7
[PHP 8.1] Use PgSql objects instead of resources (#1009) 2021-10-16 13:45:19 +03:00
Máté Kocsis
65a1dc500d
Generate methodsynopses from stubs for ext/intl (IntlCalendar) (#996) 2021-10-11 15:02:12 +02:00
Máté Kocsis
58645a79f1
Generate ext/pgsql methodsynopses based on stubs (#915) 2021-10-10 00:23:32 +02:00
George Peter Banyard
c5546510bd
[skip-revcheck] Fix typo in extractto snippet note 2021-10-08 11:07:39 +01:00
Yoshinari Takaoka
81b23db050
[PHP 8.1] Use an Pspell\[Dictionary|Config] instance instead of a resource (#976)
* add pspell related object class.
* changed resource list description.
* changes pspell function signature and parameters, changelog.
* use pspell.parameter.pspell-dictionary snippet.
2021-10-07 01:00:37 +09:00
Sergey Panteleev
a7e5e563d2
[PHP 8.1] Use GdFont (#994) 2021-10-05 15:30:01 +03:00
Sergey Panteleev
8a2141dcc0
Deprecated functions and constants
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-981.
2021-10-04 16:53:40 +02:00
Christoph M. Becker
5e1a9062c0
Fix #81488: ext/zip doesn't extract files with special names 2021-10-04 15:24:53 +02:00
Yoshinari Takaoka
e706a6b557
fixed removed ldap functions parameter and warning. 2021-10-01 04:32:36 +09:00
Sergey Panteleev
fbc6f9055f
[PHP 8.1] Use an LDAP instance instead of a resource (#975) 2021-09-30 15:43:14 +01:00
Sergey Panteleev
68ba58040e
[PHP 8.1] Use an finfo instance instead of a resource (#985)
Co-authored-by: George Peter Banyard <girgias@php.net>
2021-09-30 07:57:59 +03:00
Sergey Panteleev
34892f8274
[PHP 8.1] Use an IMAP\Connection instance instead of a resource (#971) 2021-09-28 19:13:36 +01:00
Sergey Panteleev
4d1c34c9b7
[PHP 8.1] Use an FTP\Connection instance instead of a resource (#967)
Co-authored-by: Peter Cowburn <petercowburn@gmail.com>
2021-09-24 13:17:30 +03:00
Máté Kocsis
ed6de1ae20
Update ext/oci8 methodsynopses based on stubs (#601) 2021-09-23 13:55:36 +01:00
Kim Hallberg
f63aa0afcd
[80738] Update MB string functions (#630)
* Add new `mbstring.changelog.needle-empty` entity

* Update changelog with `mbstring.changelog.needle-empty` entity
The following functions now support an empty `needle` argument.

- mb_strpos
- mb_strrpos
- mb_stripos
- mb_strripos
- mb_strstr
- mb_stristr
- mb_strrchr
- mb_strrichr
2021-09-17 20:53:19 +01:00
Kamil Tekiela
52dc204a77
Add note about NOP code
Closes GH-933.
2021-09-14 15:09:52 +02:00
Christoph M. Becker
5783afacad
Improve description of several $context parameters
We're misusing the already existing `&note.context-support;` for this,
but remove the PHP 5 related info from it, and link directly to stream
contexts.
2021-09-06 13:00:53 +02:00
Adrien Crivelli
235297daed
Fix #81383: Locale::lookup / locale_lookup incorrectly returns null instead of default
INTL_MAX_LOCALE_LEN limits the length of accepted locale. Anything
longer than that will result in a failure and the value returned
will either be `null` or `false`. So documentation must reflect that
in the return types.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-883.
2021-08-27 14:41:52 +02:00
沈唁
0799f7789c
Remove useless docs (#865) 2021-08-24 15:07:23 +02:00
George Peter Banyard
d1df62fe77
Update array sorting docs
These always return true, even in PHP 7
Clarify sorting is unstable prior to PHP 8.0
Normalize the docs between the functions

Closes GH-686
2021-08-19 15:46:00 +01:00
Kamil Tekiela
de9c65c91f
Remove E_STRICT and other PHP 5 related information (#730) 2021-08-17 17:56:25 +01:00
powellblyth
da9316751a
slight improvement to the language (#646) 2021-08-09 21:11:07 +01:00
Yoshinari Takaoka
ffda9c6c12
Also fixes language-snippets.ent about sorting stability as of PHP 8.0.0.
refs: php/doc-en#825
2021-08-08 23:15:08 +09:00
Sergey Zorin
d75016cec7
Fix &style.oop; (#846) 2021-08-08 15:35:38 +03:00
Christoph M. Becker
cafd6b7449
Fix #76748: date format timezone abbreviations and changes not well documented 2021-08-04 16:55:59 +02:00