Commit graph

770 commits

Author SHA1 Message Date
Jakub Bouček
e59e8d31d8
DateTime::createFromFormat - fix misleading epoch info
Closes GH-1019.
2021-10-13 16:36:58 +02:00
Danack
b95e76e41d
Types are not hints in PHP. (#1003)
As they are checked at run-time, type checking is enforced in PHP and not 'hinted'.

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2021-10-09 14:43:01 +01:00
Derick Rethans
2245d53f61 Updated to version 2021.3 (2021c) 2021-10-08 12:51:28 +01: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
aabe0e631b
Fix typo (preceeded 26 preceded) 2021-10-01 15:54:02 +02:00
Christoph M. Becker
a8f160fa97
Fix #62476: DateTime::createFromFormat z format incorrect wrt 29.02
While this is only a hard requirement as of PHP 8.0.10, without an
explicit year before the day-of-year, previous versions always assumed
on non leap year, as Derick pointed out in chat, so users need the
explicit year anyway for correct code.
2021-10-01 15:33:54 +02:00
Yoshinari Takaoka
a4ba07f273
fixed localtime returnvalues description. (#692)
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
Co-authored-by: Anna Filina <afilina@gmail.com>
2021-09-17 21:28:56 +01:00
George Peter Banyard
e1861aa943
Remove duplicate 0 2021-09-05 14:59:33 +01:00
Christoph M. Becker
659fbc4d32
Fix #894: DateTime::setTimezone never returns false 2021-09-03 18:33:10 +02:00
Peter Cowburn
2e8ef0a1bd
hyphenate "object-oriented"
refs #846
2021-08-08 18:48:47 +01:00
Christoph M. Becker
cafd6b7449
Fix #76748: date format timezone abbreviations and changes not well documented 2021-08-04 16:55:59 +02:00
Máté Kocsis
ab57ab6849
Mark a few interfaces as oointerface rather than ooclass (#818) 2021-07-30 17:01:16 +02:00
Christoph M. Becker
4ec526180c
Describe range of default_longitude and _latitude
Closes GH-745.
2021-07-03 12:52:37 +02:00
Sergey Panteleev
d91e36266d
Fix issues in mcrypt and datetime directories (#691)
Part of #658
2021-06-15 18:27:03 +03:00
Sergey Panteleev
70fe4159bf
Fix some issues in datetime directory
Part of #658
2021-06-10 16:36:10 +03:00
Sergey Panteleev
3263a6218e
DateInterval: weeks and days can be combined since 8.0.0 (#637)
Closes #633
2021-05-29 08:59:50 +03:00
Sebastian Hädrich
e2c7b3635d
Add link to spec (#613)
* Add link to spec

* Make entity lowercase for consistency
2021-05-21 15:24:46 +03:00
Sergey Panteleev
8cdc6621f9
Remove PHP 5, 7 references (#563)
- array functions
- datetime functions
- mbstring functions
- strings functions
- var functions
- xml functions
- json functions
2021-05-16 22:07:40 +03:00
Sergey Panteleev
a0ae28d3bc
Removed references to PHP 5, PHP 7.0 (#545) 2021-04-24 20:01:17 +03:00
Sergey Panteleev
5fabd07880
Removed Changelog entries for PHP 5, PHP 7.0 (#543) 2021-04-22 17:52:58 +03: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
Christoph M. Becker
6936064e73
Fix #74982: strftime %P not working on Alpine Linux 2021-04-12 14:12:41 +02:00
Christoph M. Becker
6dfe076725 xi:include INI settings documented elsewhere in ini.list
We do not xi:include core INI settings, since we want to keep
alphabetic sort order (well, roughly at least).

We do add xi:fallback elements to all xi:includes, just in case.
2021-02-24 17:58:20 +01:00
Christoph M. Becker
8440ee35c0 Fix #62823: datetime.formats.compound regex issue 2021-02-12 14:40:11 +01:00
Christoph M. Becker
f3bc618211 Fix #66104: strtotime reports "2011-02-31" and "2011-11-31" as valid dates
We upgrade the already existing note to caution.

While we're at it, we also remove obsolete info in that document.
2021-01-28 17:25:54 +01:00
Christoph M. Becker
511dd10754 The format char p is only available as of PHP 8.0.0.
This integrates user note 125722.
2021-01-25 14:20:24 +01:00
Derick Rethans
886e4188e6 Updated to version 2021.1 (2021a) 2021-01-25 10:54:22 +00:00
Christoph M. Becker
5849b8f508 Remove obsolete date function entries
These have been shipped with PECL/date 0.1, but did not make it into
PHP 5.2.0.
2021-01-24 12:21:18 +01:00
Yoshinari Takaoka
88f02b1cd1 Added PHP 8 into versions.xml for date based on stubs.
Closes GH-378.
2021-01-24 12:07:30 +01:00
Máté Kocsis
a411286750 Generate methodsynopses based on recently updated stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-362.
2021-01-18 23:31:36 +01:00
Christoph M. Becker
c2120bd346 Update some methodsynopses
Cf.
<7290dc4dcf>,
<c31f9f7ee4>.
2021-01-18 19:45:28 +01:00
Christoph M. Becker
0a10abc505 Fix #75073: date_default_timezone_set() doesn't reflect removal 2021-01-15 15:45:42 +01:00
Christoph M. Becker
a626743ba6 DatePeriod::__construct() no longer accepts 0 $recurrences
Cf. <https://bugs.php.net/bug.php?id=78590>.

We also document the default value of `$options`, and remove the PHP 5
related changelog entries.
2021-01-13 13:10:30 +01:00
DColt
2424a1accc Whitespace fix for datetime.getoffset
Closes GH-307.
2021-01-02 23:36:03 +01:00
Christoph Michael Becker
0c9c2dd669 Generate some standard methodsynopses based on stubs
Cf. <https://github.com/php/doc-en/pull/289>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352191 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 19:26:31 +00:00
Yoshinari Takaoka
260c0b8f4d Fixed oop return type of DateTimeInterface::getOffset.
Closes CH-282.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352182 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 10:20:49 +00:00
Christoph Michael Becker
0ec192da9f date_timestamp_get() and aliases do no longer return false on failure
Cf. <b67c232189 (r45293163)>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352146 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 22:35:30 +00:00
Christoph Michael Becker
4d5206538d Fix return types
All these aliases may return false.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352145 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 18:36:10 +00:00
Christoph Michael Becker
9d45296587 Calling (gm)mktime() without arguments is deprecated as of PHP 7.0.0
We drop the duplicate notes section, but instead of moving the information down
to the end of the page, we add it to the function description.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352144 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 16:18:40 +00:00
Christoph Michael Becker
34188f8256 Generate ext/date methodsynopses based on stubs
Closes GH-185.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352143 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-20 15:06:41 +00:00
Christoph Michael Becker
45c7531e42 Fix #66777: strftime returns empty string when input fmt string exceeds 1024
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352122 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-18 12:37:56 +00:00
Christoph Michael Becker
e8af4bab45 Add createFromInterface() for DateTime objects
Closes GH-257.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352009 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-10 23:12:47 +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
243afef598 Document p date formatter code
Closes GH-230.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351587 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-24 18:10:24 +00:00
Christoph Michael Becker
bc27cd7cfc Remove obsolete PHP 5 specific info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351586 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-24 18:05:28 +00:00
Christoph Michael Becker
aa0b16c829 Remove obsolete PHP 5 specific info
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351196 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-03 16:49:50 +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