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
George Peter Banyard
87b1f7ef55
Improve sprintf documentation and related functions (such as printf)
...
Fix Doc Bug #77451
Integrate Note 111201 into doc http://php.net/manual/en/function.sprintf.php#111201
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347041 c90b9560-bf6c-de11-be94-00142212c4b1
2019-03-24 16:30:33 +00:00
Christoph Michael Becker
b3e378b59c
Fix #77662 : htmlspecialchars does not behave as documented regarding ambiguous $flags
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346899 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-25 11:24:20 +00:00
Tyson Andre
a9ada9d6f9
fix typos in extension documentation
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346848 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-18 05:42:50 +00:00
Christoph Michael Becker
ad34011f87
Fix #69012 : examples in echo documentation are misleading
...
Patch provided by girgias.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346811 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-12 16:16:07 +00:00
Christoph Michael Becker
448a9cab14
Fix #77529 : %G modifier is possibly incorrect
...
Patch provided by girgias.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346810 c90b9560-bf6c-de11-be94-00142212c4b1
2019-02-12 16:05:24 +00:00
Christoph Michael Becker
82dfa0d98d
Fix #61888 : crypt() should be documented as not binary safe
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346579 c90b9560-bf6c-de11-be94-00142212c4b1
2019-01-09 18:00:01 +00:00
Christoph Michael Becker
ff7a473972
Link to mb_chr() and mb_ord(), respectively
...
Even though these functions are not yet properly documented, this
appears to be more useful than user note 123462, which only works for
little-endian architectures.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346452 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-28 14:58:12 +00:00
Christoph Michael Becker
8f828979a0
As of PHP 7.4.0 an empty escape string means no escaping
...
Cf. <https://github.com/php/php-src/pull/3515 >.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346346 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-15 15:15:12 +00:00
Christoph Michael Becker
80267cad62
Searching strings for non-string needle is deprecated as of PHP 7.3.0
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346302 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-12 11:27:56 +00:00
Christoph Michael Becker
962214a5cc
Simplify signature of variadic functions
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346102 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-27 19:09:14 +00:00
Christoph Michael Becker
85234fc2fc
Fix typo
...
Patch provided by anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345681 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-23 14:04:13 +00:00
Christoph Michael Becker
1712ed85e1
Fix #73613 : Not warning if length == 0
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345591 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-03 21:28:08 +00:00
Christoph Michael Becker
8ccc9da8be
Fix #76779 : Can't find multibyte functions via string functions
...
We also remove the link to the removed POSIX Regex functions.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345547 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-22 13:19:50 +00:00
Christoph Michael Becker
2e80c71b32
Fix #76764 : Wrong parameter type for stripos()
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345530 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-18 17:00:15 +00:00
Christoph Michael Becker
98b76b79d6
Fix #76680 : Uncertainty in description of html_entity_decode
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345421 c90b9560-bf6c-de11-be94-00142212c4b1
2018-08-02 22:23:22 +00:00
Pieter Hordijk
79ebd89049
The ord() and chr() functions do not interpret their inputs as ASCII or any other encoding, but work with single bytes. This should be made clearer.
...
--
Provided by anonymous 73458 (rowan.collins@gmail.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345229 c90b9560-bf6c-de11-be94-00142212c4b1
2018-06-28 10:36:19 +00:00
Christoph Michael Becker
0dfd64fc2a
Link to alternative functions
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344962 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-05 12:32:24 +00:00
Christoph Michael Becker
4925366b0e
Fix #72113 : convert_uudecode() fails to decode data
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344961 c90b9560-bf6c-de11-be94-00142212c4b1
2018-05-05 12:14:27 +00:00
Christoph Michael Becker
856862c5ab
Fix typo
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344709 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-18 13:38:04 +00:00
Christoph Michael Becker
0885e3a08d
Join the changelogs
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344708 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-18 13:29:27 +00:00
Christoph Michael Becker
431db906eb
str_getcsv() is not about files
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344694 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-17 17:05:56 +00:00
Christoph Michael Becker
b45d8c1772
Nested <link>s can't work
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344693 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-17 16:10:01 +00:00
Christoph Michael Becker
f93af4fcac
Clarify locale awareness of the CSV reading functions
...
See bug #72330 .
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344648 c90b9560-bf6c-de11-be94-00142212c4b1
2018-04-10 17:00:52 +00:00
Christoph Michael Becker
0fe00e3574
Minor doc improvements
...
Patches provided by anonymous users.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344469 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-09 12:44:59 +00:00
Christoph Michael Becker
d95d5914f5
Fix bug #36261 : similar_text parameters aren't swappable
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344329 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-22 17:42:20 +00:00
Christoph Michael Becker
9421e06e34
Fix bug #67566 : escape parameter in fgetcsv() is sometimes ignored
...
We clarify the actual meaning of $escape.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344268 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-15 17:04:23 +00:00
Jakub Vrana
7c50ead1ed
Fix versions based on parsed php-src
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344068 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-29 15:23:17 +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
Jakub Vrana
dd07341fae
Remove trailing fullstop in <refpurpose>
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343888 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 15:34:22 +00:00