322 Commits

Author SHA1 Message Date
Jim Winstead 0545e305cf Normalize version strings in changelog entries (#3672)
Now they're always N.X.Y for a PHP version, or PECL extension N.X.Y for PECL extensions.
2024-09-23 11:15:26 -07:00
Mikhail Alferov e50e797467 Remove extra space characters (GH-3737)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-09-12 23:37:42 +02:00
haszi 48ce43fe79 Remove empty resources pages (#3545)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-26 02:17:29 +01:00
Jim Winstead b65b98da10 Use "unique" less in describing uniqid() (#3571)
* Use "unique" less in describing `uniqid()`

The identifier generated is time-based either in its entirety (with default options) or with some random data (with `more_entropy` enabled) so avoid describing it as unique without immediate caveats.

* Address comments by @TimWolla
2024-07-18 12:45:29 +01:00
haszi 605553e228 Remove empty requirements pages (#3464)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-07 14:34:34 +01:00
haszi 57d1b0df36 Remove empty installation pages (#3462)
Co-authored-by: haszi <haszika80@gmail.com>
2024-06-21 02:38:44 +01:00
Mikhail Alferov 78d17c25ee eval.xml: add link to ParseError exception page (#3446) 2024-06-14 16:13:40 +01:00
haszi e43797863f Update COMPILER_HALT_OFFSET ID (#3229)
Co-authored-by: haszi <haszika80@gmail.com>
2024-03-02 11:52:32 +00:00
Kamil Tekiela 36e1d917ef Improve description of defined (#3177) 2024-02-13 17:09:56 +00:00
Gina Peter Banyard d4d5216e7a [skip-revcheck] Replace PHP_INI_* with INI_* constants
Performed via a bash script which can be found on PR GH-3140

Closes GH-3140

Co-authored-by: haszi <haszika80@gmail.com>
2024-01-26 14:00:36 +00:00
Sergey Panteleev 443d81b33e [PHP 8.3] Update functions (#3106)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-01-16 16:36:49 +03:00
haszi d05c9017ad Closes GH-3103 (connection_status(): Add link to constants) (#3104)
Co-authored-by: haszi <haszika80@gmail.com>
2024-01-11 18:47:34 +00:00
chx 68308f0095 Integrate a modified scoping user note from include to eval (#2850) 2023-10-27 17:51:31 +01:00
沈唁 658c808b55 Fix typo (#2483) 2023-05-18 22:27:26 +02:00
HypeMC 6c3091b54b Document that constant & defined work with enums (#2053) 2023-05-09 19:39:26 -05:00
Pierrick Charron cdc9d28d33 Replace <literal>true/false</literal> by their respective entities (#2399)
* Replace <literal>true/false</literal> by their respective entities

* Fixes
2023-04-03 17:29:55 -04:00
othercorey 7926717892 Remove outdated pack() return false description (#2333) 2023-03-03 00:28:15 +00:00
USAMI Kenta 3441bb1c98 Use milliseconds instead of seconds (#2113) 2022-12-24 20:36:51 +09:00
Tim Düsterhus 52c495140b random: Clean up cross-references for randomness related functions (#2008)
* random: Reference the corresponding Randomizer methods in random_(bytes|int)

* random: Cross-reference the Randomizer in `str_shuffle()`

* random: Cross-reference the Randomizer in `shuffle()`

* random: Cross-reference the Randomizer in `array_rand()`

* random: Cross-reference `random_bytes()` in `uniqid()`

* random: Do not cross-reference `uniqid()` in `openssl_random_pseudo_bytes()`

uniqid() really is no good alternative to *anything*. In the vast majority of
cases it is better replaced by `bin2hex(random_bytes(…))`.

* random: Replace the `mt_rand()` cross-reference in `openssl_random_pseudo_bytes()` with `random_int()`

random_int() is a CSPRNG like openssl_random_pseudo_bytes(), mt_rand() is not.
2022-11-15 11:19:28 +01:00
Christoph M. Becker 0abd79a0d9 Fix GH-1802: sleep() missing false return type 2022-09-07 11:39:06 +02:00
Christoph M. Becker a16ae57ad9 Fix GH-1711: usleep has 50µs+ overhead
Sleeping slightly longer than the given time is not specific to Windows.
We adapt the note, and use wording taken from the `usleep(3)` man page.
2022-07-29 17:09:34 +02:00
rxall 87520f8422 sleep() additional notes
This integrates user note 54587.

Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-1728.
2022-07-29 13:30:00 +02:00
Jeff Bowen 0090e5a2fa functions/constant Minor tweak to "errors" section (#1565) 2022-06-27 16:20:48 -05:00
USAMI Kenta 0e8fa6aa16 Add reference to get_defined_constants() and constant() each other (#1642)
* Add reference to get_defined_constants()

* Add reference to constant()
2022-06-23 18:22:04 +09:00
Dan c36ce0b514 [8.0] Document remaining core changes
* document changes to `new` in php 8.0

* document php 8.0 changes for `instanceof`

* document php 8.0 change to `define`

Co-authored-by: Peter Cowburn <petercowburn@gmail.com>

Closes GH-1155.
2021-12-14 18:34:40 +01:00
Christoph M. Becker 761f713125 Fix GH-1182: constant() throws Error exception as of PHP 8.0.0 2021-12-08 13:53:42 +01:00
Máté Kocsis 426d9a8f15 Generate sapi_windows_* method synopses based on stubs
Closes GH-1023.
2021-10-14 14:29:32 +02:00
Alexander Pas 3c699fad2d Fix mixed return type declarations and parameters of Misc. Functions (#942) 2021-09-21 12:11:43 +01:00
Máté Kocsis 7f99d5e488 Remove some unnecessary methodsynopsis role attributes (#913) 2021-09-14 14:37:29 +02:00
Sergey Panteleev 4411b371d0 Fix some issues in misc directory
Part of #658
2021-06-13 12:54:30 +03:00
Máté c44475e1fa Generate methodsynopses based on stubs for Zend functions and methods
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-168.
2021-05-22 16:48:16 +02:00
Sergey Panteleev f9c4a68ef4 Removed references to PHP 5, PHP 7.0 (#548) 2021-04-26 11:46:55 +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
Christoph M. Becker 95bc76b545 Fix #74479: usleep with large numbers 2021-03-03 14:40:16 +01:00
Yoshinari Takaoka 705313ab21 Added PHP 8 into versions.xml for misc based on stubs.
Closes GH-410.
2021-01-26 18:21:38 +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
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 afddb41986 Improve return value description based on Tyson's suggestion
Cf. <https://github.com/php/doc-en/pull/243#issuecomment-735011633>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351712 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-27 23:51:15 +00:00
Christoph Michael Becker 74abd95c4e Argument of sapi_windows_cp_get is optional
Closes GH-243.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351710 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-27 23:22:31 +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 a532689f9f Fix #80187: pack and unpack wrong return type
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350770 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-05 10:23:13 +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 5ebd63a4b5 Reflect removal of functions dropped in minor or patch releases
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350652 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:40:03 +00:00
Christoph Michael Becker be1cedff74 Fix #79871: On Windows, php can sleep only in 1ms steps
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350174 c90b9560-bf6c-de11-be94-00142212c4b1
2020-07-20 09:11:51 +00:00
Christoph Michael Becker e78b64d1cc Fix #79284: mention htrime on page microtime
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349239 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-20 08:14:20 +00:00