1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00
Commit Graph

28920 Commits

Author SHA1 Message Date
Remi Collet
bbf1e8a3e5 changes in zip 1.22.2 (and libzip 1.10.1) 2023-08-25 06:47:24 +02:00
alfsb
3d522c890d Remove incorrect literal on title. (#2704)
Co-authored-by: André L F S Bacci <ae@php.net>
2023-08-24 12:55:27 +01:00
Pierrick Charron
e281e1f40a Few FFI improvements (#2702)
Found during the translation to French
2023-08-23 13:10:50 +01:00
alfsb
6ceccac786 [skip-revcheck] Normalize &Constants; and &Methods; usage (#2703)
Drive-by trailing whitespace removals

Co-authored-by: André L F S Bacci <ae@php.net>
2023-08-23 13:09:51 +01:00
Alexandre Daubois
60af8c2b74 Add mention of is_a() and instanceof in class_implements() and class_parents() pages (#2697)
Closes GH-1606
2023-08-22 13:32:41 +01:00
Pierrick Charron
4e4160b236 Fix typo in reference/ffi/ffi 2023-08-21 12:55:18 -04:00
Tim Düsterhus
a41057cbdf Re-add the semicolon after endswitch in alternative-syntax.xml (#2699)
This was part of an unrelated commit and is now re-added in a dedicated
single-purpose commit.

see #2648
see #2693
2023-08-21 17:29:27 +02:00
Tim Düsterhus
fb21c51a79 Revert "Fix GH-2635: Fix switch alternative syntax (#2648)" (#2693)
As per the discussion in php/doc-en#2648, the part that might actually be
unexpected is that leading indentation also causes problems.  The addition of
the empty line distracts from that. Now that the CSS for PHP.net is fixed, this
can be reverted.

This reverts commit 1d73d6e34f.

see php/web-php#801
2023-08-21 17:26:21 +02:00
Alexandre Daubois
9d04418543 [skip-revcheck] Fix typo in min() and max() docs (#2696) 2023-08-21 13:29:11 +01:00
Jeremy Mikola
077667aa60 Revisions to ext-mongodb architecture and library tutorial (#2688)
Remove references to HHVM, the legacy mongo extension, and older PHP versions from the architecture article and component diagram. Replace the original diagram with an SVG graphic.

https://jira.mongodb.org/browse/PHPC-2276

Note effect of disableClientPersistence in connection article

Co-authored-by: George Peter Banyard <girgias@php.net>
2023-08-18 12:13:36 -04:00
Fahad Ali Khan
811ee28918 Fix minor typo in code comment (#2691)
No revcheck is skipped as some translations copy/paste examples without translating comments.
2023-08-18 12:42:21 +01:00
gareginra
8870f9d1ce [skip-revcheck] Remove double "are" (#2689) 2023-08-18 12:36:47 +01:00
Yoshinari Takaoka
f820cd7c11 fixed XPointer evaluation failed error.
XPointer evaluation failed: #xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongodb-bson-persistable')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])
2023-08-17 21:53:24 +09:00
Yoshinari Takaoka
eaee72c33f fix broken build 2023-08-17 01:07:09 +09:00
Andreas Braun
e1da4d25a8 [MongoDB] Document BSON class changes for 1.17 2023-08-16 15:59:40 +02:00
Albert Peschar
272838c881 Add an example for str_getcsv with empty string (#2504)
It's surprising that `str_getcsv("")` returns `[null]`. This adds an
example to warn users of this behaviour.

Co-authored-by: George Peter Banyard <girgias@php.net>
2023-08-15 17:23:49 +01:00
Niels Dossche
2aa5a9c450 Update DOM intro (#2684)
There's loadHTML(File) and saveHTML(File) to to load and save HTML
documents. People use it for both XML and HTML.

Co-authored-by: George Peter Banyard <girgias@php.net>
2023-08-15 14:24:22 +02:00
Onur Yılmazer
00e8d1f2b0 Clarify the output of example code about undefined variable usage (#2679)
Accessing undefined variables generate an E_WARNING since PHP 8 (and will result in error exceptions being thrown in PHP 9).

Co-authored-by: George Peter Banyard <girgias@php.net>
2023-08-14 13:56:59 +01:00
Aleksandr
16389a7b31 Rework the examples for continue (#2367)
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2023-08-12 18:53:52 +01:00
mattkolb
390278d79b Update Mysqli::construct() docs for return value as of PHP 8.1 (#2454)
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2023-08-12 15:31:22 +01:00
Wyatt
18d96d58e3 mysqli_field_seek always return true (#2255)
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2023-08-12 15:20:01 +01:00
Sergey Panteleev
b1ef342705 Slight improvements (#2678) 2023-08-12 16:33:22 +03:00
Wade Rossmann
06791a63aa Update get_headers example to not change the default HTTP stream context. (#2548)
Update example 2 to not change the default HTTP stream context.
2023-08-12 14:10:11 +01:00
miqrogroove
f164f8c862 Fixed run-on sentence in 8.1 deprecated.xml (#2590) 2023-08-12 14:08:07 +01:00
alfsb
fc174e8d61 Improve tag semantic usage (#2676)
Co-authored-by: André L F S Bacci <ae@php.net>
2023-08-12 13:36:36 +01:00
Yoshinari Takaoka
054a327c0f sorted Changelog version
The changelog for 8.0.0 came above the one for 8.2.0.
2023-08-11 21:44:40 +09:00
Yoshinari Takaoka
51a2b54c3d removed "PHP" from changelog version. 2023-08-11 18:05:27 +09:00
Jakub Pavlík
1f402b0c28 fix example syntax error (#2675) 2023-08-11 08:26:58 +08:00
George Peter Banyard
ce5b00c8ad Disable PhD chunking for DateTime format page
Partial fix of GH-2674
2023-08-11 00:12:51 +01:00
Alexandre Daubois
145067d97c Fix GH-2209: update return value and changelog of stream_set_chunk_size() (#2663) 2023-08-10 18:22:15 +01:00
colshrapnel
d861a1bcea Better phrasing and code example for PDO connection management (#2670)
Co-authored-by: George Peter Banyard <girgias@php.net>
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2023-08-10 17:07:20 +01:00
Alexandre Daubois
c777ef397d Fix GH-2357: improve Traversable page (#2661) 2023-08-10 12:46:43 +01:00
André L F S Bacci
0a3a57fae0 [skip-revcheck] Fix page not render properly due spaces inside tag 2023-08-10 06:20:10 -03:00
alfsb
be90f2a700 [skip-revcheck] Normalize entity usage on classsynopsisinfo. (#2664)
Rev-check is skipped as this does not affect the text output

Co-authored-by: André L F S Bacci <ae@php.net>
2023-08-09 14:34:42 +01:00
Sajjad Rezaei
92ae371db3 Update IteratorAggregate basic example to be compatible with PHP 8.2 (#2660) 2023-08-09 14:31:51 +01:00
Derick Rethans
dbbcd32d72 Integrate user note into the manual 2023-08-09 10:14:10 +01:00
Alexandre Daubois
4dc3bd2b42 Fix GH-2484: Add a note about accessing dynamic properties in ArrayObject (#2652) 2023-08-07 22:15:33 +01:00
Anna Filina
52a614e6b4 Create a docker container for a single-line setup and rendering (#2638)
Use case: a casual contributor who wants to preview their changes before opening a PR.

There is currently no way to provide custom args to phd/render.php, because then we'd be back to complicated instructions.

I tried not to make any assumptions about the host system, so I don't use make.

Co-authored-by: Lewis Cowles <lewis+github@cowles.uk>
2023-08-07 22:14:27 +01:00
Arne_
a0fcdcb580 Update easter_date docs to reflect PHP 8.3 changes (#2643)
Co-authored-by: George Peter Banyard <girgias@php.net>
2023-08-07 15:27:51 +01:00
Alexandre Daubois
6b64170daa Fix GH-2631: Clarify array_diff_(u)assoc examples (#2650) 2023-08-07 15:27:29 +01:00
Ekin
ab00067710 Document new 8.2 curl constants (#1911) 2023-08-07 15:05:28 +01:00
George Peter Banyard
916b09d30c Mention memory stream cannot always be casted to stdio stream
Closes GH-1078
2023-08-07 14:34:26 +01:00
Yoshinari Takaoka
68e632fcb7 fix wording of previous PR (#2647), followed @Girgias's suggestion. 2023-08-07 22:27:50 +09:00
Alexandre Daubois
71b1e92663 Fix GH-2639: Mention empty needle is accepter as of PHP 8.0.0 in string functions (#2653) 2023-08-07 14:22:31 +01:00
Alexandre Daubois
7f4d351cb5 Fix GH-2450: mention when ArgumentCountError being thrown by built-in functions (#2654) 2023-08-07 14:21:10 +01:00
tekimen
ef9c9fa70f mb_convert_kana throws ValueError when impossible combination since PHP 8.2 (#2647) 2023-08-07 22:10:42 +09:00
Alexandre Daubois
57e27d2a76 Fix GH-2649: Document false return for mktime()/gmmktime() if timestamp does not fit in a PHP int (#2651) 2023-08-07 13:56:15 +01:00
Alexandre Daubois
1d73d6e34f Fix GH-2635: Fix switch alternative syntax (#2648) 2023-08-07 13:52:50 +01:00
nisbet-hubbard
4c676dacf5 Add note on how PHP/GNU layout affects manpath (#2581) 2023-08-07 13:49:54 +01:00
Michael Mawhinney
660cdbffc2 Fix minor spelling errors in the documenation for sodium_crypto_secretbox and sodium_crypto_secretbox_open (#2646) 2023-08-05 09:21:38 +02:00