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

962 Commits

Author SHA1 Message Date
alfsb
0a3648a718 Sync, indent and update fgetcsv escape parameter description. (#5111)
Co-authored-by: André L F S Bacci <ae@php.net>
2026-01-15 16:58:24 +00:00
Narkunan
e1fd0bef1d Clarify behaviour of escape parameter and how it handles enclosure bytes (#5006) 2026-01-09 12:54:39 +00:00
Tim Düsterhus
bb54309eff parse_ini_*(): Add warning that the functions are unsafe with untrusted inputs (#4946) 2025-10-31 08:09:14 +01:00
Eddie Kohler
18bac8389b Update fopen.xml for 'n' flag (#2718)
PHP has supported fopen with `'n'` since 2013. Document this.
2025-10-13 10:01:35 +02:00
Hans Krentel (hakre)
3abd17e61d fix(reference/stream): example code php5.4 array syntax
in reference to 037266adde ("fix(reference/stream): HTTP headers are U+0D U+0A (CR LF) separated", 2025-06-22) streamline by 'http' 'header' stream context option.
2025-06-22 16:45:06 +02:00
Jakub Vrana
bb9bfdfc5a Glob: Mention {} expansion 2025-04-15 12:53:01 +02:00
Mikhail Alferov
89b506b5b6 file.xml: add the missing dot characters (#3532) 2025-04-07 08:10:00 -05:00
Jakub Vrána
d5f735c7bc See also is_link and symlink (#4541) 2025-03-18 07:32:01 -07:00
Gina Peter Banyard
21cd3a9427 Remove changelog section for dirname()
This mentionned only changes prior to PHP 7.0.0
2025-03-06 15:15:54 +00:00
Emre Dikmen
898627b9fe Fix: Add explicit $escape parameter in fputcsv for PHP 8.4 compatibility (#4283)
This commit resolves a deprecation warning in PHP 8.4 regarding the $escape parameter of the fputcsv function. The warning indicates that the default value for $escape will change in future PHP versions, requiring it to be explicitly provided.
2024-12-10 13:46:21 +00:00
Kamil Tekiela
130701dd4e Remove duplicate words (#4280)
* Remove duplicate the

* Remove duplicate that
2024-12-09 16:32:46 +01:00
Kamil Tekiela
cc735f9ff7 Add warning about fseek()'s return values (#4276) 2024-12-09 14:16:25 +00:00
Jim Winstead
781f2ec04e Document str_getcsv() and fgetcsv() change in 8.3.0 (closes #4197) (#4198) 2024-12-01 12:20:46 +00:00
Jim Winstead
e3ae86b439 Document file() throwing ValueError on invalid flags (closes #4195) (#4196) 2024-11-30 10:35:28 -08:00
Gina Peter Banyard
2474b979c1 Fix GH-4175: do not say the parameters are optional (#4177) 2024-11-28 11:32:03 +00:00
Jim Winstead
5fb1bb4a70 Clarify glob() issues raised by user notes and add another example (#3647) 2024-11-24 13:27:49 -08:00
Gina Peter Banyard
73007ad988 PHP 8.4: CSV related changes and deprecations (#4093)
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de>
2024-11-19 23:11:44 +00:00
vera-ju
3d6879be77 Mention symlinks for is_file() functions (#3924)
Fixes GH-3719
2024-11-08 08:03:04 +00:00
Gina Peter Banyard
68ca0a46a0 Group related filesystems constants together (#4005)
And add title to indicate with what functions they are used
2024-11-05 15:38:52 +00:00
Gina Peter Banyard
d1741218cb FILE_BINARY and FILE_TEXT were deprecated in PHP 8.1 (#4003) 2024-11-05 01:32:03 +00:00
Gina Peter Banyard
3944dc6333 Add type information for UPLOAD_* constants (#3950)
And remove duplicate info by using linking via the <constant> tag.
2024-11-04 15:00:01 +00:00
haszi
799e54d234 Sort GLOB constants alphabetically 2024-11-04 03:01:41 +00:00
haszi
fdd2aca71c Add IDs to glob constants
Add IDs to glob constants.
Remove XInclude'd list from glob().
2024-11-04 03:01:41 +00:00
haszi
07e4b982a4 Remove XIInclude 1.1 attribute from element (#3808)
Co-authored-by: haszi <haszika80@gmail.com>
2024-09-29 12:54:36 +01:00
Jim Winstead
cef78b0fbe Add explicit warning about CSV function's escape parameter (#3765) 2024-09-23 13:59:30 -07:00
Mikhail Alferov
74b2af242f fopen.xml: add link to the function page (#3487) 2024-07-07 15:01:53 +01:00
Mikhail Alferov
0bab859f87 fopen.xml: remove the string '1' for the boolean parameter (#3489)
Or: add notice like: `…'1' (for the coercive typing mode only) or &true;…`
2024-07-07 15:00:30 +01:00
Mikhail Alferov
32e694be42 fgets.xml: place each file line on new line by PHP_EOL (#3486) 2024-07-07 15:00:05 +01:00
haszi
a93bf76a1b Add PATHINFO_ALL constant (#3477)
Add descriptions to all PATHINFO constants.
Add constant_list role to variablelist.

Co-authored-by: haszi <haszika80@gmail.com>
2024-07-07 14:52:43 +01:00
haszi
5efcb2dc72 Add UPLOAD_ERR constants (#3471)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-07 14:43:58 +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
haszi
61374bbe22 Change literal to constant tags 2024-04-16 10:45:49 +01:00
haszi
f80105b4fc Remove constant tag from literal values (#3251)
* Remove constant tag from literal values

* [skip-revcheck] Fix whitespace

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-03-10 21:34:11 +01:00
Mikhail Alferov
39a98b1f17 Missing space in fnmatch.xml (#3205) 2024-02-26 21:17:35 +00:00
Jawira Portugal
946fbe44b6 Improve documentation about fnmatch wildcards (#3182)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-02-26 17:37:36 +00:00
haszi
850ac483c8 XInclude GLOB constants in glob.xml 2024-02-02 14:57:59 +00:00
haszi
3675d8d7e4 Add GLOB_ERR and description of GLOB constants 2024-02-02 14:57:59 +00:00
haszi
1ecf4d6872 [skip-revcheck] Fix whitespace 2024-02-02 14:57:59 +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
Gina Peter Banyard
ec6e871a47 [skip-revcheck] Replace role="noversion" attribute usage with the new annotations one
Done using the following commands:
find . -type f -name "*.xml" -exec sed -i 's/role="noversion"/annotations="verify_info:false"/g' {} +
2023-11-01 16:32:33 +00:00
Máté Kocsis
5e9500ddad [skip-revcheck] Syncronize predefined constants with stubs - part 1 (#2739)
Preparation commit for syncing constants with stub.

This reformats the page, which is mainly just whitespace changes.
2023-09-04 23:37:50 +01:00
Markus Staab
2957432ebc Added missing FILE_NO_DEFAULT_CONTEXT for file() (#2540) 2023-06-24 15:50:08 +01:00
Larry Garfield
d0cc084a92 Fold in comments for pathinfo() (#2473)
* Add note about Windows paths.

* Add example using array dereferencing.

* Automated whitespace fixes.

* Whitespace fixes.

* Move Windows mention to a better location.

* Better document when to use array dereferencing.

* Formatting and spelling fixes

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

* Wording improvements

---------

Co-authored-by: Peter Cowburn <petercowburn@gmail.com>
2023-05-22 18:34:57 -05:00
Christoph M. Becker
fccc7eb701 safe_mode is long gone 2023-01-28 13:33:46 +01:00
Kamil Tekiela
7c9f1adb4b Remove redundant parentheses
Closes GH-2243
2023-01-23 11:08:00 +00:00
divinity76
65bea242c8 tmpfile() uses binary mode
ref https://github.com/php/php-src/blob/master/main/php_open_temporary_file.c#L103

Closes GH-2240.
2023-01-22 02:14:19 +01:00
David Mann
a5346daf2b Fix example of interpolation in parse_ini_file
Closes GH-2043.
2022-12-08 12:07:21 +01:00
Caen De Silva
d1cacac75c Fix grammar in code example comment (#1861)
Updates a comment in the example as "do something here" is a more complete sentence than "do here something".
2022-10-01 21:04:07 +01:00
Yoshinari Takaoka
e9c706885e improved example output.
The original example shows result output as comments, which should NOT be translated. But our team member mistranslated these comments.

```
echo filetype('/etc/passwd'); // file
echo filetype('/etc/');       // dir
```

We moved these comments to output screen which easily induce mistranslation.
2022-10-01 19:00:40 +09:00