Commit graph

26859 commits

Author SHA1 Message Date
Tyson Andre
8b7fb1d4ac Improvements to stat() - document other file types
Document character device and sockets

Link to SplFileInfo.
Unlike stat(), SplFileInfo throws instead of emitting a notice,
which is convenient for avoiding the error handler.
(file_exists() returns files that exist but are unreadable)

Related to GH-319

Closes GH-322.
2021-02-15 16:37:42 +01:00
Tyson Andre
ce10bc07c5 Delete the PHP 5 SPL_Types extension.
Months ago, PHP removed php 5 documentation and changelogs
of core functionality

- https://pecl.php.net/package/SPL_Types was last updated in 2012
  and is not maintained.
- SPL_Types is easy to confuse with the SPL
- SPL_Types can cause confusion because PHP has typed properties(7.4),
  and will probably also have actual enums in 8.1
  https://www.php.net/spl_types

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

Closes GH-448.
2021-02-15 16:30:52 +01:00
Christoph M. Becker
ec4849a758 Add note regarding upper case and lower case ciphers
This integrates user note 123319.

Cf. <https://github.com/php/doc-en/pull/310#issuecomment-756140676>.
2021-02-15 16:09:24 +01:00
Fynn Tang
77d4719f95 Update openssl-get-cipher-methods.xml
Update PHP7.4 All methods under version

Closes GH-310.
2021-02-15 16:06:12 +01:00
Anna Filina
b65a894b95 Other queries can also produce a result set
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-324.
2021-02-15 15:53:07 +01:00
Tyson Andre
565d140248 Update note on print_r() and var_export() using output buffering
var_export stopped using output buffering to convert output to a string
long before php 7.0. See
https://github.com/php/php-src/blob/PHP-7.0/ext/standard/var.c#L564-L582

highlight_string/highlight_file are still using output buffering.

```
<?php
function my_buffer($value) {
    fprintf(STDERR, "var_export output: %s\n", var_export(array(), true));
    fprintf(STDERR, "print_r output: %s\n", print_r(array(), true));
    //fprintf(STDERR, "highlight_string output: %s\n", highlight_string('2+2', true));
    return $value;
}
ob_start('my_buffer');
echo "test";
$result = ob_get_clean();
echo "Result: $result\n";
```

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

Closes GH-381.
2021-02-15 15:32:20 +01:00
Yoshinari Takaoka
ae956cd678 Named Arguments are also supported. 2021-02-15 23:28:58 +09:00
Christoph M. Becker
ec82016458 Fix #73721: possible error 2021-02-15 15:01:00 +01:00
Yoshinari Takaoka
102518ddc2 In OpenSSL extension, configargs parameter name was renamed to options.
Closes GH-447.
2021-02-14 03:14:15 +09:00
Yoshinari Takaoka
2e02eeb871 s/configarg/option/ because configarg was renamed to options. 2021-02-14 01:51:09 +09:00
Christoph M. Becker
c3dad7c6ad datefmt_set_timezone_id() is removed as of PHP 7.0.0 2021-02-13 16:49:07 +01:00
Máté Kocsis
ce46b05403 Generate intl methodsynopses - IntlDateFormatter
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-340.
2021-02-13 16:47:02 +01:00
Máté Kocsis
b548fc8e55 Generate intl methodsynopses based on stubs - Grapheme, IDN
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-341.
2021-02-13 15:50:53 +01:00
Máté Kocsis
16152718af Generate intl function methodsynopses 2021-02-13 15:40:33 +01:00
Sebastian Schendel
46efcedd4a Allow Throwable for $previous param
In current PHP versions the Exception-class seems to allow all Throwable
values for its constructor's $previous param instead of only values of
type Exception.

