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
Christoph M. Becker
bb6247b681
Fix GH-1673: fwrite() raises E_WARNING on failure
2022-07-14 14:05:30 +02:00
David CARLIER
ae5b5761e2
fread, references fseek. Closes #1690 ( #1691 )
2022-07-13 12:01:00 +01:00
winstonDeGreef
cfbb1ee52e
Added small clarification and fixed grammar mistake
...
Closes GH-1688.
2022-07-12 17:49:45 +02:00
Larry Garfield
6b48028aef
Add caveats to mkdir based on comments
...
Closes GH-1666.
2022-07-03 21:31:55 +02:00
Christoph M. Becker
4225e50bc3
Fix GH-1571: f/sscanf() do not mention assignment suppression feature
2022-05-09 14:49:30 +02:00
George Peter Banyard
2b56c905fb
Fix error in touch() atime param docs
...
Closes GH-1377.
2022-02-06 12:55:00 +01:00
Christoph M. Becker
e82ff8a846
Fix GH-1326: "clearstatcache" always clears the stat cache
2022-01-14 14:20:49 +01:00
Máté Kocsis
34e2e3541c
Fix fgetcsv() return value section ( #1269 )
2021-12-28 11:05:01 +01:00
Máté Kocsis
291d60430d
Update the signature of fgetcsv() and fputcsv() ( #1268 )
...
* Update the signature of fgetcsv() and fputcsv()
* Update reference/filesystem/functions/fgetcsv.xml
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
* Update reference/filesystem/functions/fgetcsv.xml
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
Co-authored-by: Christoph M. Becker <cmbecker69@gmx.de >
2021-12-27 22:19:44 +01:00
Sergey Panteleev
0bf2170a90
[skip-revcheck] Fix typo
2021-12-23 13:48:48 +03:00
Kim Hallberg
ea62fb8319
Clean up filesystem function signatures ( #931 )
2021-12-23 10:34:15 +01:00
Kai Wei
5eb55cda5c
Errors/Exceptions missing for chmod()
...
Closes GH-1203.
2021-12-15 17:39:37 +01:00
Christoph M. Becker
c5c3a4153d
fopen() $mode is ignored for several php:// stream wrappers
...
Cf. <https://bugs.php.net/79905 >.
2021-12-09 16:21:49 +01:00
Christoph M. Becker
f8b0bb4100
Fix #81620 : parse_ini_file and parse_ini_string don't actually support value interpolation
2021-11-15 13:44:02 +01:00
Christoph M. Becker
8d8cd43bfc
Fix #41062 : is_executable only looks at basic executables
2021-11-08 15:04:41 +01:00
Juliette
67ca0d930c
dirname(): add warning about risk of infinite loop
...
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com >
Closes GH-1005.
2021-11-08 13:20:57 +01:00
Sergey Panteleev
21129de174
[PHP 8.1] Add fdatasync and fsync description ( #1002 )
2021-10-08 21:31:27 +03:00
Sergey Panteleev
fcbbbd9fda
[PHP 8.1] Update fputcsv and SplFileObject::fputcsv description ( #978 )
2021-09-28 14:18:31 +03:00
Christoph M. Becker
2f07d53d99
tempnam() issues E_NOTICE on temp dir fallback as of PHP 7.1.0
2021-09-27 14:21:32 +02:00
Martin Samesch
714d8e584c
typo
2021-09-14 19:44:23 +02:00
Márton Visnovitz
f739452fff
Add note about GLOB_BRACE flag not working in Alpine ( #945 )
2021-09-13 16:02:27 +01:00
Christoph M. Becker
28fa285d52
Close #917 : Cannot unlink() directory symlink on Windows
2021-09-06 13:27:08 +02:00
Christoph M. Becker
5783afacad
Improve description of several $context parameters
...
We're misusing the already existing `¬e.context-support;` for this,
but remove the PHP 5 related info from it, and link directly to stream
contexts.
2021-09-06 13:00:53 +02:00
Denis Ryabov
33225f7c57
Add a separate example section for escaping of characters
...
See also merged PR https://github.com/php/php-src/pull/7420 (https://github.com/php/php-src/commit/d3a6054d4441a6d431e6ca7aa63de62cee5585c2 )
Closes GH-898.
2021-09-04 14:53:55 +02:00
Denis Ryabov
a453c4ff1c
Remove irrelevant paragraph
...
(looks like a copy-paste from previous example)
Closes GH-886.
2021-08-28 12:25:33 +02:00
Christoph M. Becker
0bfb0eb957
Fix #68509 : Garbage collection of file pointers releases flock() locks
2021-07-26 20:27:28 +02:00
Christoph M. Becker
7d93e0fe5e
Fix #81284 : str_getcsv cant parse with multibyte delimiter
...
There's no fun in DRY. ;)
2021-07-23 17:24:39 +02:00
Christoph M. Becker
70babd5faf
pathinfo() operates naively on the input string
...
Closes GH-798.
2021-07-18 14:50:48 +02:00
Christoph M. Becker
1128875883
Fix #81266 : mkdir calls directories folders in example code
2021-07-16 15:00:29 +02:00
Christoph M. Becker
ff4424769d
Clarify flock() for same process/other file handle on Windows
...
We may want to clean up the notes section sometime.
2021-07-05 15:51:22 +02:00
Kamil Tekiela
9d2b858bca
Remove magic_quotes_runtime docs
...
Closes GH-719.
2021-06-25 19:27:30 +02:00
Christoph M. Becker
1f7d8b1ee9
Fix #81179 : fileperms() return wrong access information
2021-06-21 15:00:16 +02:00
Sergey Panteleev
871a231f4a
Fix issues in Filesystem directory
...
Part of #658
2021-06-10 16:28:13 +03:00
Vladimir
d579464d52
shorten fopen w+ description
...
make it consistent with x+, c+
Closes GH-660.
2021-06-06 13:52:19 +02:00
Sergey Panteleev
98f2a733bc
fpassthru error description ( #628 )
...
Fix bug #81067
2021-05-25 11:24:07 +03:00
Sergey Panteleev
dcd6496472
Fix: mode => permissions
2021-05-24 10:03:45 +03:00
Sergey Panteleev
6240e8ba3b
Added parameter tag to permissions and directory
2021-05-24 09:55:03 +03:00
Karsten Lehmann
0867f488b5
Fix parameter names for rmdir function ( #615 )
2021-05-22 12:00:44 +01:00
Karsten Lehmann
4ac2306796
Fix parameter names for mkdir function
...
Closes GH-614.
2021-05-22 12:24:31 +02:00
Yoshinari Takaoka
16c0995798
followed parameter fix in the previous commit.
...
ref: https://github.com/php/doc-en/commit/c1a31a1a3d4d55f4bb419de782c8035793a212c1
2021-05-19 02:54:28 +09:00
Alexander Schranz
c1a31a1a3d
Fix fputcsv for php 8 to separator
...
Closes GH-607.
2021-05-18 14:00:44 +02:00
Sergey Panteleev
6a7a96ccc6
file_get_contents length parameter ( #590 )
...
* Rename maxlen parameter to length
2021-05-07 17:00:24 +03:00
Sergey Panteleev
f9c4a68ef4
Removed references to PHP 5, PHP 7.0 ( #548 )
2021-04-26 11:46:55 +03: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
Rowan Tommins
4138897b12
Remove or rewrite examples using implode("", file(...)) ( #523 )
...
This is a weirdly inefficient way of getting a file's content into
a string, and I'm not sure why anyone would think it was a good
idea.
2021-04-12 22:33:56 +02:00
Eric Stern
397f37e930
Match fgetcsv parameter names to values in reflection
...
The documented parameters differ from the names exposed in reflection/source code. Now that named parameters are supported in PHP 8, this discrepancy is confusing and impactful.
```
$ php --rf fgetcsv
Function [ <internal:standard> function fgetcsv ] {
- Parameters [5] {
Parameter #0 [ <required> $stream ]
Parameter #1 [ <optional> ?int $length = null ]
Parameter #2 [ <optional> string $separator = "," ]
Parameter #3 [ <optional> string $enclosure = "\"" ]
Parameter #4 [ <optional> string $escape = "\\" ]
}
- Return [ array|false ]
}
```
Closes GH-493.
2021-03-19 00:56:00 +01:00