php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
spl_directory.stub.php
Go to the documentation of this file.
1<?php
2
4
6class SplFileInfo implements Stringable
7{
8 public function __construct(string $filename) {}
9
11 public function getPath(): string {}
12
14 public function getFilename(): string {}
15
17 public function getExtension(): string {}
18
20 public function getBasename(string $suffix = ""): string {}
21
23 public function getPathname(): string {}
24
26 public function getPerms(): int|false {}
27
29 public function getInode(): int|false {}
30
32 public function getSize(): int|false {}
33
35 public function getOwner(): int|false {}
36
38 public function getGroup(): int|false {}
39
41 public function getATime(): int|false {}
42
44 public function getMTime(): int|false {}
45
47 public function getCTime(): int|false {}
48
50 public function getType(): string|false {}
51
53 public function isWritable(): bool {}
54
56 public function isReadable(): bool {}
57
59 public function isExecutable(): bool {}
60
62 public function isFile(): bool {}
63
65 public function isDir(): bool {}
66
68 public function isLink(): bool {}
69
71 public function getLinkTarget(): string|false {}
72
74 public function getRealPath(): string|false {}
75
77 public function getFileInfo(?string $class = null): SplFileInfo {}
78
80 public function getPathInfo(?string $class = null): ?SplFileInfo {}
81
86 public function openFile(string $mode = "r", bool $useIncludePath = false, $context = null): SplFileObject {}
87
89 public function setFileClass(string $class = SplFileObject::class): void {}
90
92 public function setInfoClass(string $class = SplFileInfo::class): void {}
93
95 public function __toString(): string {}
96
98 public function __debugInfo(): array {}
99
103 #[\Deprecated(since: '8.2')]
104 final public function _bad_state_ex(): void {}
105}
106
108{
109 public function __construct(string $directory) {}
110
112 public function getFilename(): string {}
113
115 public function getExtension(): string {}
116
118 public function getBasename(string $suffix = ""): string {}
119
121 public function isDot(): bool {}
122
124 public function rewind(): void {}
125
127 public function valid(): bool {}
128
133 public function key(): mixed {} // TODO change return type to string
134
139 public function current(): mixed {} // TODO narrow return type
140
142 public function next(): void {}
143
145 public function seek(int $offset): void {}
146
148 public function __toString(): string {}
149}
150
152{
154 public const int CURRENT_MODE_MASK = UNKNOWN;
156 public const int CURRENT_AS_PATHNAME = UNKNOWN;
158 public const int CURRENT_AS_FILEINFO = UNKNOWN;
160 public const int CURRENT_AS_SELF = UNKNOWN;
162 public const int KEY_MODE_MASK = UNKNOWN;
164 public const int KEY_AS_PATHNAME = UNKNOWN;
166 public const int FOLLOW_SYMLINKS = UNKNOWN;
168 public const int KEY_AS_FILENAME = UNKNOWN;
170 public const int NEW_CURRENT_AND_KEY = UNKNOWN;
172 public const int OTHER_MODE_MASK = UNKNOWN;
174 public const int SKIP_DOTS = UNKNOWN;
176 public const int UNIX_PATHS = UNKNOWN;
177
179
181 public function rewind(): void {}
182
184 public function key(): string {}
185
188
190 public function getFlags(): int {}
191
193 public function setFlags(int $flags): void {}
194}
195
197{
199
201 public function hasChildren(bool $allowLinks = false): bool {}
202
205
207 public function getSubPath(): string {}
208
210 public function getSubPathname(): string {}
211}
212
213#ifdef HAVE_GLOB
215{
217
219 public function count(): int {}
220}
221#endif
222
224{
226 public const int DROP_NEW_LINE = UNKNOWN;
228 public const int READ_AHEAD = UNKNOWN;
230 public const int SKIP_EMPTY = UNKNOWN;
232 public const int READ_CSV = UNKNOWN;
233
235 public function __construct(string $filename, string $mode = "r", bool $useIncludePath = false, $context = null) {}
236
238 public function rewind(): void {}
239
241 public function eof(): bool {}
242
244 public function valid(): bool {}
245
247 public function fgets(): string {}
248
250 public function fread(int $length): string|false {}
251
253 public function fgetcsv(string $separator = ",", string $enclosure = "\"", string $escape = "\\"): array|false {}
254
256 public function fputcsv(array $fields, string $separator = ",", string $enclosure = "\"", string $escape = "\\", string $eol = "\n"): int|false {}
257
259 public function setCsvControl(string $separator = ",", string $enclosure = "\"", string $escape = "\\"): void {}
260
262 public function getCsvControl(): array {}
263
268 public function flock(int $operation, &$wouldBlock = null): bool {}
269
271 public function fflush(): bool {}
272
274 public function ftell(): int|false {}
275
277 public function fseek(int $offset, int $whence = SEEK_SET): int {}
278
280 public function fgetc(): string|false {}
281
283 public function fpassthru(): int {}
284
286 public function fscanf(string $format, mixed &...$vars): array|int|null {}
287
289 public function fwrite(string $data, int $length = 0): int|false {}
290
292 public function fstat(): array {}
293
295 public function ftruncate(int $size): bool {}
296
298 public function current(): string|array|false {}
299
301 public function key(): int {}
302
304 public function next(): void {}
305
307 public function setFlags(int $flags): void {}
308
310 public function getFlags(): int {}
311
313 public function setMaxLineLen(int $maxLength): void {}
314
316 public function getMaxLineLen(): int {}
317
319 public function hasChildren(): false {}
320
322 public function getChildren(): null {}
323
325 public function seek(int $line): void {}
326
331 public function getCurrentLine(): string {}
332
333 public function __toString(): string {}
334}
335
337{
338 public function __construct(int $maxMemory = 2 * 1024 * 1024) {}
339}
getBasename(string $suffix="")
__construct(string $directory)
__construct(string $directory, int $flags=FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO|FilesystemIterator::SKIP_DOTS)
__construct(string $pattern, int $flags=FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO)
hasChildren(bool $allowLinks=false)
__construct(string $directory, int $flags=FilesystemIterator::KEY_AS_PATHNAME|FilesystemIterator::CURRENT_AS_FILEINFO)
getPathInfo(?string $class=null)
openFile(string $mode="r", bool $useIncludePath=false, $context=null)
getBasename(string $suffix="")
setFileClass(string $class=SplFileObject::class)
__construct(string $filename)
getFileInfo(?string $class=null)
setInfoClass(string $class=SplFileInfo::class)
fwrite(string $data, int $length=0)
fputcsv(array $fields, string $separator=",", string $enclosure="\"", string $escape="\\", string $eol="\n")
fscanf(string $format, mixed &... $vars)
fseek(int $offset, int $whence=SEEK_SET)
__construct(string $filename, string $mode="r", bool $useIncludePath=false, $context=null)
flock(int $operation, &$wouldBlock=null)
setMaxLineLen(int $maxLength)
fgetcsv(string $separator=",", string $enclosure="\"", string $escape="\\")
setCsvControl(string $separator=",", string $enclosure="\"", string $escape="\\")
__construct(int $maxMemory=2 *1024 *1024)
$filename
Definition create.php:9
$data
Definition bench.php:6
#define SEEK_SET
Definition gd_io_file.c:20
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
function(EX_VAR(opline->result.var))