1
0
mirror of https://github.com/php/doc-en.git synced 2026-04-28 01:33:12 +02:00
Commit Graph

414 Commits

Author SHA1 Message Date
Alex Dowad e2e41fdb46 Clarify handling of 3rd parameter for assert callbacks
The handling of the 3rd parameter for assert callbacks set via `assert_options`
changed with the implementation of the expectations RFC, and changed again in
PHP 8. Update the documentation accordingly.

This one seems to be a cause for confusion; witness Bug [#79602]
(https://bugs.php.net/bug.php?id=79602).

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

Closes GH-120.
2023-01-04 17:57:44 +01:00
Florian Engelhardt 87955a630a Add docs for ini_parse_quantity function (#1810)
Co-authored-by: Florian Engelhardt <florian.engelhardt@r-nw.de>
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2022-12-05 17:11:59 +00:00
Christoph M. Becker a89c6d71c7 ZTS builds are no longer experimental 2022-11-14 15:01:29 +01:00
Florian Engelhardt 57015edfe2 Add docs for memory_reset_peak_usage() (#1809)
Co-authored-by: Florian Engelhardt <florian.engelhardt@r-nw.de>
2022-09-26 10:49:02 +01:00
Christoph M. Becker 928e363675 Clarify availability of dl()
We deliberately ignore potential custom SAPIs.

This integrates user note 116174.
2022-09-14 14:02:26 +02:00
Michael Voříšek ec0e479536 Update get_loaded_extensions() output example
To  stress the names are not in LC and Core is present.

Closes GH-1819.
2022-09-12 14:50:11 +02: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
Christoph M. Becker 7639cf8773 ZTS support doesn't forbid/disable dl()
The apparently erroneous note might stem from the respective error
message[1].

[1] <https://github.com/php/php-src/blob/PHP-5.3/ext/standard/dl.c#L76-L86>
2022-05-02 17:46:01 +02:00
Rowan Tommins 99d758bd25 Improve documentation of string encoding conversion functions
- Move utf8_encode and utf8_decode into the strings chapter, since
  they were moved out of the XML extension in 7.2
- Recommend mb_convert_encoding, iconv, and UConverter::transcode
  when mentioning encoding in passing
- Document UConverter::transcode, based on examination of source
  and upstream ICU docs
- Make the language used more consistent, e.g. "convert" rather
  than "encode"/"decode", "encoding" rather than "charset"

Closes GH-1418.
2022-04-04 12:24:24 +02:00
Kamil Tekiela 59af09939a Remove double parentheses in assert 2022-03-20 21:21:08 +00:00
Bradley Taylor 883d2fe5cb assert() no longer evaluates strings as of PHP 8.0.0
As per the PHP changelog, the functionality to use a string for `assert` has been removed in PHP 8.0: https://github.com/php/php-src/blob/69888c3ff1f2301ead8e37b23ff8481d475e29d2/UPGRADING#L350-L354

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

Closes GH-1471.
2022-03-20 11:59:40 +01:00
Christoph M. Becker 202db6be13 Drop main dummy manual page
This doesn't appear to be relevant for years, anyway.

Closes GH-1282.
2022-01-14 23:33:58 +01:00
Christoph M. Becker 16805838e7 Fix GH-1318: get_resources has access to object-controlled resources 2022-01-11 15:57:27 +01:00
Máté Kocsis 0773339dce Generate various method synopses from stubs - part 5 (#1234) 2021-12-22 14:18:28 +01:00
Máté Kocsis 4e6f0774f0 Generate a few ext/standard method synopses from stubs (#1013) 2021-10-12 16:04:26 +02:00
Kim Hallberg 017824544c Remove php_logo_guid references (#934) 2021-09-09 11:46:11 +08:00
Christoph M. Becker 1d06db6914 ini_get_all() $extension is nullable and synomymous to 'core'
Cf. <https://bugs.php.net/bug.php?id=69361>.
2021-08-18 15:47:28 +02:00
Kamil Tekiela 9d2b858bca Remove magic_quotes_runtime docs
Closes GH-719.
2021-06-25 19:27:30 +02:00
Sergey Panteleev 8dd14a886c Fix issues in Info directory
Part of #658
2021-06-10 12:38:11 +03:00
Christoph M. Becker ab36e3826c Update ini_restore() example
y2k_compliance is removed as of PHP 5.4.0.
2021-06-04 11:11:39 +02: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 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
蝦米 dd52212027 fix #80766 namespaced assert is no longer allowed 2021-04-20 01:54:29 +08:00
Yurun 4d02fe98dd Improve variable name in example (#529) 2021-04-19 12:07:44 +02:00
Fabien Villepinte be008069eb Update methodsynopsis: getenv() may return false
Closes GH-452.
2021-02-17 12:17:17 +01:00
Marcos Scaianschi e53495bc3a Describe $long_options of getopt()
Closes GH-433.
2021-02-05 13:24:47 +01:00
Christoph M. Becker 5e6356373c Document that 3 options/info functions are removed as of PHP 8.0.0 2021-01-18 12:45:16 +01:00
George Peter Banyard f029b664b8 Remove magic quote mentions 2021-01-16 10:39:39 +00:00
George Peter Banyard d278431ef5 Remove docs about NSAPI
This SAPI has been removed in PHP 7
2021-01-13 12:49:23 +00: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 a331ac8a86 Generate sapi methodsynopses based on stubs
Closes GH-285.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352190 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-26 14:27:07 +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 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 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 74d39a807a Minor amendment to safe_mode info removal
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350887 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-14 21:21:06 +00:00
Christoph Michael Becker dec1f8445a Remove safe_mode related information
Sorry, translators, for breaking your builds again.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350871 c90b9560-bf6c-de11-be94-00142212c4b1
2020-10-13 22:07:26 +00:00
Christoph Michael Becker e443388d42 Remove info about SAPIs which are removed as of PHP 7.0.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350661 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 16:56:25 +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 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 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 428f19e346 Remove functions no longer present in PHP 7.0.0
Patch contributed by Sobak <msobaczewski@gmail.com>.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350648 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 12:43:20 +00:00
Nikita Popov de7a562901 Add note on default value of $description param for assert
Patch by alexdowad.

Closes php/doc-en#117.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350018 c90b9560-bf6c-de11-be94-00142212c4b1
2020-06-09 07:49:32 +00:00
Andrey Gromov bbd4f6a100 Typo
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349184 c90b9560-bf6c-de11-be94-00142212c4b1
2020-02-09 08:47:39 +00:00