Máté Kocsis
2a7c919451
Generate string methodsynopses based on stubs
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Cf. <https://github.com/php/doc-en/pull/265 >.
2021-01-01 19:19:03 +01:00
Christoph M. Becker
3c969c420f
Update implode() docs for PHP 8.0.0
...
Closes GH-269.
2021-01-01 16:22:06 +01:00
Christoph M. Becker
a810fcc1ff
implode-fix
2021-01-01 15:48:17 +01:00
Tyson Andre
3988654d13
Fix wording for substr changelog
...
Amends e095023e40
Closes GH-300.
2020-12-31 13:08:52 +01:00
Christoph Michael Becker
8c5fdb928b
Update methodsynopses of (v)sprintf()
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352213 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-27 18:36:21 +00:00
Christoph Michael Becker
8b12549bff
Remove some PHP 5 specific info
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351924 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-06 14:45:00 +00:00
Christoph Michael Becker
043aa7b524
The \v escape sequence is supported as of PHP 5.2.5
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351905 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-05 14:45:17 +00:00
Christoph Michael Becker
e095023e40
Generate some string methodsynopses based on stubs
...
Partial merge of https://github.com/php/doc-en/pull/265 .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351904 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-05 14:30:42 +00:00
Christoph Michael Becker
e41806c30b
Revert revision(s) 351724 from phpdoc/en/trunk:
...
Document false and null return types
Cf. <https://news-web.php.net/php.doc.cvs/17645 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351730 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 18:05:44 +00:00
Christoph Michael Becker
4754397753
Revert revision 351727 from phpdoc/en/trunk:
...
Document false and null return types
Cf. <https://news-web.php.net/php.doc.cvs/17645 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351729 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 17:58:32 +00:00
Jakub Vrana
69bd53265b
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351727 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 15:12:46 +00:00
Jakub Vrana
c80da7c04a
Document false and null return types
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351724 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-28 12:54:59 +00:00
Christoph Michael Becker
9737e4b259
Added documentation for the str_starts_with and str_ends_with functions based on https://php.watch/versions/8.0/str_starts_with-str_ends_with
...
Patch contributed by Emmanuel Okeke <emmanix2002@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351549 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-23 21:50:15 +00:00
Christoph Michael Becker
3bed8bca1c
Added documentation for the str_contains function based on the RFC here: https://wiki.php.net/rfc/str_contains
...
Patch contributed by Emmanuel Okeke <emmanix2002@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351548 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-23 18:47:38 +00:00
Christoph Michael Becker
eaff4ac633
Fix #69906 : chr() behavior difference between 32- and 64-bit bulids
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351219 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-04 13:23:13 +00:00
Christoph Michael Becker
ef05457faa
Fix #60314 : Metaphone returns fewer phonemes than defined
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351215 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-04 10:08:57 +00:00
Christoph Michael Becker
b95d28e6ec
Fix return types
...
Functions which return false on failure should state that in their
signature as well.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +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
9e0f03ac35
Proper variadics instead of pseudo variadics
...
We markup variadic parameters with the `rep=repeat` standard DocBook
attribute of `<methodparam>`, and use proper variable names instead of
using the old pseudo variable name `...`.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351129 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 11:17:26 +00:00
Christoph Michael Becker
11a2f7bf48
Document some PHP 7.4.0 deprecations
...
Cf. <https://wiki.php.net/rfc/deprecations_php_7_4 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350986 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-25 14:43:31 +00:00
Christoph Michael Becker
3e15d2894f
Remove more changelog entries, mostly from PHP 5.4 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350656 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:15:17 +00:00
Christoph Michael Becker
7f569e1f17
Remove more changelog entries, mostly from PHP 5.3 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
9af43469f4
Remove more changelog entries, mostly from PHP 5.2 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
be5b0f33a1
Remove more changelog entries, mostly from PHP 5.1 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350653 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:45:57 +00:00
Christoph Michael Becker
5b53e0d177
ext/sybase is no longer available as of PHP 7.0.0
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350650 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:09:16 +00:00
Christoph Michael Becker
53bdffa6b9
Removed some of the PHP5 changelogs
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350645 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:32:19 +00:00
Christoph Michael Becker
e416b02393
Add missing changelog entries for integer $needle deprecations
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350636 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-25 12:18:46 +00:00
Christoph Michael Becker
d3c59331cc
ucwords() cleanup
...
Patch contributed by Larry Garfield.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350369 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-23 17:42:09 +00:00
Christoph Michael Becker
3330bf610f
Locales are maintained per thread on Windows for quite some time
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350153 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-14 09:14:40 +00:00
Christoph Michael Becker
5390e7919f
Concatenation has the same precedence as addition
...
This integrates user note 125110.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350033 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-14 11:52:10 +00:00
Nikita Popov
ed83989327
Remove useless declare statement from example
...
Patch by SjonHortensius.
Closes php/doc-en#82 .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349753 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-07 13:12:47 +00:00
Christoph Michael Becker
349718fef0
stip_tags() accepts array for $allowable_tags as of PHP 7.4.0
...
This integrates user note 124799.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349323 c90b9560-bf6c-de11-be94-00142212c4b1
2020-03-05 17:42:19 +00:00
Christoph Michael Becker
c00e972108
Add deprecation of money_format
...
Patch provided by Gert de Pagter.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349216 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-12 13:17:01 +00:00
Sherif Ramadan
fda2507473
Revert last commit per comments about strlen
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349162 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-07 15:21:32 +00:00
Sherif Ramadan
a4e73423dc
Include null on failure in return values
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349161 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-07 13:53:29 +00:00
Christoph Michael Becker
9153b1f660
Fix typo
...
Reported as user note 124614.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348925 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-15 08:49:03 +00:00
Christoph Michael Becker
6d98bc0a84
Remove out-dated info
...
Empty strings are fully supported as of PHP 7.0.0; the former behavior is
described in the changelog.
This issue has been reported by Mark Randall.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348487 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-11 13:57:58 +00:00
Christoph Michael Becker
e50c871145
implode($pieces, $glue) is deprecated
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348451 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-07 13:30:24 +00:00
George Peter Banyard
48b557d648
Use relevant entities, spotted by an anonymous user.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348421 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-04 01:19:22 +00:00
George Peter Banyard
8cb7482bf8
Typos
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348336 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-24 04:27:46 +00:00
Christoph Michael Becker
a179871450
Revert revision(s) 348313 and, 348311
...
Cf. <https://news-web.php.net/php.doc.cvs/17007 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348314 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-18 12:00:33 +00:00
Christoph Michael Becker
375c179091
Move contents of note section into description
...
See <https://news-web.php.net/php.doc.cvs/17002 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348313 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-18 08:12:23 +00:00
Christoph Michael Becker
cae89561f0
Move important warning up to description section
...
strip_tags() is *not* a security feature.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348311 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-17 13:30:15 +00:00
Christoph Michael Becker
f3193f5805
Move warning to description section to make it more prominent
...
This addresses several user notes.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348286 c90b9560-bf6c-de11-be94-00142212c4b1
2019-11-10 13:08:15 +00:00
George Peter Banyard
dfa4063816
Typos and minor improvements provided by various anonymous users.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348167 c90b9560-bf6c-de11-be94-00142212c4b1
2019-10-15 09:23:04 +00:00
Christoph Michael Becker
381e8ebf1b
Fix #78165 : Incorrect example with printf
...
We also remove the useless self-reference from the "see also" section.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347601 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-14 17:56:16 +00:00
George Peter Banyard
652367cc9d
Remove PHP 4 and 5.0.0 mentions.
...
This includes changelogs but also some paragraphs and notes which mention PHP 4.
These should be the last ones from the core extensions.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347577 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-08 15:52:28 +00:00
Pieter Hordijk
040346a806
Added warning that strip_tags should not be used to try and fail to prevent xss.
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347426 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-15 21:09:24 +00:00
Christoph Michael Becker
166933d75d
Amend substr_compare documentation with latest changes
...
Cf. <https://bugs.php.net/77853 >.
Based on a patch provided by Riikka Kalliomäki.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347366 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-02 14:12:29 +00:00
George Peter Banyard
53401e8378
Fix Doc Bug #73913
...
A better description of how the offset parameter works (especially with negative offsets)
Added some examples to illustrate how offset affects the function.
Maybe an example that compares this to strpos should be there too?
------
Inspired by anonymous 96388 (php.florianberberich@outlook.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347318 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-23 00:51:32 +00:00