74 Commits

Author SHA1 Message Date
Jim Winstead cef78b0fbe Add explicit warning about CSV function's escape parameter (#3765) 2024-09-23 13:59:30 -07:00
andreicir 7586ab5177 Fix fwrite.xml data parameter mentions (#3521) 2024-07-06 07:20:46 +01:00
haszi 61374bbe22 Change literal to constant tags 2024-04-16 10:45:49 +01:00
Johannes Kingma 5787d74ce4 fix typo (#2918) 2023-11-05 14:15:10 +08:00
Máté Kocsis 823dc72e74 Fixes for SplFileObject::_toString 2023-05-17 10:25:51 +02:00
George Peter Banyard 4d80769feb Update SplFileObject::_toString() after bugfix (#2023)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2023-05-16 21:47:01 +01:00
othercorey 857bcd5c61 Drop SplFileObject::fgets() return false description (#2208) 2023-01-19 00:17:31 +00:00
Máté Kocsis d51166ca16 Add ext/spl methodsynopsis roles (#2073) 2022-12-13 10:33:30 +01:00
Máté Kocsis 5764345c86 Update some newly clarified types (#1946) 2022-11-07 06:01:12 +01:00
Máté Kocsis b5525a1412 Use the alias entity everywhere (#1800) 2022-09-06 21:10:52 +01:00
Christoph M. Becker 4225e50bc3 Fix GH-1571: f/sscanf() do not mention assignment suppression feature 2022-05-09 14:49:30 +02:00
George Peter Banyard fda6c4efe2 Update SPL class construtor pages (#1466)
Add missing changelogs for changes in PHP 8
2022-04-07 12:40:48 +01:00
George Peter Banyard 18b8af40b8 Update param name in SplFileObject::fputcsv 2021-09-28 19:28:06 +01:00
Sergey Panteleev fcbbbd9fda [PHP 8.1] Update fputcsv and SplFileObject::fputcsv description (#978) 2021-09-28 14:18:31 +03:00
Máté Kocsis 60809ebcf7 Generate ext/spl methodsynopses based on stubs (#624) 2021-08-11 23:44:41 +02:00
Christoph M. Becker 7d93e0fe5e Fix #81284: str_getcsv cant parse with multibyte delimiter
There's no fun in DRY. ;)
2021-07-23 17:24:39 +02:00
Sergey Panteleev 5fabd07880 Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03:00
Yoshinari Takaoka cb3e68d99d changed warning about deleted functions as of PHP 8.0.0. 2021-02-10 03:44:01 +09: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
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 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 53242ee662 Properly markup union types
Since r350738 added support for union types to our DocBook DTD, we
should use it.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351075 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-30 10:45:25 +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 5236d760ce Fix #79993: SplFileObject::flock has LOCK_NB as a valid operation
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350338 c90b9560-bf6c-de11-be94-00142212c4b1
2020-08-18 23:26:40 +00:00
Christoph Michael Becker 846e28ea1b SplFileObject: fix links in the seealso section
Patch contributed by Fabien Villepinte.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350079 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-23 21:57:57 +00:00
Christoph Michael Becker e327c1e70d Add missing changelog entry
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349909 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-18 06:48:04 +00:00
Christoph Michael Becker 6683589b3e Fix #79607: Wrong return type
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349901 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-17 10:58:29 +00:00
Yoshinari Takaoka 1a81ebd0f9 fixed changelog parameter name that follows parameter list description.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348831 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-07 11:23:49 +00:00
Christoph Michael Becker 929cec1734 Clarify that fgetss() is stateful
We also add related functionality in the see-also section.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348386 c90b9560-bf6c-de11-be94-00142212c4b1
2019-12-01 13:03:14 +00:00
Nikita Popov 81a88c05eb Fix bug #65269: SplFileObject::__construct() throws LogicException as well
Fix for [bug 65269](https://bugs.php.net/bug.php?id=65269).

Patch by BenMorel.

Closes GH-3.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347670 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-26 07:56:15 +00:00
Craig Duncan e298f1eaee Add changelog for SplFileObject::__toString()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347527 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-02 15:17:21 +00:00
Craig Duncan 2abaae34ef SplFileObject::__toString() is now an alias for SplFileObject::fgets()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347521 c90b9560-bf6c-de11-be94-00142212c4b1
2019-06-01 10:51:29 +00:00
Peter Cowburn 4f3c8fa26e remove duplicate word
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347364 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-01 19:40:43 +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 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 2a85fbcd7c Fix #77271: PHP 7.3: Various info missing from changelog/migration guide
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346281 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-10 15:24:21 +00:00
Christoph Michael Becker dd09ee01d8 Use already defined entities instead of repeating ourselves
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345853 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-19 14:51:45 +00:00
Christoph Michael Becker f381911905 Remove prototype from alias docs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345852 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-19 14:43:17 +00:00
Christoph Michael Becker 3b8a1b9c99 Fix return types
Since ::__toString() is documented as alias of ::current(), we use the same return
types. Obviously, this doesn't make sense, though, see <https://bugs.php.net/77024>.

Patch provided by an anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345849 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-19 13:03:49 +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 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
Christoph Michael Becker 47da3a2a8a Clarify behavior of $enclosure wrt. $escape_char
Cf. <http://svn.php.net/viewvc?view=revision&revision=344264>.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344267 c90b9560-bf6c-de11-be94-00142212c4b1
2018-02-15 15:35:54 +00:00
Jakub Vrana 6bba2efa47 Fix initializer
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344129 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-31 08:26:26 +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 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
Kalle Sommer Nielsen 78772dc008 Fix the fix for LOCK_NB on Windows, it seems that the SPL docs was wrong. Added flock()'s changelog to the SPL docs as well
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342695 c90b9560-bf6c-de11-be94-00142212c4b1
2017-07-24 21:03:28 +00:00
Christoph Michael Becker 95e3ed68b8 Fix return value documentation
Patch provided by anon user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342511 c90b9560-bf6c-de11-be94-00142212c4b1
2017-05-26 13:40:38 +00:00
Christoph Michael Becker 6ad6ddaac2 Fix example
Patch provided by Gavin Staniforth.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340477 c90b9560-bf6c-de11-be94-00142212c4b1
2016-10-14 09:37:13 +00:00