Commit graph

681 commits

Author SHA1 Message Date
Rowan Tommins
e6c83ba87a Fix example labels to use correctly formatted entities 2021-12-09 21:12:52 +00: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
Jeremy Mikola
a44dc91a4d
libmongocrypt accepts base64 strings or BSON binary
https://jira.mongodb.org/browse/PHPC-1901
2021-07-16 14:54:13 -04:00
Jeremy Mikola
1e2846b81c
Document support for AWS and GCP KMS providers
https://jira.mongodb.org/browse/PHPC-1684
2021-07-16 14:54:13 -04:00
Kamil Tekiela
3d34df4084
Move mysqli SQL injection warning to a snippet (#703) 2021-07-12 15:08:55 +01:00
Sergey Panteleev
f5da09b298
Fix ldap functions description (#733) 2021-06-26 09:02:31 +03:00
Kamil Tekiela
9d2b858bca
Remove magic_quotes_runtime docs
Closes GH-719.
2021-06-25 19:27:30 +02:00
Kamil Tekiela
a35fce69cc
Remove obsolete resource information
Closes GH-725.
2021-06-24 16:08:30 +02:00
Sergey Panteleev
1f801a1187
LDAP link identifier replaced with LDAP resource (#715) 2021-06-23 13:41:35 +03:00
George Peter Banyard
8e732e84a1
Remove legacy Windows docs (#661)
Also fix the very weird indentation (sorry translations)

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2021-06-13 23:20:58 +01:00
Máté Kocsis
593ea510e8
Generate ext/gd methodsynopses based on stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-623.
2021-05-24 13:14:32 +02:00
Yoshinari Takaoka
eafb431a9a
fixed typo. 2021-05-24 00:10:43 +09:00
Christoph M. Becker
c50bbeddc9
Fix #81069: Minor parameter error in documentation 2021-05-23 13:47:22 +02:00
George Peter Banyard
eacabc8e15
Update string format specifier entity
- Remove PHP 5 mentions
- Add references to 'H' and 'h' specifiers
- Use canonical type names
2021-04-30 02:43:24 +01:00
Kim Hallberg
a7663ad05e
Fix #80999: count TypeError not documented
* Add TypeError to changelog
* Update example for count to show TypeError
* Split example outputs into separate PHP versions
* Split examples into good and bad examples

Closes GH-556.
2021-04-29 15:18:50 +02:00
Kamil Tekiela
9ee27f088a
Fix some common typos (#533)
* accomodate -> accommodate
* agressive -> aggressive
* begining -> beginning
* enviroment -> environment
* existance -> existence
* fourty -> forty
* foward -> forward
* futher -> further
* immediatly -> immediately
* occured -> occurred
* occuring -> occurring
* occurance, occurence -> occurrence
* prefered -> preferred
* publically -> publicly
* seperate -> separate
* compliment -> complement
2021-04-19 11:57:59 +02:00
Kamil Tekiela
7d6b8ade61
Updating mysqli: fetch_all (#513)
* Provided better description
* Added mysqli_stmt_get_result to the result param
* Remove misleading note
* Provided a simple example
2021-04-08 12:07:58 +02:00
George Peter Banyard
b8e1b1357d Some cleanup in FAQ section
Closes GH-327.
2021-03-23 14:19:44 +01:00