Riikka Kalliomäki
67268fc268
Update index_key handling in array_column for php8
...
Closes GH-460.
2021-03-08 18:32:22 +01:00
Dharman
d59f3c6684
Improve MySQLi Quick Start guide
...
Co-authored-by: Anna Filina <afilina@gmail.com>
Closes GH-184.
2021-03-08 18:28:58 +01:00
Dharman
a3a310ccc2
Remove try-catch from PDO examples
...
Also fix erroneous indentation.
Co-authored-by: Anna Filina <afilina@gmail.com>
Closes GH-323.
2021-03-08 17:03:42 +01:00
Christoph M. Becker
80958298c0
Fix wording in example
...
The evaluation order is irrelevant; what matters is the associativity.
This amends commit bcd666c7d0
.
2021-03-08 16:19:09 +01:00
Michael Voříšek
bcd666c7d0
Fix ternary precedence
...
We also fix the misleading note about the ternary operator's
associativity.
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-470.
2021-03-08 16:11:18 +01:00
Kunal Mehta
5145d40353
Update for LuaSandbox 4.0.0
...
Copies changes made in <https://gerrit.wikimedia.org/g/mediawiki/php/luasandbox >:
* Drop support for PHP 5 & HHVM, add PHP 8 support
* Remove stretch-backports instructions (no longer functional)
Closes GH-471.
2021-03-08 11:25:24 +01:00
fullbl
793c9fc579
SimpleXMLElement::attributes() may return NULL
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-482.
2021-03-08 11:22:03 +01:00
Yoshinari Takaoka
8e7cce7b98
fixed Static resolution operator (::) link, point to paamayim-nekudotayim page.
2021-03-05 23:21:40 +09:00
Yoshinari Takaoka
33e300f8f0
added missing UnhandledMatchError version info.
2021-03-05 22:17:32 +09:00
George Peter Banyard
9ee9eccf45
Refactor OO section part 2
...
Some misses from the first time
Signed-off-by: Larry Garfield <larry@garfieldtech.com>
Closes GH-329
2021-03-04 17:06:22 -06:00
Yoshinari Takaoka
f09e04a352
We can use debug_zval_dump function in PHP 8, too.
...
$ php --version
PHP 8.0.3 (cli) (built: Mar 3 2021 02:12:40) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.3, Copyright (c) Zend Technologies
with Zend OPcache v8.0.3, Copyright (c), by Zend Technologies
with Xdebug v3.0.2, Copyright (c) 2002-2021, by Derick Rethans
$ php -r "\$var=[1,2,3,4]; debug_zval_dump(\$var);"
array(4) refcount(4){
[0]=>
int(1)
[1]=>
int(2)
[2]=>
int(3)
[3]=>
int(4)
}
2021-03-05 01:02:18 +09:00
Rowan Tommins
d08d2e887f
Rewrite debug_zval_dump manual based on current (>=7.0) behaviour
...
- The recommended use of a call-time pass-by-reference has been
impossible since PHP 5.4, making the examples unusable.
- The re-design of references in PHP 7.0 means that the refcount
no longer reflects these.
Closes GH-466.
2021-03-03 15:34:17 +01:00
Christoph M. Becker
95bc76b545
Fix #74479 : usleep with large numbers
2021-03-03 14:40:16 +01:00
Christoph M. Becker
d7dbb4196a
iconv_mime_decode_headers() doesn't treat headers case-insensitively
...
Cf. <https://bugs.php.net/40462 >.
2021-03-03 14:34:53 +01:00
Christoph M. Becker
7c6c83d08e
Document opcache.cache_id for IIS app pools
...
Cf. <https://bugs.php.net/80812 >.
2021-03-02 12:44:37 +01:00
Marko Kaznovac
537b504c17
add ob_implicit_flush.flag-param change log for php 8.0
...
Closes GH-462
Signed-off-by: George Peter Banyard <girgias@php.net>
2021-02-26 03:26:46 +00:00
Christoph M. Becker
f1b211f5c8
Remove mime_magic documentation
...
This extension is removed as of PHP 5.3.0, and apparently never made it
to PECL. It it not to be confused with the fileinfo extension.
2021-02-24 18:29:14 +01:00
Christoph M. Becker
2b1cecf44a
xsl.security_prefs is removed as of PHP 7.0.0
...
Interestingly, the page which described this setting was never included
in the manual.
2021-02-24 18:15:43 +01: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
Alex Pavlov
e1bdd7825e
Added constants for buffer`s mode
...
Closes GH-461.
2021-02-24 15:59:24 +01:00
Christoph M. Becker
efe24a91ef
Fix #80795 : Incorrect arguments signature for LimitIterator
2021-02-24 15:55:49 +01:00
Christoph M. Becker
7cc00859d2
Remove obsolete info from ini.list
...
We remove options which are no longer valid for PHP 7/8, and remove
obsolete availability info as well.
2021-02-24 15:47:41 +01:00
Christoph M. Becker
e13ef15bd9
Remove obsolete INI options from ini.list
...
Except for pecl_http, the related extensions are obsolete. pecl_http
has its documentation removed from the manual quite a while ago (it is
hosted elsewhere now), so we remove the INI options as well (there
likely outdated, anyway).
2021-02-24 15:36:41 +01:00
Christoph M. Becker
09024d1647
Remove dbx documentation
...
The extension is marked as unmaintained, and had its latest release on
2011-08-11.
2021-02-24 15:11:47 +01:00
Christoph M. Becker
8465ce5fc8
Remove blenc documentation
...
The package is marked as unmaintained, and had its latest release in
2014-04-27. It is highly unlikely that it is compatible with PHP 7.
2021-02-24 15:08:09 +01:00
Christoph M. Becker
3e08a8aae6
Remove obsolete PHP 5 related info from ini.core and related pages
2021-02-24 14:32:08 +01:00
Christoph M. Becker
0eaef37f83
Fix #80789 : Return type includes false
2021-02-23 13:38:47 +01:00
Dharman
ca5c477437
Improve mysqli_fetch_* functions docs
...
* Aligned examples. OO and procedural examples where using different
variable names. An example of iterator was using different style and
data
* Improved descriptions. Some words were confusing and even wrong.
* Aligned notes. All notes are in the same place and follow similar grammar
* Removed manual error checking from examples
* Removed unnecessary LIMIT 50,5
* Added .similar to the example results
Co-authored-by: Anna Filina <afilina@gmail.com>
Closes GH-207
2021-02-22 17:57:29 +01:00
Alex Erohin
529359031b
Add final example includes all variations of type casting and overwriting
...
Closes GH-450.
2021-02-22 17:48:22 +01:00
Christoph M. Becker
3ba291b86a
Slightly improve previous commit
...
Sorry, forgot to do right away.
2021-02-22 17:25:33 +01:00
Alex Erohin
3801e08ff8
Added protected property example for Object To Array conversion
...
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
Closes GH-453.
2021-02-22 17:10:05 +01:00
Maurício Meneghini Fauth
6172f135bc
Document the MYSQLI_TYPE_JSON constant
...
Closes GH-458.
2021-02-22 16:59:15 +01:00
Martin Samesch
9e8ce329fd
fix parameter names
2021-02-21 20:54:43 +01:00
Martin Samesch
7ae2b3f82d
merged two changelog sections
2021-02-20 19:03:17 +01:00
Christoph M. Becker
def2d256ef
Fix #47091 : ftp_mdtm adjusts for local timezone
2021-02-19 16:40:46 +01:00
Christoph M. Becker
7786b06044
Fix #73642 : ftp_mkdir make an error if folder exist
2021-02-19 15:53:42 +01:00
Christoph M. Becker
88c1f8d6c9
Fix/clarify dirname/basename docs wrt. locales
...
For basename(), we declare the behavior regarding invalid characters in
the path as being undefined, since that depends on the availability of
mblen, and also on the position of the invalid characters prior to PHP
8.0.0[1].
dirname() is actually not local-aware, but relies on an ASCII
compatible character encoding regarding the directory separator. On
Windows, it is however, dependent on the currently set codepage
(although a fallback is still in place to use the Windows ANSI codepage
of the operating system[2], if the string is not valid for the current
codepage).
Again, we declared failure to comply to these assumptions as resulting
in undefined behavior. Users should make sure to pass valid strings.
[1] <http://git.php.net/?p=php-src.git;a=commitdiff;h=90705d44e3da1d0aa7b8b4fd921ec597391eccb2 >
[2] <5e01542526/win32/codepage.h (L95-L106)
>
2021-02-19 15:12:33 +01:00
George Peter Banyard
871df69f47
Explain what consistitutes a more specific type
...
Closes GH-457
2021-02-18 18:00:47 +00:00
Edgar
d446e9e831
Update json-encode.xml
...
Should be 'flags' instead of 'options' because argument `$options` was renamed to `$flags`.
Closes GH-455
Signed-off-by: George Peter Banyard <girgias@php.net>
2021-02-18 17:14:34 +00:00
Alex Pavlov
07b6d42577
Add constants SCM_RIGHTS, SCM_CREDENTIALS
...
Closes GH-456
Signed-off-by: George Peter Banyard <girgias@php.net>
2021-02-18 17:12:39 +00:00
George Peter Banyard
12b1d4704e
Cleanup and update docs related to @ operator
...
Also fix part of the set_error_handler() docs
Closes GH-441
2021-02-18 16:31:56 +00:00
Christoph M. Becker
93577455fe
Fix #80767 : not just options(), but also ssl_set() can be called before real_connect()
2021-02-18 12:07:57 +01:00
Christoph M. Becker
4dfe5cc41e
Fix #77889 : URL in Location header not used
2021-02-17 14:28:06 +01:00
Christoph M. Becker
471f9f42cd
error_log($msg, 0) always returns true
...
Cf. <https://bugs.php.net/66760 >.
2021-02-17 12:52:28 +01:00
Edgar
ea70bbb2cb
Update argument names of http_build_query()
...
See:
print_r((new \ReflectionFunction('http_build_query'))->getParameters());
Closes GH-443.
2021-02-17 12:22:28 +01:00
Fabien Villepinte
be008069eb
Update methodsynopsis: getenv() may return false
...
Closes GH-452.
2021-02-17 12:17:17 +01:00
Alex Erohin
e4c3d5d495
Update example
...
mysql_connect() and new_xmldoc() are deprecated/removed.
Closes GH-454.
2021-02-17 11:54:42 +01:00
Christoph M. Becker
64f2f1c70d
Revert "fixed broken [build|link]."
...
This reverts commit 8ef027f131
.
The proper fix in this case was <7301044b01
>.
2021-02-15 23:52:44 +01:00
Yoshinari Takaoka
94f0332bf0
deleted empty note.
2021-02-16 07:39:57 +09:00
Tiffany
775a32bbe0
Fix misspelling in Gearman Job
...
Closes GH-449.
2021-02-16 05:59:21 +09:00