Closes GH-442.
2021-02-13 15:39:45 +01:00
Máté Kocsis
03841ffe37 Generate intl methodsynopses - Collator
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-339.
2021-02-13 15:38:21 +01:00
George B
86951bfac9 Update attributes.xml: Adjustments to grammar
Closes GH-445.
2021-02-13 14:55:49 +01:00
Ondřej Mirtes
2d2492f8d5 Fixed simplexml_import_dom return type
Closes GH-446.
2021-02-13 14:53:38 +01:00
Christoph M. Becker
c7d18f5a16 Update openssl_csr_sign docs wrt. PHP 8.0
Co-authored-by: Máté Kocsis <kocsismate@woohoolabs.com>
2021-02-13 14:52:12 +01:00
Máté Kocsis
d1e3ea622e Generate openssl methodsynopses based on stubs
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-309.
2021-02-13 14:43:23 +01:00
Christoph M. Becker
230b56bf45 Fix #76314: Specify failure return type for soundex
There is no more failure as of PHP 8.0.0, and the former behavior is
already described in the changelog.  We clarify the return value,
though.
2021-02-12 16:22:08 +01:00
Christoph M. Becker
8440ee35c0 Fix #62823: datetime.formats.compound regex issue 2021-02-12 14:40:11 +01:00
Christoph M. Becker
2b06e6be13 Fix #61044: invalid PHP_BINDIR 2021-02-12 14:35:22 +01:00
Christoph M. Becker
b3d7fa5000 Add separate section for magic constants
It is pretty confusing to only have a section about "Magic constants"
with the xmlid `language.constants.predefined` but to start that
section with a paragraph about predefined constants.
2021-02-12 14:22:24 +01:00
Christoph M. Becker
a6655e3f95 Fix #75787: Array iterator functions misleading 2021-02-12 13:16:42 +01:00
Christoph M. Becker
efaedacb53 Fix #69884: mysqli->connect_error seems to be shared across objects 2021-02-12 13:09:48 +01:00
Rowan Tommins
99b8716337 Remove incorrect note about autoloading in interactive CLI
This was apparently added in response to a bug report against PHP
5.2 [https://bugs.php.net/bug.php?id=40775]. Testing suggests the
limitation was removed at least as long ago as 5.6, and probably
earlier.

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

Closes-GH444.
2021-02-11 23:28:27 +01:00
Christoph M. Becker
12932e34aa Fix #77771: empty description of APCu in its introduction
We add the description from the source's README.
2021-02-11 12:07:19 +01:00
Christoph M. Becker
e154522a5a Fix #79136: ssh2_sftp_mkdir affected by umask 2021-02-10 16:26:37 +01:00
Christoph M. Becker
2c3e4c33df Fix ssh2_shell() signature and return type section 2021-02-10 15:55:49 +01:00
Christoph M. Becker
a5a946a88e opcache.cache_id defaults to "" 2021-02-10 15:13:44 +01:00
Yoshinari Takaoka
f114783c6e changed deprecation function warning as of PHP 8.0.0. 2021-02-10 03:59:29 +09:00
Yoshinari Takaoka
cb3e68d99d changed warning about deleted functions as of PHP 8.0.0. 2021-02-10 03:44:01 +09:00
Christoph M. Becker
e579f9c938 Spl is always available 2021-02-08 19:15:54 +01:00
Dennis Væversted
400e9623d3 Added missing documentation for openssl_pkey_derive
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-437.
2021-02-08 14:11:44 +01:00
Tyson Andre
2b5c6c13ce Update APCu settings defaults documentation
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>

Closes GH-439.
2021-02-08 12:04:11 +01:00
Christoph M. Becker
e7ae971d84 Remove obsolete PHP 5 related info 2021-02-08 10:42:44 +01:00
Tyson Andre
2d031e7e94 Add a note that json is always available in php 8.0
See https://wiki.php.net/rfc/always_enable_json

Base the wording on https://www.php.net/manual/en/hash.installation.php

Closes GH-438.
2021-02-08 10:41:41 +01:00
Tyson Andre
a0f6f53786 Add the standard PECL installation instructions to APCu
https://www.php.net/manual/en/apcu.installation.php would be confusing
to new users. A recent user note coincidentally mentions this.

Closes GH-440.
2021-02-08 10:38:59 +01:00
Christoph M. Becker
59e6c12114 Gettext maintains some info per process, not per thread
Cf. <https://github.com/php/php-src/pull/6641>.
2021-02-08 10:26:46 +01:00
Marcos Scaianschi
e53495bc3a Describe $long_options of getopt()
Closes GH-433.
2021-02-05 13:24:47 +01:00
Christoph M. Becker
6f540a4bf2 Fix #80712: getcwd(): return type includes false 2021-02-05 13:22:48 +01:00
Christoph M. Becker
71b8a95796 Don't show procedural APIs of IntlCalendar in class synopsis 2021-02-03 19:49:45 +01:00
Christoph M. Becker
168da129a8 Document that pthreads is dead
Cf. <https://github.com/krakjoe/pthreads/issues/929>.
2021-02-03 14:09:51 +01:00
George Peter Banyard
783fbc2001
Add exponentiation assignment operator to corresponding table 2021-02-03 01:46:50 +00:00
Martin Samesch
7d763b79e5 fix fix; need some coffee 2021-02-02 12:05:13 +01:00
Martin Samesch
04c08d2238 really remove PHP 5 changelog 2021-02-02 12:01:17 +01:00
Martin Samesch
fc54f9a81a fix example; remove PHP 5 changelog 2021-02-02 11:58:19 +01:00
Christoph M. Becker
fa6c013865 Remove obsolete info from security.database.storage page 2021-02-01 15:45:52 +01:00
Christoph M. Becker
b2b73a1550 Fix #77799: Database security information is outdated 2021-02-01 15:43:52 +01:00