@@ -14,20 +14,20 @@ discard block |
||
14 | 14 | */ |
15 | 15 | final class mysqli_sql_exception extends RuntimeException |
16 | 16 | { |
17 | - /** |
|
18 | - * The sql state with the error. |
|
19 | - * |
|
20 | - * @var string |
|
21 | - */ |
|
22 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
23 | - protected $sqlstate; |
|
24 | - |
|
25 | - /** |
|
26 | - * The error code |
|
27 | - * |
|
28 | - * @var int |
|
29 | - */ |
|
30 | - protected $code; |
|
17 | + /** |
|
18 | + * The sql state with the error. |
|
19 | + * |
|
20 | + * @var string |
|
21 | + */ |
|
22 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
23 | + protected $sqlstate; |
|
24 | + |
|
25 | + /** |
|
26 | + * The error code |
|
27 | + * |
|
28 | + * @var int |
|
29 | + */ |
|
30 | + protected $code; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -36,35 +36,35 @@ discard block |
||
36 | 36 | */ |
37 | 37 | final class mysqli_driver |
38 | 38 | { |
39 | - /** |
|
40 | - * @var string |
|
41 | - */ |
|
42 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
43 | - public $client_info; |
|
44 | - /** |
|
45 | - * @var string |
|
46 | - */ |
|
47 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
48 | - public $client_version; |
|
49 | - /** |
|
50 | - * @var string |
|
51 | - */ |
|
52 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
53 | - public $driver_version; |
|
54 | - /** |
|
55 | - * @var string |
|
56 | - */ |
|
57 | - public $embedded; |
|
58 | - /** |
|
59 | - * @var bool |
|
60 | - */ |
|
61 | - #[LanguageLevelTypeAware(['8.1' => 'bool'], default: '')] |
|
62 | - public $reconnect; |
|
63 | - /** |
|
64 | - * @var int |
|
65 | - */ |
|
66 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
67 | - public $report_mode; |
|
39 | + /** |
|
40 | + * @var string |
|
41 | + */ |
|
42 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
43 | + public $client_info; |
|
44 | + /** |
|
45 | + * @var string |
|
46 | + */ |
|
47 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
48 | + public $client_version; |
|
49 | + /** |
|
50 | + * @var string |
|
51 | + */ |
|
52 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
53 | + public $driver_version; |
|
54 | + /** |
|
55 | + * @var string |
|
56 | + */ |
|
57 | + public $embedded; |
|
58 | + /** |
|
59 | + * @var bool |
|
60 | + */ |
|
61 | + #[LanguageLevelTypeAware(['8.1' => 'bool'], default: '')] |
|
62 | + public $reconnect; |
|
63 | + /** |
|
64 | + * @var int |
|
65 | + */ |
|
66 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
67 | + public $report_mode; |
|
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
@@ -73,787 +73,787 @@ discard block |
||
73 | 73 | */ |
74 | 74 | class mysqli |
75 | 75 | { |
76 | - /** |
|
77 | - * @var int |
|
78 | - */ |
|
79 | - #[LanguageLevelTypeAware(['8.1' => 'string|int'], default: '')] |
|
80 | - public $affected_rows; |
|
81 | - /** |
|
82 | - * @var string |
|
83 | - */ |
|
84 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
85 | - public $client_info; |
|
86 | - /** |
|
87 | - * @var int |
|
88 | - */ |
|
89 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
90 | - public $client_version; |
|
91 | - /** |
|
92 | - * @var int |
|
93 | - */ |
|
94 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
95 | - public $connect_errno; |
|
96 | - /** |
|
97 | - * @var string |
|
98 | - */ |
|
99 | - #[LanguageLevelTypeAware(['8.1' => 'string|null'], default: '')] |
|
100 | - public $connect_error; |
|
101 | - /** |
|
102 | - * @var int |
|
103 | - */ |
|
104 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
105 | - public $errno; |
|
106 | - /** |
|
107 | - * @var string |
|
108 | - */ |
|
109 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
110 | - public $error; |
|
111 | - /** |
|
112 | - * @var int |
|
113 | - */ |
|
114 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
115 | - public $field_count; |
|
116 | - /** |
|
117 | - * @var string |
|
118 | - */ |
|
119 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
120 | - public $host_info; |
|
121 | - /** |
|
122 | - * @var string |
|
123 | - */ |
|
124 | - #[LanguageLevelTypeAware(['8.1' => 'string|null'], default: '')] |
|
125 | - public $info; |
|
126 | - /** |
|
127 | - * @var int|string |
|
128 | - */ |
|
129 | - #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
130 | - public $insert_id; |
|
131 | - /** |
|
132 | - * @var string |
|
133 | - */ |
|
134 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
135 | - public $server_info; |
|
136 | - /** |
|
137 | - * @var int |
|
138 | - */ |
|
139 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
140 | - public $server_version; |
|
141 | - /** |
|
142 | - * @var string |
|
143 | - */ |
|
144 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
145 | - public $sqlstate; |
|
146 | - /** |
|
147 | - * @var string |
|
148 | - */ |
|
149 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
150 | - public $protocol_version; |
|
151 | - /** |
|
152 | - * @var int |
|
153 | - */ |
|
154 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
155 | - public $thread_id; |
|
156 | - /** |
|
157 | - * @var int |
|
158 | - */ |
|
159 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
160 | - public $warning_count; |
|
161 | - |
|
162 | - /** |
|
163 | - * @var array A list of errors, each as an associative array containing the errno, error, and sqlstate. |
|
164 | - * @link https://secure.php.net/manual/en/mysqli.error-list.php |
|
165 | - */ |
|
166 | - #[LanguageLevelTypeAware(['8.1' => 'array'], default: '')] |
|
167 | - public $error_list; |
|
168 | - |
|
169 | - public $stat; |
|
170 | - |
|
171 | - /** |
|
172 | - * Open a new connection to the MySQL server |
|
173 | - * @link https://php.net/manual/en/mysqli.construct.php |
|
174 | - * @param string $hostname [optional] Can be either a host name or an IP address. Passing the NULL value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol. Prepending host by p: opens a persistent connection. mysqli_change_user() is automatically called on connections opened from the connection pool. Defaults to ini_get("mysqli.default_host") |
|
175 | - * @param string $username [optional] The MySQL user name. Defaults to ini_get("mysqli.default_user") |
|
176 | - * @param string $password [optional] If not provided or NULL, the MySQL server will attempt to authenticate the user against those user records which have no password only. This allows one username to be used with different permissions (depending on if a password as provided or not). Defaults to ini_get("mysqli.default_pw") |
|
177 | - * @param string $database [optional] If provided will specify the default database to be used when performing queries. Defaults to "" |
|
178 | - * @param int $port [optional] Specifies the port number to attempt to connect to the MySQL server. Defaults to ini_get("mysqli.default_port") |
|
179 | - * @param string $socket [optional] Specifies the socket or named pipe that should be used. Defaults to ini_get("mysqli.default_socket") |
|
180 | - */ |
|
181 | - public function __construct( |
|
182 | - ?string $hostname = null, |
|
183 | - ?string $username = null, |
|
184 | - ?string $password = null, |
|
185 | - ?string $database = null, |
|
186 | - ?int $port = null, |
|
187 | - ?string $socket = null |
|
188 | - ) {} |
|
189 | - |
|
190 | - /** |
|
191 | - * Turns on or off auto-committing database modifications |
|
192 | - * @link https://php.net/manual/en/mysqli.autocommit.php |
|
193 | - * @param bool $enable <p> |
|
194 | - * Whether to turn on auto-commit or not. |
|
195 | - * </p> |
|
196 | - * @return bool true on success or false on failure. |
|
197 | - */ |
|
198 | - #[TentativeType] |
|
199 | - public function autocommit(bool $enable): bool {} |
|
200 | - |
|
201 | - /** |
|
202 | - * Starts a transaction |
|
203 | - * @link https://secure.php.net/manual/en/mysqli.begin-transaction.php |
|
204 | - * @param int $flags [optional] |
|
205 | - * @param string $name [optional] |
|
206 | - * @return bool true on success or false on failure. |
|
207 | - * @since 5.5 |
|
208 | - */ |
|
209 | - #[TentativeType] |
|
210 | - public function begin_transaction( |
|
211 | - #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0, |
|
212 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null |
|
213 | - ): bool {} |
|
214 | - |
|
215 | - /** |
|
216 | - * Changes the user of the specified database connection |
|
217 | - * @link https://php.net/manual/en/mysqli.change-user.php |
|
218 | - * @param string $username <p> |
|
219 | - * The MySQL user name. |
|
220 | - * </p> |
|
221 | - * @param string $password <p> |
|
222 | - * The MySQL password. |
|
223 | - * </p> |
|
224 | - * @param string $database <p> |
|
225 | - * The database to change to. |
|
226 | - * </p> |
|
227 | - * <p> |
|
228 | - * If desired, the null value may be passed resulting in only changing |
|
229 | - * the user and not selecting a database. To select a database in this |
|
230 | - * case use the <b>mysqli_select_db</b> function. |
|
231 | - * </p> |
|
232 | - * @return bool true on success or false on failure. |
|
233 | - */ |
|
234 | - #[TentativeType] |
|
235 | - public function change_user(string $username, string $password, ?string $database): bool {} |
|
236 | - |
|
237 | - /** |
|
238 | - * Returns the default character set for the database connection |
|
239 | - * @link https://php.net/manual/en/mysqli.character-set-name.php |
|
240 | - * @return string The default character set for the current connection |
|
241 | - */ |
|
242 | - #[TentativeType] |
|
243 | - public function character_set_name(): string {} |
|
244 | - |
|
245 | - /** |
|
246 | - * @removed 5.4 |
|
247 | - */ |
|
248 | - #[Deprecated(since: '5.3')] |
|
249 | - public function client_encoding() {} |
|
250 | - |
|
251 | - /** |
|
252 | - * Closes a previously opened database connection |
|
253 | - * @link https://php.net/manual/en/mysqli.close.php |
|
254 | - * @return bool true on success or false on failure. |
|
255 | - */ |
|
256 | - public function close() {} |
|
257 | - |
|
258 | - /** |
|
259 | - * Commits the current transaction |
|
260 | - * @link https://php.net/manual/en/mysqli.commit.php |
|
261 | - * @param int $flags A bitmask of MYSQLI_TRANS_COR_* constants. |
|
262 | - * @param string $name If provided then COMMIT $name is executed. |
|
263 | - * @return bool true on success or false on failure. |
|
264 | - */ |
|
265 | - #[TentativeType] |
|
266 | - public function commit(int $flags = -1, ?string $name = null): bool {} |
|
267 | - |
|
268 | - /** |
|
269 | - * @link https://php.net/manual/en/function.mysqli-connect.php |
|
270 | - * @param string|null $hostname [optional] |
|
271 | - * @param string|null $username [optional] |
|
272 | - * @param string|null $password [optional] |
|
273 | - * @param string|null $database [optional] |
|
274 | - * @param int|null $port [optional] |
|
275 | - * @param string|null $socket [optional] |
|
276 | - * @return bool |
|
277 | - */ |
|
278 | - #[TentativeType] |
|
279 | - public function connect( |
|
280 | - ?string $hostname = null, |
|
281 | - ?string $username = null, |
|
282 | - ?string $password = null, |
|
283 | - ?string $database = null, |
|
284 | - ?int $port = null, |
|
285 | - ?string $socket = null |
|
286 | - ): bool {} |
|
287 | - |
|
288 | - /** |
|
289 | - * Dump debugging information into the log |
|
290 | - * @link https://php.net/manual/en/mysqli.dump-debug-info.php |
|
291 | - * @return bool true on success or false on failure. |
|
292 | - */ |
|
293 | - #[TentativeType] |
|
294 | - public function dump_debug_info(): bool {} |
|
295 | - |
|
296 | - /** |
|
297 | - * Performs debugging operations |
|
298 | - * @link https://php.net/manual/en/mysqli.debug.php |
|
299 | - * @param string $options <p> |
|
300 | - * A string representing the debugging operation to perform |
|
301 | - * </p> |
|
302 | - * @return bool true. |
|
303 | - */ |
|
304 | - public function debug(string $options) {} |
|
305 | - |
|
306 | - /** |
|
307 | - * Returns a character set object |
|
308 | - * @link https://php.net/manual/en/mysqli.get-charset.php |
|
309 | - * @return object|null The function returns a character set object with the following properties: |
|
310 | - * <i>charset</i> |
|
311 | - * <p>Character set name</p> |
|
312 | - * <i>collation</i> |
|
313 | - * <p>Collation name</p> |
|
314 | - * <i>dir</i> |
|
315 | - * <p>Directory the charset description was fetched from (?) or "" for built-in character sets</p> |
|
316 | - * <i>min_length</i> |
|
317 | - * <p>Minimum character length in bytes</p> |
|
318 | - * <i>max_length</i> |
|
319 | - * <p>Maximum character length in bytes</p> |
|
320 | - * <i>number</i> |
|
321 | - * <p>Internal character set number</p> |
|
322 | - * <i>state</i> |
|
323 | - * <p>Character set status (?)</p> |
|
324 | - */ |
|
325 | - #[TentativeType] |
|
326 | - public function get_charset(): ?object {} |
|
327 | - |
|
328 | - /** |
|
329 | - * Returns the MySQL client version as a string |
|
330 | - * @link https://php.net/manual/en/mysqli.get-client-info.php |
|
331 | - * @return string A string that represents the MySQL client library version |
|
332 | - */ |
|
333 | - #[TentativeType] |
|
334 | - public function get_client_info(): string {} |
|
335 | - |
|
336 | - /** |
|
337 | - * Returns statistics about the client connection |
|
338 | - * @link https://php.net/manual/en/mysqli.get-connection-stats.php |
|
339 | - * @return array|false an array with connection stats if success, false otherwise. |
|
340 | - */ |
|
341 | - #[TentativeType] |
|
342 | - public function get_connection_stats(): array {} |
|
343 | - |
|
344 | - /** |
|
345 | - * An undocumented function equivalent to the $server_info property |
|
346 | - * @link https://php.net/manual/en/mysqli.get-server-info.php |
|
347 | - * @return string A character string representing the server version. |
|
348 | - */ |
|
349 | - #[TentativeType] |
|
350 | - public function get_server_info(): string {} |
|
351 | - |
|
352 | - /** |
|
353 | - * Get result of SHOW WARNINGS |
|
354 | - * @link https://php.net/manual/en/mysqli.get-warnings.php |
|
355 | - * @return mysqli_warning|false |
|
356 | - */ |
|
357 | - #[TentativeType] |
|
358 | - public function get_warnings(): mysqli_warning|false {} |
|
359 | - |
|
360 | - /** |
|
361 | - * Initializes MySQLi and returns a resource for use with mysqli_real_connect() |
|
362 | - * @link https://php.net/manual/en/mysqli.init.php |
|
363 | - * @return mysqli an object. |
|
364 | - * @deprecated 8.1 |
|
365 | - */ |
|
366 | - public function init() {} |
|
367 | - |
|
368 | - /** |
|
369 | - * Asks the server to kill a MySQL thread |
|
370 | - * @link https://php.net/manual/en/mysqli.kill.php |
|
371 | - * @param int $process_id |
|
372 | - * @return bool true on success or false on failure. |
|
373 | - */ |
|
374 | - #[TentativeType] |
|
375 | - public function kill(int $process_id): bool {} |
|
376 | - |
|
377 | - /** |
|
378 | - * Performs a query on the database |
|
379 | - * @link https://php.net/manual/en/mysqli.multi-query.php |
|
380 | - * @param string $query <p> |
|
381 | - * The query, as a string. |
|
382 | - * </p> |
|
383 | - * <p> |
|
384 | - * Data inside the query should be properly escaped. |
|
385 | - * </p> |
|
386 | - * @return bool false if the first statement failed. |
|
387 | - * To retrieve subsequent errors from other statements you have to call |
|
388 | - * <b>mysqli_next_result</b> first. |
|
389 | - */ |
|
390 | - #[TentativeType] |
|
391 | - public function multi_query(string $query): bool {} |
|
392 | - |
|
393 | - /** |
|
394 | - * @link https://php.net/manual/en/mysqli.construct.php |
|
395 | - * @param string $host [optional] |
|
396 | - * @param string $username [optional] |
|
397 | - * @param string $password [optional] |
|
398 | - * @param string $database [optional] |
|
399 | - * @param int $port [optional] |
|
400 | - * @param string $socket [optional] |
|
401 | - * |
|
402 | - * @removed 8.0 |
|
403 | - */ |
|
404 | - public function mysqli($host = null, $username = null, $password = null, $database = null, $port = null, $socket = null) {} |
|
405 | - |
|
406 | - /** |
|
407 | - * Check if there are any more query results from a multi query |
|
408 | - * @link https://php.net/manual/en/mysqli.more-results.php |
|
409 | - * @return bool true on success or false on failure. |
|
410 | - */ |
|
411 | - #[TentativeType] |
|
412 | - public function more_results(): bool {} |
|
413 | - |
|
414 | - /** |
|
415 | - * Prepare next result from multi_query |
|
416 | - * @link https://php.net/manual/en/mysqli.next-result.php |
|
417 | - * @return bool true on success or false on failure. |
|
418 | - */ |
|
419 | - #[TentativeType] |
|
420 | - public function next_result(): bool {} |
|
421 | - |
|
422 | - /** |
|
423 | - * Set options |
|
424 | - * @link https://php.net/manual/en/mysqli.options.php |
|
425 | - * @param int $option <p> |
|
426 | - * The option that you want to set. It can be one of the following values: |
|
427 | - * <table> |
|
428 | - * Valid options |
|
429 | - * <tr valign="top"> |
|
430 | - * <td>Name</td> |
|
431 | - * <td>Description</td> |
|
432 | - * </tr> |
|
433 | - * <tr valign="top"> |
|
434 | - * <td><b>MYSQLI_OPT_CONNECT_TIMEOUT</b></td> |
|
435 | - * <td>connection timeout in seconds (supported on Windows with TCP/IP since PHP 5.3.1)</td> |
|
436 | - * </tr> |
|
437 | - * <tr valign="top"> |
|
438 | - * <td><b>MYSQLI_OPT_LOCAL_INFILE</b></td> |
|
439 | - * <td>enable/disable use of LOAD LOCAL INFILE</td> |
|
440 | - * </tr> |
|
441 | - * <tr valign="top"> |
|
442 | - * <td><b>MYSQLI_INIT_COMMAND</b></td> |
|
443 | - * <td>command to execute after when connecting to MySQL server</td> |
|
444 | - * </tr> |
|
445 | - * <tr valign="top"> |
|
446 | - * <td><b>MYSQLI_READ_DEFAULT_FILE</b></td> |
|
447 | - * <td> |
|
448 | - * Read options from named option file instead of my.cnf |
|
449 | - * </td> |
|
450 | - * </tr> |
|
451 | - * <tr valign="top"> |
|
452 | - * <td><b>MYSQLI_READ_DEFAULT_GROUP</b></td> |
|
453 | - * <td> |
|
454 | - * Read options from the named group from my.cnf |
|
455 | - * or the file specified with <b>MYSQL_READ_DEFAULT_FILE</b> |
|
456 | - * </td> |
|
457 | - * </tr> |
|
458 | - * <tr valign="top"> |
|
459 | - * <td><b>MYSQLI_SERVER_PUBLIC_KEY</b></td> |
|
460 | - * <td> |
|
461 | - * RSA public key file used with the SHA-256 based authentication. |
|
462 | - * </td> |
|
463 | - * </tr> |
|
464 | - * </table> |
|
465 | - * </p> |
|
466 | - * @param mixed $value <p> |
|
467 | - * The value for the option. |
|
468 | - * </p> |
|
469 | - * @return bool true on success or false on failure. |
|
470 | - */ |
|
471 | - #[TentativeType] |
|
472 | - public function options(int $option, $value): bool {} |
|
473 | - |
|
474 | - /** |
|
475 | - * Pings a server connection, or tries to reconnect if the connection has gone down |
|
476 | - * @link https://php.net/manual/en/mysqli.ping.php |
|
477 | - * @return bool true on success or false on failure. |
|
478 | - */ |
|
479 | - #[TentativeType] |
|
480 | - public function ping(): bool {} |
|
481 | - |
|
482 | - /** |
|
483 | - * Prepare an SQL statement for execution |
|
484 | - * @link https://php.net/manual/en/mysqli.prepare.php |
|
485 | - * @param string $query <p> |
|
486 | - * The query, as a string. |
|
487 | - * </p> |
|
488 | - * <p> |
|
489 | - * You should not add a terminating semicolon or \g |
|
490 | - * to the statement. |
|
491 | - * </p> |
|
492 | - * <p> |
|
493 | - * This parameter can include one or more parameter markers in the SQL |
|
494 | - * statement by embedding question mark (?) characters |
|
495 | - * at the appropriate positions. |
|
496 | - * </p> |
|
497 | - * <p> |
|
498 | - * The markers are legal only in certain places in SQL statements. |
|
499 | - * For example, they are allowed in the VALUES() |
|
500 | - * list of an INSERT statement (to specify column |
|
501 | - * values for a row), or in a comparison with a column in a |
|
502 | - * WHERE clause to specify a comparison value. |
|
503 | - * </p> |
|
504 | - * <p> |
|
505 | - * However, they are not allowed for identifiers (such as table or |
|
506 | - * column names), in the select list that names the columns to be |
|
507 | - * returned by a SELECT statement, or to specify both |
|
508 | - * operands of a binary operator such as the = equal |
|
509 | - * sign. The latter restriction is necessary because it would be |
|
510 | - * impossible to determine the parameter type. It's not allowed to |
|
511 | - * compare marker with NULL by |
|
512 | - * ? IS NULL too. In general, parameters are legal |
|
513 | - * only in Data Manipulation Language (DML) statements, and not in Data |
|
514 | - * Definition Language (DDL) statements. |
|
515 | - * </p> |
|
516 | - * @return mysqli_stmt|false <b>mysqli_prepare</b> returns a statement object or false if an error occurred. |
|
517 | - */ |
|
518 | - #[TentativeType] |
|
519 | - public function prepare(string $query): mysqli_stmt|false {} |
|
520 | - |
|
521 | - /** |
|
522 | - * Performs a query on the database |
|
523 | - * @link https://php.net/manual/en/mysqli.query.php |
|
524 | - * @param string $query <p> |
|
525 | - * The query string. |
|
526 | - * </p> |
|
527 | - * <p> |
|
528 | - * Data inside the query should be properly escaped. |
|
529 | - * </p> |
|
530 | - * @param int $result_mode [optional] <p> |
|
531 | - * Either the constant <b>MYSQLI_USE_RESULT</b> or |
|
532 | - * <b>MYSQLI_STORE_RESULT</b> depending on the desired |
|
533 | - * behavior. By default, <b>MYSQLI_STORE_RESULT</b> is used. |
|
534 | - * </p> |
|
535 | - * <p> |
|
536 | - * If you use <b>MYSQLI_USE_RESULT</b> all subsequent calls |
|
537 | - * will return error Commands out of sync unless you |
|
538 | - * call <b>mysqli_free_result</b> |
|
539 | - * </p> |
|
540 | - * <p> |
|
541 | - * With <b>MYSQLI_ASYNC</b> (available with mysqlnd), it is |
|
542 | - * possible to perform query asynchronously. |
|
543 | - * <b>mysqli_poll</b> is then used to get results from such |
|
544 | - * queries. |
|
545 | - * </p> |
|
546 | - * @return mysqli_result|bool For successful SELECT, SHOW, DESCRIBE or |
|
547 | - * EXPLAIN queries <b>mysqli_query</b> will return |
|
548 | - * a <b>mysqli_result</b> object. For other successful queries <b>mysqli_query</b> will |
|
549 | - * return true and false on failure. |
|
550 | - */ |
|
551 | - #[TentativeType] |
|
552 | - public function query(string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {} |
|
553 | - |
|
554 | - /** |
|
555 | - * Opens a connection to a mysql server |
|
556 | - * @link https://php.net/manual/en/mysqli.real-connect.php |
|
557 | - * @param string $hostname [optional] <p> |
|
558 | - * Can be either a host name or an IP address. Passing the null value |
|
559 | - * or the string "localhost" to this parameter, the local host is |
|
560 | - * assumed. When possible, pipes will be used instead of the TCP/IP |
|
561 | - * protocol. |
|
562 | - * </p> |
|
563 | - * @param string $username [optional] <p> |
|
564 | - * The MySQL user name. |
|
565 | - * </p> |
|
566 | - * @param string $password [optional] <p> |
|
567 | - * If provided or null, the MySQL server will attempt to authenticate |
|
568 | - * the user against those user records which have no password only. This |
|
569 | - * allows one username to be used with different permissions (depending |
|
570 | - * on if a password as provided or not). |
|
571 | - * </p> |
|
572 | - * @param string $database [optional] <p> |
|
573 | - * If provided will specify the default database to be used when |
|
574 | - * performing queries. |
|
575 | - * </p> |
|
576 | - * @param int $port [optional] <p> |
|
577 | - * Specifies the port number to attempt to connect to the MySQL server. |
|
578 | - * </p> |
|
579 | - * @param string $socket [optional] <p> |
|
580 | - * Specifies the socket or named pipe that should be used. |
|
581 | - * </p> |
|
582 | - * <p> |
|
583 | - * Specifying the <i>socket</i> parameter will not |
|
584 | - * explicitly determine the type of connection to be used when |
|
585 | - * connecting to the MySQL server. How the connection is made to the |
|
586 | - * MySQL database is determined by the <i>host</i> |
|
587 | - * parameter. |
|
588 | - * </p> |
|
589 | - * @param int $flags [optional] <p> |
|
590 | - * With the parameter <i>flags</i> you can set different |
|
591 | - * connection options: |
|
592 | - * </p> |
|
593 | - * <table> |
|
594 | - * Supported flags |
|
595 | - * <tr valign="top"> |
|
596 | - * <td>Name</td> |
|
597 | - * <td>Description</td> |
|
598 | - * </tr> |
|
599 | - * <tr valign="top"> |
|
600 | - * <td><b>MYSQLI_CLIENT_COMPRESS</b></td> |
|
601 | - * <td>Use compression protocol</td> |
|
602 | - * </tr> |
|
603 | - * <tr valign="top"> |
|
604 | - * <td><b>MYSQLI_CLIENT_FOUND_ROWS</b></td> |
|
605 | - * <td>return number of matched rows, not the number of affected rows</td> |
|
606 | - * </tr> |
|
607 | - * <tr valign="top"> |
|
608 | - * <td><b>MYSQLI_CLIENT_IGNORE_SPACE</b></td> |
|
609 | - * <td>Allow spaces after function names. Makes all function names reserved words.</td> |
|
610 | - * </tr> |
|
611 | - * <tr valign="top"> |
|
612 | - * <td><b>MYSQLI_CLIENT_INTERACTIVE</b></td> |
|
613 | - * <td> |
|
614 | - * Allow interactive_timeout seconds (instead of |
|
615 | - * wait_timeout seconds) of inactivity before closing the connection |
|
616 | - * </td> |
|
617 | - * </tr> |
|
618 | - * <tr valign="top"> |
|
619 | - * <td><b>MYSQLI_CLIENT_SSL</b></td> |
|
620 | - * <td>Use SSL (encryption)</td> |
|
621 | - * </tr> |
|
622 | - * </table> |
|
623 | - * <p> |
|
624 | - * For security reasons the <b>MULTI_STATEMENT</b> flag is |
|
625 | - * not supported in PHP. If you want to execute multiple queries use the |
|
626 | - * <b>mysqli_multi_query</b> function. |
|
627 | - * </p> |
|
628 | - * @return bool true on success or false on failure. |
|
629 | - */ |
|
630 | - #[TentativeType] |
|
631 | - public function real_connect( |
|
632 | - ?string $hostname = null, |
|
633 | - ?string $username = null, |
|
634 | - ?string $password = null, |
|
635 | - ?string $database = null, |
|
636 | - ?int $port = null, |
|
637 | - ?string $socket = null, |
|
638 | - int $flags = null |
|
639 | - ): bool {} |
|
640 | - |
|
641 | - /** |
|
642 | - * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection |
|
643 | - * @link https://php.net/manual/en/mysqli.real-escape-string.php |
|
644 | - * @param string $string <p> |
|
645 | - * The string to be escaped. |
|
646 | - * </p> |
|
647 | - * <p> |
|
648 | - * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and |
|
649 | - * Control-Z. |
|
650 | - * </p> |
|
651 | - * @return string an escaped string. |
|
652 | - */ |
|
653 | - #[TentativeType] |
|
654 | - public function real_escape_string(string $string): string {} |
|
655 | - |
|
656 | - /** |
|
657 | - * Poll connections |
|
658 | - * @link https://php.net/manual/en/mysqli.poll.php |
|
659 | - * @param array &$read <p> |
|
660 | - * </p> |
|
661 | - * @param array &$error <p> |
|
662 | - * </p> |
|
663 | - * @param array &$reject <p> |
|
664 | - * </p> |
|
665 | - * @param int $seconds <p> |
|
666 | - * Number of seconds to wait, must be non-negative. |
|
667 | - * </p> |
|
668 | - * @param int $microseconds [optional] <p> |
|
669 | - * Number of microseconds to wait, must be non-negative. |
|
670 | - * </p> |
|
671 | - * @return int|false number of ready connections in success, false otherwise. |
|
672 | - */ |
|
673 | - #[TentativeType] |
|
674 | - public static function poll(?array &$read, ?array &$error, array &$reject, int $seconds, int $microseconds = 0): int|false {} |
|
675 | - |
|
676 | - /** |
|
677 | - * Get result from async query |
|
678 | - * @link https://php.net/manual/en/mysqli.reap-async-query.php |
|
679 | - * @return mysqli_result|false mysqli_result in success, false otherwise. |
|
680 | - */ |
|
681 | - #[TentativeType] |
|
682 | - public function reap_async_query(): mysqli_result|bool {} |
|
683 | - |
|
684 | - /** |
|
685 | - * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection |
|
686 | - * @param string $string The string to be escaped. |
|
687 | - * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and Control-Z. |
|
688 | - * @return string |
|
689 | - * @link https://secure.php.net/manual/en/mysqli.real-escape-string.php |
|
690 | - */ |
|
691 | - #[TentativeType] |
|
692 | - public function escape_string(string $string): string {} |
|
693 | - |
|
694 | - /** |
|
695 | - * Execute an SQL query |
|
696 | - * @link https://php.net/manual/en/mysqli.real-query.php |
|
697 | - * @param string $query <p> |
|
698 | - * The query, as a string. |
|
699 | - * </p> |
|
700 | - * <p> |
|
701 | - * Data inside the query should be properly escaped. |
|
702 | - * </p> |
|
703 | - * @return bool true on success or false on failure. |
|
704 | - */ |
|
705 | - #[TentativeType] |
|
706 | - public function real_query(string $query): bool {} |
|
707 | - |
|
708 | - /** |
|
709 | - * Execute an SQL query |
|
710 | - * @link https://php.net/manual/en/mysqli.release-savepoint.php |
|
711 | - * @param string $name |
|
712 | - * @return bool Returns TRUE on success or FALSE on failure. |
|
713 | - * @since 5.5 |
|
714 | - */ |
|
715 | - #[TentativeType] |
|
716 | - public function release_savepoint(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} |
|
717 | - |
|
718 | - /** |
|
719 | - * Rolls back current transaction |
|
720 | - * @link https://php.net/manual/en/mysqli.rollback.php |
|
721 | - * @param int $flags [optional] A bitmask of MYSQLI_TRANS_COR_* constants. |
|
722 | - * @param string $name [optional] If provided then ROLLBACK $name is executed. |
|
723 | - * @return bool true on success or false on failure. |
|
724 | - * @since 5.5 Added flags and name parameters. |
|
725 | - */ |
|
726 | - #[TentativeType] |
|
727 | - public function rollback( |
|
728 | - #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0, |
|
729 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null |
|
730 | - ): bool {} |
|
731 | - |
|
732 | - /** |
|
733 | - * Set a named transaction savepoint |
|
734 | - * @link https://secure.php.net/manual/en/mysqli.savepoint.php |
|
735 | - * @param string $name |
|
736 | - * @return bool Returns TRUE on success or FALSE on failure. |
|
737 | - * @since 5.5 |
|
738 | - */ |
|
739 | - #[TentativeType] |
|
740 | - public function savepoint(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} |
|
741 | - |
|
742 | - /** |
|
743 | - * Selects the default database for database queries |
|
744 | - * @link https://php.net/manual/en/mysqli.select-db.php |
|
745 | - * @param string $database <p> |
|
746 | - * The database name. |
|
747 | - * </p> |
|
748 | - * @return bool true on success or false on failure. |
|
749 | - */ |
|
750 | - #[TentativeType] |
|
751 | - public function select_db(string $database): bool {} |
|
752 | - |
|
753 | - /** |
|
754 | - * Sets the default client character set |
|
755 | - * @link https://php.net/manual/en/mysqli.set-charset.php |
|
756 | - * @param string $charset <p> |
|
757 | - * The charset to be set as default. |
|
758 | - * </p> |
|
759 | - * @return bool true on success or false on failure..5 |
|
760 | - */ |
|
761 | - #[TentativeType] |
|
762 | - public function set_charset(string $charset): bool {} |
|
763 | - |
|
764 | - /** |
|
765 | - * @link https://php.net/manual/en/function.mysqli-set-opt |
|
766 | - * @param int $option |
|
767 | - * @param mixed $value |
|
768 | - */ |
|
769 | - #[TentativeType] |
|
770 | - public function set_opt(int $option, $value): bool {} |
|
771 | - |
|
772 | - /** |
|
773 | - * Used for establishing secure connections using SSL |
|
774 | - * @link https://secure.php.net/manual/en/mysqli.ssl-set.php |
|
775 | - * @param string $key <p> |
|
776 | - * The path name to the key file. |
|
777 | - * </p> |
|
778 | - * @param string $certificate <p> |
|
779 | - * The path name to the certificate file. |
|
780 | - * </p> |
|
781 | - * @param string $ca_certificate <p> |
|
782 | - * The path name to the certificate authority file. |
|
783 | - * </p> |
|
784 | - * @param string $ca_path <p> |
|
785 | - * The pathname to a directory that contains trusted SSL CA certificates in PEM format. |
|
786 | - * </p> |
|
787 | - * @param string $cipher_algos <p> |
|
788 | - * A list of allowable ciphers to use for SSL encryption. |
|
789 | - * </p> |
|
790 | - * @return bool This function always returns TRUE value. |
|
791 | - */ |
|
792 | - public function ssl_set(?string $key, ?string $certificate, ?string $ca_certificate, ?string $ca_path, ?string $cipher_algos) {} |
|
793 | - |
|
794 | - /** |
|
795 | - * Gets the current system status |
|
796 | - * @link https://php.net/manual/en/mysqli.stat.php |
|
797 | - * @return string|false A string describing the server status. false if an error occurred. |
|
798 | - */ |
|
799 | - #[TentativeType] |
|
800 | - public function stat(): string|false {} |
|
801 | - |
|
802 | - /** |
|
803 | - * Initializes a statement and returns an object for use with mysqli_stmt_prepare |
|
804 | - * @link https://php.net/manual/en/mysqli.stmt-init.php |
|
805 | - * @return mysqli_stmt an object. |
|
806 | - */ |
|
807 | - #[TentativeType] |
|
808 | - public function stmt_init(): mysqli_stmt|false {} |
|
809 | - |
|
810 | - /** |
|
811 | - * Transfers a result set from the last query |
|
812 | - * @link https://php.net/manual/en/mysqli.store-result.php |
|
813 | - * @param int $mode [optional] The option that you want to set |
|
814 | - * @return mysqli_result|false a buffered result object or false if an error occurred. |
|
815 | - * </p> |
|
816 | - * <p> |
|
817 | - * <b>mysqli_store_result</b> returns false in case the query |
|
818 | - * didn't return a result set (if the query was, for example an INSERT |
|
819 | - * statement). This function also returns false if the reading of the |
|
820 | - * result set failed. You can check if you have got an error by checking |
|
821 | - * if <b>mysqli_error</b> doesn't return an empty string, if |
|
822 | - * <b>mysqli_errno</b> returns a non zero value, or if |
|
823 | - * <b>mysqli_field_count</b> returns a non zero value. |
|
824 | - * Also possible reason for this function returning false after |
|
825 | - * successful call to <b>mysqli_query</b> can be too large |
|
826 | - * result set (memory for it cannot be allocated). If |
|
827 | - * <b>mysqli_field_count</b> returns a non-zero value, the |
|
828 | - * statement should have produced a non-empty result set. |
|
829 | - */ |
|
830 | - #[TentativeType] |
|
831 | - public function store_result(int $mode = null): mysqli_result|false {} |
|
832 | - |
|
833 | - /** |
|
834 | - * Returns whether thread safety is given or not |
|
835 | - * @link https://php.net/manual/en/mysqli.thread-safe.php |
|
836 | - * @return bool true if the client library is thread-safe, otherwise false. |
|
837 | - */ |
|
838 | - #[TentativeType] |
|
839 | - public function thread_safe(): bool {} |
|
840 | - |
|
841 | - /** |
|
842 | - * Initiate a result set retrieval |
|
843 | - * @link https://php.net/manual/en/mysqli.use-result.php |
|
844 | - * @return mysqli_result|false an unbuffered result object or false if an error occurred. |
|
845 | - */ |
|
846 | - #[TentativeType] |
|
847 | - public function use_result(): mysqli_result|false {} |
|
848 | - |
|
849 | - /** |
|
850 | - * @link https://php.net/manual/en/mysqli.refresh |
|
851 | - * @param int $flags MYSQLI_REFRESH_* |
|
852 | - * @return bool TRUE if the refresh was a success, otherwise FALSE |
|
853 | - * @since 5.3 |
|
854 | - */ |
|
855 | - #[TentativeType] |
|
856 | - public function refresh(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): bool {} |
|
76 | + /** |
|
77 | + * @var int |
|
78 | + */ |
|
79 | + #[LanguageLevelTypeAware(['8.1' => 'string|int'], default: '')] |
|
80 | + public $affected_rows; |
|
81 | + /** |
|
82 | + * @var string |
|
83 | + */ |
|
84 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
85 | + public $client_info; |
|
86 | + /** |
|
87 | + * @var int |
|
88 | + */ |
|
89 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
90 | + public $client_version; |
|
91 | + /** |
|
92 | + * @var int |
|
93 | + */ |
|
94 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
95 | + public $connect_errno; |
|
96 | + /** |
|
97 | + * @var string |
|
98 | + */ |
|
99 | + #[LanguageLevelTypeAware(['8.1' => 'string|null'], default: '')] |
|
100 | + public $connect_error; |
|
101 | + /** |
|
102 | + * @var int |
|
103 | + */ |
|
104 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
105 | + public $errno; |
|
106 | + /** |
|
107 | + * @var string |
|
108 | + */ |
|
109 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
110 | + public $error; |
|
111 | + /** |
|
112 | + * @var int |
|
113 | + */ |
|
114 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
115 | + public $field_count; |
|
116 | + /** |
|
117 | + * @var string |
|
118 | + */ |
|
119 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
120 | + public $host_info; |
|
121 | + /** |
|
122 | + * @var string |
|
123 | + */ |
|
124 | + #[LanguageLevelTypeAware(['8.1' => 'string|null'], default: '')] |
|
125 | + public $info; |
|
126 | + /** |
|
127 | + * @var int|string |
|
128 | + */ |
|
129 | + #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
130 | + public $insert_id; |
|
131 | + /** |
|
132 | + * @var string |
|
133 | + */ |
|
134 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
135 | + public $server_info; |
|
136 | + /** |
|
137 | + * @var int |
|
138 | + */ |
|
139 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
140 | + public $server_version; |
|
141 | + /** |
|
142 | + * @var string |
|
143 | + */ |
|
144 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
145 | + public $sqlstate; |
|
146 | + /** |
|
147 | + * @var string |
|
148 | + */ |
|
149 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
150 | + public $protocol_version; |
|
151 | + /** |
|
152 | + * @var int |
|
153 | + */ |
|
154 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
155 | + public $thread_id; |
|
156 | + /** |
|
157 | + * @var int |
|
158 | + */ |
|
159 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
160 | + public $warning_count; |
|
161 | + |
|
162 | + /** |
|
163 | + * @var array A list of errors, each as an associative array containing the errno, error, and sqlstate. |
|
164 | + * @link https://secure.php.net/manual/en/mysqli.error-list.php |
|
165 | + */ |
|
166 | + #[LanguageLevelTypeAware(['8.1' => 'array'], default: '')] |
|
167 | + public $error_list; |
|
168 | + |
|
169 | + public $stat; |
|
170 | + |
|
171 | + /** |
|
172 | + * Open a new connection to the MySQL server |
|
173 | + * @link https://php.net/manual/en/mysqli.construct.php |
|
174 | + * @param string $hostname [optional] Can be either a host name or an IP address. Passing the NULL value or the string "localhost" to this parameter, the local host is assumed. When possible, pipes will be used instead of the TCP/IP protocol. Prepending host by p: opens a persistent connection. mysqli_change_user() is automatically called on connections opened from the connection pool. Defaults to ini_get("mysqli.default_host") |
|
175 | + * @param string $username [optional] The MySQL user name. Defaults to ini_get("mysqli.default_user") |
|
176 | + * @param string $password [optional] If not provided or NULL, the MySQL server will attempt to authenticate the user against those user records which have no password only. This allows one username to be used with different permissions (depending on if a password as provided or not). Defaults to ini_get("mysqli.default_pw") |
|
177 | + * @param string $database [optional] If provided will specify the default database to be used when performing queries. Defaults to "" |
|
178 | + * @param int $port [optional] Specifies the port number to attempt to connect to the MySQL server. Defaults to ini_get("mysqli.default_port") |
|
179 | + * @param string $socket [optional] Specifies the socket or named pipe that should be used. Defaults to ini_get("mysqli.default_socket") |
|
180 | + */ |
|
181 | + public function __construct( |
|
182 | + ?string $hostname = null, |
|
183 | + ?string $username = null, |
|
184 | + ?string $password = null, |
|
185 | + ?string $database = null, |
|
186 | + ?int $port = null, |
|
187 | + ?string $socket = null |
|
188 | + ) {} |
|
189 | + |
|
190 | + /** |
|
191 | + * Turns on or off auto-committing database modifications |
|
192 | + * @link https://php.net/manual/en/mysqli.autocommit.php |
|
193 | + * @param bool $enable <p> |
|
194 | + * Whether to turn on auto-commit or not. |
|
195 | + * </p> |
|
196 | + * @return bool true on success or false on failure. |
|
197 | + */ |
|
198 | + #[TentativeType] |
|
199 | + public function autocommit(bool $enable): bool {} |
|
200 | + |
|
201 | + /** |
|
202 | + * Starts a transaction |
|
203 | + * @link https://secure.php.net/manual/en/mysqli.begin-transaction.php |
|
204 | + * @param int $flags [optional] |
|
205 | + * @param string $name [optional] |
|
206 | + * @return bool true on success or false on failure. |
|
207 | + * @since 5.5 |
|
208 | + */ |
|
209 | + #[TentativeType] |
|
210 | + public function begin_transaction( |
|
211 | + #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0, |
|
212 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null |
|
213 | + ): bool {} |
|
214 | + |
|
215 | + /** |
|
216 | + * Changes the user of the specified database connection |
|
217 | + * @link https://php.net/manual/en/mysqli.change-user.php |
|
218 | + * @param string $username <p> |
|
219 | + * The MySQL user name. |
|
220 | + * </p> |
|
221 | + * @param string $password <p> |
|
222 | + * The MySQL password. |
|
223 | + * </p> |
|
224 | + * @param string $database <p> |
|
225 | + * The database to change to. |
|
226 | + * </p> |
|
227 | + * <p> |
|
228 | + * If desired, the null value may be passed resulting in only changing |
|
229 | + * the user and not selecting a database. To select a database in this |
|
230 | + * case use the <b>mysqli_select_db</b> function. |
|
231 | + * </p> |
|
232 | + * @return bool true on success or false on failure. |
|
233 | + */ |
|
234 | + #[TentativeType] |
|
235 | + public function change_user(string $username, string $password, ?string $database): bool {} |
|
236 | + |
|
237 | + /** |
|
238 | + * Returns the default character set for the database connection |
|
239 | + * @link https://php.net/manual/en/mysqli.character-set-name.php |
|
240 | + * @return string The default character set for the current connection |
|
241 | + */ |
|
242 | + #[TentativeType] |
|
243 | + public function character_set_name(): string {} |
|
244 | + |
|
245 | + /** |
|
246 | + * @removed 5.4 |
|
247 | + */ |
|
248 | + #[Deprecated(since: '5.3')] |
|
249 | + public function client_encoding() {} |
|
250 | + |
|
251 | + /** |
|
252 | + * Closes a previously opened database connection |
|
253 | + * @link https://php.net/manual/en/mysqli.close.php |
|
254 | + * @return bool true on success or false on failure. |
|
255 | + */ |
|
256 | + public function close() {} |
|
257 | + |
|
258 | + /** |
|
259 | + * Commits the current transaction |
|
260 | + * @link https://php.net/manual/en/mysqli.commit.php |
|
261 | + * @param int $flags A bitmask of MYSQLI_TRANS_COR_* constants. |
|
262 | + * @param string $name If provided then COMMIT $name is executed. |
|
263 | + * @return bool true on success or false on failure. |
|
264 | + */ |
|
265 | + #[TentativeType] |
|
266 | + public function commit(int $flags = -1, ?string $name = null): bool {} |
|
267 | + |
|
268 | + /** |
|
269 | + * @link https://php.net/manual/en/function.mysqli-connect.php |
|
270 | + * @param string|null $hostname [optional] |
|
271 | + * @param string|null $username [optional] |
|
272 | + * @param string|null $password [optional] |
|
273 | + * @param string|null $database [optional] |
|
274 | + * @param int|null $port [optional] |
|
275 | + * @param string|null $socket [optional] |
|
276 | + * @return bool |
|
277 | + */ |
|
278 | + #[TentativeType] |
|
279 | + public function connect( |
|
280 | + ?string $hostname = null, |
|
281 | + ?string $username = null, |
|
282 | + ?string $password = null, |
|
283 | + ?string $database = null, |
|
284 | + ?int $port = null, |
|
285 | + ?string $socket = null |
|
286 | + ): bool {} |
|
287 | + |
|
288 | + /** |
|
289 | + * Dump debugging information into the log |
|
290 | + * @link https://php.net/manual/en/mysqli.dump-debug-info.php |
|
291 | + * @return bool true on success or false on failure. |
|
292 | + */ |
|
293 | + #[TentativeType] |
|
294 | + public function dump_debug_info(): bool {} |
|
295 | + |
|
296 | + /** |
|
297 | + * Performs debugging operations |
|
298 | + * @link https://php.net/manual/en/mysqli.debug.php |
|
299 | + * @param string $options <p> |
|
300 | + * A string representing the debugging operation to perform |
|
301 | + * </p> |
|
302 | + * @return bool true. |
|
303 | + */ |
|
304 | + public function debug(string $options) {} |
|
305 | + |
|
306 | + /** |
|
307 | + * Returns a character set object |
|
308 | + * @link https://php.net/manual/en/mysqli.get-charset.php |
|
309 | + * @return object|null The function returns a character set object with the following properties: |
|
310 | + * <i>charset</i> |
|
311 | + * <p>Character set name</p> |
|
312 | + * <i>collation</i> |
|
313 | + * <p>Collation name</p> |
|
314 | + * <i>dir</i> |
|
315 | + * <p>Directory the charset description was fetched from (?) or "" for built-in character sets</p> |
|
316 | + * <i>min_length</i> |
|
317 | + * <p>Minimum character length in bytes</p> |
|
318 | + * <i>max_length</i> |
|
319 | + * <p>Maximum character length in bytes</p> |
|
320 | + * <i>number</i> |
|
321 | + * <p>Internal character set number</p> |
|
322 | + * <i>state</i> |
|
323 | + * <p>Character set status (?)</p> |
|
324 | + */ |
|
325 | + #[TentativeType] |
|
326 | + public function get_charset(): ?object {} |
|
327 | + |
|
328 | + /** |
|
329 | + * Returns the MySQL client version as a string |
|
330 | + * @link https://php.net/manual/en/mysqli.get-client-info.php |
|
331 | + * @return string A string that represents the MySQL client library version |
|
332 | + */ |
|
333 | + #[TentativeType] |
|
334 | + public function get_client_info(): string {} |
|
335 | + |
|
336 | + /** |
|
337 | + * Returns statistics about the client connection |
|
338 | + * @link https://php.net/manual/en/mysqli.get-connection-stats.php |
|
339 | + * @return array|false an array with connection stats if success, false otherwise. |
|
340 | + */ |
|
341 | + #[TentativeType] |
|
342 | + public function get_connection_stats(): array {} |
|
343 | + |
|
344 | + /** |
|
345 | + * An undocumented function equivalent to the $server_info property |
|
346 | + * @link https://php.net/manual/en/mysqli.get-server-info.php |
|
347 | + * @return string A character string representing the server version. |
|
348 | + */ |
|
349 | + #[TentativeType] |
|
350 | + public function get_server_info(): string {} |
|
351 | + |
|
352 | + /** |
|
353 | + * Get result of SHOW WARNINGS |
|
354 | + * @link https://php.net/manual/en/mysqli.get-warnings.php |
|
355 | + * @return mysqli_warning|false |
|
356 | + */ |
|
357 | + #[TentativeType] |
|
358 | + public function get_warnings(): mysqli_warning|false {} |
|
359 | + |
|
360 | + /** |
|
361 | + * Initializes MySQLi and returns a resource for use with mysqli_real_connect() |
|
362 | + * @link https://php.net/manual/en/mysqli.init.php |
|
363 | + * @return mysqli an object. |
|
364 | + * @deprecated 8.1 |
|
365 | + */ |
|
366 | + public function init() {} |
|
367 | + |
|
368 | + /** |
|
369 | + * Asks the server to kill a MySQL thread |
|
370 | + * @link https://php.net/manual/en/mysqli.kill.php |
|
371 | + * @param int $process_id |
|
372 | + * @return bool true on success or false on failure. |
|
373 | + */ |
|
374 | + #[TentativeType] |
|
375 | + public function kill(int $process_id): bool {} |
|
376 | + |
|
377 | + /** |
|
378 | + * Performs a query on the database |
|
379 | + * @link https://php.net/manual/en/mysqli.multi-query.php |
|
380 | + * @param string $query <p> |
|
381 | + * The query, as a string. |
|
382 | + * </p> |
|
383 | + * <p> |
|
384 | + * Data inside the query should be properly escaped. |
|
385 | + * </p> |
|
386 | + * @return bool false if the first statement failed. |
|
387 | + * To retrieve subsequent errors from other statements you have to call |
|
388 | + * <b>mysqli_next_result</b> first. |
|
389 | + */ |
|
390 | + #[TentativeType] |
|
391 | + public function multi_query(string $query): bool {} |
|
392 | + |
|
393 | + /** |
|
394 | + * @link https://php.net/manual/en/mysqli.construct.php |
|
395 | + * @param string $host [optional] |
|
396 | + * @param string $username [optional] |
|
397 | + * @param string $password [optional] |
|
398 | + * @param string $database [optional] |
|
399 | + * @param int $port [optional] |
|
400 | + * @param string $socket [optional] |
|
401 | + * |
|
402 | + * @removed 8.0 |
|
403 | + */ |
|
404 | + public function mysqli($host = null, $username = null, $password = null, $database = null, $port = null, $socket = null) {} |
|
405 | + |
|
406 | + /** |
|
407 | + * Check if there are any more query results from a multi query |
|
408 | + * @link https://php.net/manual/en/mysqli.more-results.php |
|
409 | + * @return bool true on success or false on failure. |
|
410 | + */ |
|
411 | + #[TentativeType] |
|
412 | + public function more_results(): bool {} |
|
413 | + |
|
414 | + /** |
|
415 | + * Prepare next result from multi_query |
|
416 | + * @link https://php.net/manual/en/mysqli.next-result.php |
|
417 | + * @return bool true on success or false on failure. |
|
418 | + */ |
|
419 | + #[TentativeType] |
|
420 | + public function next_result(): bool {} |
|
421 | + |
|
422 | + /** |
|
423 | + * Set options |
|
424 | + * @link https://php.net/manual/en/mysqli.options.php |
|
425 | + * @param int $option <p> |
|
426 | + * The option that you want to set. It can be one of the following values: |
|
427 | + * <table> |
|
428 | + * Valid options |
|
429 | + * <tr valign="top"> |
|
430 | + * <td>Name</td> |
|
431 | + * <td>Description</td> |
|
432 | + * </tr> |
|
433 | + * <tr valign="top"> |
|
434 | + * <td><b>MYSQLI_OPT_CONNECT_TIMEOUT</b></td> |
|
435 | + * <td>connection timeout in seconds (supported on Windows with TCP/IP since PHP 5.3.1)</td> |
|
436 | + * </tr> |
|
437 | + * <tr valign="top"> |
|
438 | + * <td><b>MYSQLI_OPT_LOCAL_INFILE</b></td> |
|
439 | + * <td>enable/disable use of LOAD LOCAL INFILE</td> |
|
440 | + * </tr> |
|
441 | + * <tr valign="top"> |
|
442 | + * <td><b>MYSQLI_INIT_COMMAND</b></td> |
|
443 | + * <td>command to execute after when connecting to MySQL server</td> |
|
444 | + * </tr> |
|
445 | + * <tr valign="top"> |
|
446 | + * <td><b>MYSQLI_READ_DEFAULT_FILE</b></td> |
|
447 | + * <td> |
|
448 | + * Read options from named option file instead of my.cnf |
|
449 | + * </td> |
|
450 | + * </tr> |
|
451 | + * <tr valign="top"> |
|
452 | + * <td><b>MYSQLI_READ_DEFAULT_GROUP</b></td> |
|
453 | + * <td> |
|
454 | + * Read options from the named group from my.cnf |
|
455 | + * or the file specified with <b>MYSQL_READ_DEFAULT_FILE</b> |
|
456 | + * </td> |
|
457 | + * </tr> |
|
458 | + * <tr valign="top"> |
|
459 | + * <td><b>MYSQLI_SERVER_PUBLIC_KEY</b></td> |
|
460 | + * <td> |
|
461 | + * RSA public key file used with the SHA-256 based authentication. |
|
462 | + * </td> |
|
463 | + * </tr> |
|
464 | + * </table> |
|
465 | + * </p> |
|
466 | + * @param mixed $value <p> |
|
467 | + * The value for the option. |
|
468 | + * </p> |
|
469 | + * @return bool true on success or false on failure. |
|
470 | + */ |
|
471 | + #[TentativeType] |
|
472 | + public function options(int $option, $value): bool {} |
|
473 | + |
|
474 | + /** |
|
475 | + * Pings a server connection, or tries to reconnect if the connection has gone down |
|
476 | + * @link https://php.net/manual/en/mysqli.ping.php |
|
477 | + * @return bool true on success or false on failure. |
|
478 | + */ |
|
479 | + #[TentativeType] |
|
480 | + public function ping(): bool {} |
|
481 | + |
|
482 | + /** |
|
483 | + * Prepare an SQL statement for execution |
|
484 | + * @link https://php.net/manual/en/mysqli.prepare.php |
|
485 | + * @param string $query <p> |
|
486 | + * The query, as a string. |
|
487 | + * </p> |
|
488 | + * <p> |
|
489 | + * You should not add a terminating semicolon or \g |
|
490 | + * to the statement. |
|
491 | + * </p> |
|
492 | + * <p> |
|
493 | + * This parameter can include one or more parameter markers in the SQL |
|
494 | + * statement by embedding question mark (?) characters |
|
495 | + * at the appropriate positions. |
|
496 | + * </p> |
|
497 | + * <p> |
|
498 | + * The markers are legal only in certain places in SQL statements. |
|
499 | + * For example, they are allowed in the VALUES() |
|
500 | + * list of an INSERT statement (to specify column |
|
501 | + * values for a row), or in a comparison with a column in a |
|
502 | + * WHERE clause to specify a comparison value. |
|
503 | + * </p> |
|
504 | + * <p> |
|
505 | + * However, they are not allowed for identifiers (such as table or |
|
506 | + * column names), in the select list that names the columns to be |
|
507 | + * returned by a SELECT statement, or to specify both |
|
508 | + * operands of a binary operator such as the = equal |
|
509 | + * sign. The latter restriction is necessary because it would be |
|
510 | + * impossible to determine the parameter type. It's not allowed to |
|
511 | + * compare marker with NULL by |
|
512 | + * ? IS NULL too. In general, parameters are legal |
|
513 | + * only in Data Manipulation Language (DML) statements, and not in Data |
|
514 | + * Definition Language (DDL) statements. |
|
515 | + * </p> |
|
516 | + * @return mysqli_stmt|false <b>mysqli_prepare</b> returns a statement object or false if an error occurred. |
|
517 | + */ |
|
518 | + #[TentativeType] |
|
519 | + public function prepare(string $query): mysqli_stmt|false {} |
|
520 | + |
|
521 | + /** |
|
522 | + * Performs a query on the database |
|
523 | + * @link https://php.net/manual/en/mysqli.query.php |
|
524 | + * @param string $query <p> |
|
525 | + * The query string. |
|
526 | + * </p> |
|
527 | + * <p> |
|
528 | + * Data inside the query should be properly escaped. |
|
529 | + * </p> |
|
530 | + * @param int $result_mode [optional] <p> |
|
531 | + * Either the constant <b>MYSQLI_USE_RESULT</b> or |
|
532 | + * <b>MYSQLI_STORE_RESULT</b> depending on the desired |
|
533 | + * behavior. By default, <b>MYSQLI_STORE_RESULT</b> is used. |
|
534 | + * </p> |
|
535 | + * <p> |
|
536 | + * If you use <b>MYSQLI_USE_RESULT</b> all subsequent calls |
|
537 | + * will return error Commands out of sync unless you |
|
538 | + * call <b>mysqli_free_result</b> |
|
539 | + * </p> |
|
540 | + * <p> |
|
541 | + * With <b>MYSQLI_ASYNC</b> (available with mysqlnd), it is |
|
542 | + * possible to perform query asynchronously. |
|
543 | + * <b>mysqli_poll</b> is then used to get results from such |
|
544 | + * queries. |
|
545 | + * </p> |
|
546 | + * @return mysqli_result|bool For successful SELECT, SHOW, DESCRIBE or |
|
547 | + * EXPLAIN queries <b>mysqli_query</b> will return |
|
548 | + * a <b>mysqli_result</b> object. For other successful queries <b>mysqli_query</b> will |
|
549 | + * return true and false on failure. |
|
550 | + */ |
|
551 | + #[TentativeType] |
|
552 | + public function query(string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {} |
|
553 | + |
|
554 | + /** |
|
555 | + * Opens a connection to a mysql server |
|
556 | + * @link https://php.net/manual/en/mysqli.real-connect.php |
|
557 | + * @param string $hostname [optional] <p> |
|
558 | + * Can be either a host name or an IP address. Passing the null value |
|
559 | + * or the string "localhost" to this parameter, the local host is |
|
560 | + * assumed. When possible, pipes will be used instead of the TCP/IP |
|
561 | + * protocol. |
|
562 | + * </p> |
|
563 | + * @param string $username [optional] <p> |
|
564 | + * The MySQL user name. |
|
565 | + * </p> |
|
566 | + * @param string $password [optional] <p> |
|
567 | + * If provided or null, the MySQL server will attempt to authenticate |
|
568 | + * the user against those user records which have no password only. This |
|
569 | + * allows one username to be used with different permissions (depending |
|
570 | + * on if a password as provided or not). |
|
571 | + * </p> |
|
572 | + * @param string $database [optional] <p> |
|
573 | + * If provided will specify the default database to be used when |
|
574 | + * performing queries. |
|
575 | + * </p> |
|
576 | + * @param int $port [optional] <p> |
|
577 | + * Specifies the port number to attempt to connect to the MySQL server. |
|
578 | + * </p> |
|
579 | + * @param string $socket [optional] <p> |
|
580 | + * Specifies the socket or named pipe that should be used. |
|
581 | + * </p> |
|
582 | + * <p> |
|
583 | + * Specifying the <i>socket</i> parameter will not |
|
584 | + * explicitly determine the type of connection to be used when |
|
585 | + * connecting to the MySQL server. How the connection is made to the |
|
586 | + * MySQL database is determined by the <i>host</i> |
|
587 | + * parameter. |
|
588 | + * </p> |
|
589 | + * @param int $flags [optional] <p> |
|
590 | + * With the parameter <i>flags</i> you can set different |
|
591 | + * connection options: |
|
592 | + * </p> |
|
593 | + * <table> |
|
594 | + * Supported flags |
|
595 | + * <tr valign="top"> |
|
596 | + * <td>Name</td> |
|
597 | + * <td>Description</td> |
|
598 | + * </tr> |
|
599 | + * <tr valign="top"> |
|
600 | + * <td><b>MYSQLI_CLIENT_COMPRESS</b></td> |
|
601 | + * <td>Use compression protocol</td> |
|
602 | + * </tr> |
|
603 | + * <tr valign="top"> |
|
604 | + * <td><b>MYSQLI_CLIENT_FOUND_ROWS</b></td> |
|
605 | + * <td>return number of matched rows, not the number of affected rows</td> |
|
606 | + * </tr> |
|
607 | + * <tr valign="top"> |
|
608 | + * <td><b>MYSQLI_CLIENT_IGNORE_SPACE</b></td> |
|
609 | + * <td>Allow spaces after function names. Makes all function names reserved words.</td> |
|
610 | + * </tr> |
|
611 | + * <tr valign="top"> |
|
612 | + * <td><b>MYSQLI_CLIENT_INTERACTIVE</b></td> |
|
613 | + * <td> |
|
614 | + * Allow interactive_timeout seconds (instead of |
|
615 | + * wait_timeout seconds) of inactivity before closing the connection |
|
616 | + * </td> |
|
617 | + * </tr> |
|
618 | + * <tr valign="top"> |
|
619 | + * <td><b>MYSQLI_CLIENT_SSL</b></td> |
|
620 | + * <td>Use SSL (encryption)</td> |
|
621 | + * </tr> |
|
622 | + * </table> |
|
623 | + * <p> |
|
624 | + * For security reasons the <b>MULTI_STATEMENT</b> flag is |
|
625 | + * not supported in PHP. If you want to execute multiple queries use the |
|
626 | + * <b>mysqli_multi_query</b> function. |
|
627 | + * </p> |
|
628 | + * @return bool true on success or false on failure. |
|
629 | + */ |
|
630 | + #[TentativeType] |
|
631 | + public function real_connect( |
|
632 | + ?string $hostname = null, |
|
633 | + ?string $username = null, |
|
634 | + ?string $password = null, |
|
635 | + ?string $database = null, |
|
636 | + ?int $port = null, |
|
637 | + ?string $socket = null, |
|
638 | + int $flags = null |
|
639 | + ): bool {} |
|
640 | + |
|
641 | + /** |
|
642 | + * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection |
|
643 | + * @link https://php.net/manual/en/mysqli.real-escape-string.php |
|
644 | + * @param string $string <p> |
|
645 | + * The string to be escaped. |
|
646 | + * </p> |
|
647 | + * <p> |
|
648 | + * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and |
|
649 | + * Control-Z. |
|
650 | + * </p> |
|
651 | + * @return string an escaped string. |
|
652 | + */ |
|
653 | + #[TentativeType] |
|
654 | + public function real_escape_string(string $string): string {} |
|
655 | + |
|
656 | + /** |
|
657 | + * Poll connections |
|
658 | + * @link https://php.net/manual/en/mysqli.poll.php |
|
659 | + * @param array &$read <p> |
|
660 | + * </p> |
|
661 | + * @param array &$error <p> |
|
662 | + * </p> |
|
663 | + * @param array &$reject <p> |
|
664 | + * </p> |
|
665 | + * @param int $seconds <p> |
|
666 | + * Number of seconds to wait, must be non-negative. |
|
667 | + * </p> |
|
668 | + * @param int $microseconds [optional] <p> |
|
669 | + * Number of microseconds to wait, must be non-negative. |
|
670 | + * </p> |
|
671 | + * @return int|false number of ready connections in success, false otherwise. |
|
672 | + */ |
|
673 | + #[TentativeType] |
|
674 | + public static function poll(?array &$read, ?array &$error, array &$reject, int $seconds, int $microseconds = 0): int|false {} |
|
675 | + |
|
676 | + /** |
|
677 | + * Get result from async query |
|
678 | + * @link https://php.net/manual/en/mysqli.reap-async-query.php |
|
679 | + * @return mysqli_result|false mysqli_result in success, false otherwise. |
|
680 | + */ |
|
681 | + #[TentativeType] |
|
682 | + public function reap_async_query(): mysqli_result|bool {} |
|
683 | + |
|
684 | + /** |
|
685 | + * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection |
|
686 | + * @param string $string The string to be escaped. |
|
687 | + * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and Control-Z. |
|
688 | + * @return string |
|
689 | + * @link https://secure.php.net/manual/en/mysqli.real-escape-string.php |
|
690 | + */ |
|
691 | + #[TentativeType] |
|
692 | + public function escape_string(string $string): string {} |
|
693 | + |
|
694 | + /** |
|
695 | + * Execute an SQL query |
|
696 | + * @link https://php.net/manual/en/mysqli.real-query.php |
|
697 | + * @param string $query <p> |
|
698 | + * The query, as a string. |
|
699 | + * </p> |
|
700 | + * <p> |
|
701 | + * Data inside the query should be properly escaped. |
|
702 | + * </p> |
|
703 | + * @return bool true on success or false on failure. |
|
704 | + */ |
|
705 | + #[TentativeType] |
|
706 | + public function real_query(string $query): bool {} |
|
707 | + |
|
708 | + /** |
|
709 | + * Execute an SQL query |
|
710 | + * @link https://php.net/manual/en/mysqli.release-savepoint.php |
|
711 | + * @param string $name |
|
712 | + * @return bool Returns TRUE on success or FALSE on failure. |
|
713 | + * @since 5.5 |
|
714 | + */ |
|
715 | + #[TentativeType] |
|
716 | + public function release_savepoint(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} |
|
717 | + |
|
718 | + /** |
|
719 | + * Rolls back current transaction |
|
720 | + * @link https://php.net/manual/en/mysqli.rollback.php |
|
721 | + * @param int $flags [optional] A bitmask of MYSQLI_TRANS_COR_* constants. |
|
722 | + * @param string $name [optional] If provided then ROLLBACK $name is executed. |
|
723 | + * @return bool true on success or false on failure. |
|
724 | + * @since 5.5 Added flags and name parameters. |
|
725 | + */ |
|
726 | + #[TentativeType] |
|
727 | + public function rollback( |
|
728 | + #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0, |
|
729 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null |
|
730 | + ): bool {} |
|
731 | + |
|
732 | + /** |
|
733 | + * Set a named transaction savepoint |
|
734 | + * @link https://secure.php.net/manual/en/mysqli.savepoint.php |
|
735 | + * @param string $name |
|
736 | + * @return bool Returns TRUE on success or FALSE on failure. |
|
737 | + * @since 5.5 |
|
738 | + */ |
|
739 | + #[TentativeType] |
|
740 | + public function savepoint(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} |
|
741 | + |
|
742 | + /** |
|
743 | + * Selects the default database for database queries |
|
744 | + * @link https://php.net/manual/en/mysqli.select-db.php |
|
745 | + * @param string $database <p> |
|
746 | + * The database name. |
|
747 | + * </p> |
|
748 | + * @return bool true on success or false on failure. |
|
749 | + */ |
|
750 | + #[TentativeType] |
|
751 | + public function select_db(string $database): bool {} |
|
752 | + |
|
753 | + /** |
|
754 | + * Sets the default client character set |
|
755 | + * @link https://php.net/manual/en/mysqli.set-charset.php |
|
756 | + * @param string $charset <p> |
|
757 | + * The charset to be set as default. |
|
758 | + * </p> |
|
759 | + * @return bool true on success or false on failure..5 |
|
760 | + */ |
|
761 | + #[TentativeType] |
|
762 | + public function set_charset(string $charset): bool {} |
|
763 | + |
|
764 | + /** |
|
765 | + * @link https://php.net/manual/en/function.mysqli-set-opt |
|
766 | + * @param int $option |
|
767 | + * @param mixed $value |
|
768 | + */ |
|
769 | + #[TentativeType] |
|
770 | + public function set_opt(int $option, $value): bool {} |
|
771 | + |
|
772 | + /** |
|
773 | + * Used for establishing secure connections using SSL |
|
774 | + * @link https://secure.php.net/manual/en/mysqli.ssl-set.php |
|
775 | + * @param string $key <p> |
|
776 | + * The path name to the key file. |
|
777 | + * </p> |
|
778 | + * @param string $certificate <p> |
|
779 | + * The path name to the certificate file. |
|
780 | + * </p> |
|
781 | + * @param string $ca_certificate <p> |
|
782 | + * The path name to the certificate authority file. |
|
783 | + * </p> |
|
784 | + * @param string $ca_path <p> |
|
785 | + * The pathname to a directory that contains trusted SSL CA certificates in PEM format. |
|
786 | + * </p> |
|
787 | + * @param string $cipher_algos <p> |
|
788 | + * A list of allowable ciphers to use for SSL encryption. |
|
789 | + * </p> |
|
790 | + * @return bool This function always returns TRUE value. |
|
791 | + */ |
|
792 | + public function ssl_set(?string $key, ?string $certificate, ?string $ca_certificate, ?string $ca_path, ?string $cipher_algos) {} |
|
793 | + |
|
794 | + /** |
|
795 | + * Gets the current system status |
|
796 | + * @link https://php.net/manual/en/mysqli.stat.php |
|
797 | + * @return string|false A string describing the server status. false if an error occurred. |
|
798 | + */ |
|
799 | + #[TentativeType] |
|
800 | + public function stat(): string|false {} |
|
801 | + |
|
802 | + /** |
|
803 | + * Initializes a statement and returns an object for use with mysqli_stmt_prepare |
|
804 | + * @link https://php.net/manual/en/mysqli.stmt-init.php |
|
805 | + * @return mysqli_stmt an object. |
|
806 | + */ |
|
807 | + #[TentativeType] |
|
808 | + public function stmt_init(): mysqli_stmt|false {} |
|
809 | + |
|
810 | + /** |
|
811 | + * Transfers a result set from the last query |
|
812 | + * @link https://php.net/manual/en/mysqli.store-result.php |
|
813 | + * @param int $mode [optional] The option that you want to set |
|
814 | + * @return mysqli_result|false a buffered result object or false if an error occurred. |
|
815 | + * </p> |
|
816 | + * <p> |
|
817 | + * <b>mysqli_store_result</b> returns false in case the query |
|
818 | + * didn't return a result set (if the query was, for example an INSERT |
|
819 | + * statement). This function also returns false if the reading of the |
|
820 | + * result set failed. You can check if you have got an error by checking |
|
821 | + * if <b>mysqli_error</b> doesn't return an empty string, if |
|
822 | + * <b>mysqli_errno</b> returns a non zero value, or if |
|
823 | + * <b>mysqli_field_count</b> returns a non zero value. |
|
824 | + * Also possible reason for this function returning false after |
|
825 | + * successful call to <b>mysqli_query</b> can be too large |
|
826 | + * result set (memory for it cannot be allocated). If |
|
827 | + * <b>mysqli_field_count</b> returns a non-zero value, the |
|
828 | + * statement should have produced a non-empty result set. |
|
829 | + */ |
|
830 | + #[TentativeType] |
|
831 | + public function store_result(int $mode = null): mysqli_result|false {} |
|
832 | + |
|
833 | + /** |
|
834 | + * Returns whether thread safety is given or not |
|
835 | + * @link https://php.net/manual/en/mysqli.thread-safe.php |
|
836 | + * @return bool true if the client library is thread-safe, otherwise false. |
|
837 | + */ |
|
838 | + #[TentativeType] |
|
839 | + public function thread_safe(): bool {} |
|
840 | + |
|
841 | + /** |
|
842 | + * Initiate a result set retrieval |
|
843 | + * @link https://php.net/manual/en/mysqli.use-result.php |
|
844 | + * @return mysqli_result|false an unbuffered result object or false if an error occurred. |
|
845 | + */ |
|
846 | + #[TentativeType] |
|
847 | + public function use_result(): mysqli_result|false {} |
|
848 | + |
|
849 | + /** |
|
850 | + * @link https://php.net/manual/en/mysqli.refresh |
|
851 | + * @param int $flags MYSQLI_REFRESH_* |
|
852 | + * @return bool TRUE if the refresh was a success, otherwise FALSE |
|
853 | + * @since 5.3 |
|
854 | + */ |
|
855 | + #[TentativeType] |
|
856 | + public function refresh(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): bool {} |
|
857 | 857 | } |
858 | 858 | |
859 | 859 | /** |
@@ -862,42 +862,42 @@ discard block |
||
862 | 862 | */ |
863 | 863 | final class mysqli_warning |
864 | 864 | { |
865 | - /** |
|
866 | - * @var string |
|
867 | - */ |
|
868 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
869 | - public $message; |
|
870 | - /** |
|
871 | - * @var string |
|
872 | - */ |
|
873 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
874 | - public $sqlstate; |
|
875 | - /** |
|
876 | - * @var int |
|
877 | - */ |
|
878 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
879 | - public $errno; |
|
880 | - |
|
881 | - /** |
|
882 | - * The __construct purpose |
|
883 | - * @link https://php.net/manual/en/mysqli-warning.construct.php |
|
884 | - */ |
|
885 | - #[PhpStormStubsElementAvailable(from: '8.0')] |
|
886 | - private function __construct() {} |
|
887 | - |
|
888 | - /** |
|
889 | - * The __construct purpose |
|
890 | - * @link https://php.net/manual/en/mysqli-warning.construct.php |
|
891 | - */ |
|
892 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] |
|
893 | - protected function __construct() {} |
|
894 | - |
|
895 | - /** |
|
896 | - * Move to the next warning |
|
897 | - * @link https://php.net/manual/en/mysqli-warning.next.php |
|
898 | - * @return bool True if it successfully moved to the next warning |
|
899 | - */ |
|
900 | - public function next(): bool {} |
|
865 | + /** |
|
866 | + * @var string |
|
867 | + */ |
|
868 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
869 | + public $message; |
|
870 | + /** |
|
871 | + * @var string |
|
872 | + */ |
|
873 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
874 | + public $sqlstate; |
|
875 | + /** |
|
876 | + * @var int |
|
877 | + */ |
|
878 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
879 | + public $errno; |
|
880 | + |
|
881 | + /** |
|
882 | + * The __construct purpose |
|
883 | + * @link https://php.net/manual/en/mysqli-warning.construct.php |
|
884 | + */ |
|
885 | + #[PhpStormStubsElementAvailable(from: '8.0')] |
|
886 | + private function __construct() {} |
|
887 | + |
|
888 | + /** |
|
889 | + * The __construct purpose |
|
890 | + * @link https://php.net/manual/en/mysqli-warning.construct.php |
|
891 | + */ |
|
892 | + #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] |
|
893 | + protected function __construct() {} |
|
894 | + |
|
895 | + /** |
|
896 | + * Move to the next warning |
|
897 | + * @link https://php.net/manual/en/mysqli-warning.next.php |
|
898 | + * @return bool True if it successfully moved to the next warning |
|
899 | + */ |
|
900 | + public function next(): bool {} |
|
901 | 901 | } |
902 | 902 | |
903 | 903 | /** |
@@ -907,376 +907,376 @@ discard block |
||
907 | 907 | */ |
908 | 908 | class mysqli_result implements IteratorAggregate |
909 | 909 | { |
910 | - /** |
|
911 | - * @var int |
|
912 | - */ |
|
913 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
914 | - public $current_field; |
|
915 | - /** |
|
916 | - * @var int |
|
917 | - */ |
|
918 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
919 | - public $field_count; |
|
920 | - /** |
|
921 | - * @var array |
|
922 | - */ |
|
923 | - #[LanguageLevelTypeAware(['8.1' => 'array|null'], default: '')] |
|
924 | - public $lengths; |
|
925 | - /** |
|
926 | - * @var int |
|
927 | - */ |
|
928 | - #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
929 | - public $num_rows; |
|
930 | - /** |
|
931 | - * @var mixed |
|
932 | - */ |
|
933 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
934 | - public $type; |
|
935 | - |
|
936 | - /** |
|
937 | - * Constructor (no docs available) |
|
938 | - * @param object $mysql [optional] |
|
939 | - * @param int $result_mode [optional] |
|
940 | - */ |
|
941 | - public function __construct( |
|
942 | - #[PhpStormStubsElementAvailable(from: '8.0')] mysqli $mysql = null, |
|
943 | - #[PhpStormStubsElementAvailable(from: '8.0')] int $result_mode = 0 |
|
944 | - ) {} |
|
945 | - |
|
946 | - /** |
|
947 | - * Frees the memory associated with a result |
|
948 | - * @return void |
|
949 | - * @link https://php.net/manual/en/mysqli-result.free.php |
|
950 | - */ |
|
951 | - #[TentativeType] |
|
952 | - public function close(): void {} |
|
953 | - |
|
954 | - /** |
|
955 | - * Frees the memory associated with a result |
|
956 | - * @link https://php.net/manual/en/mysqli-result.free.php |
|
957 | - * @return void |
|
958 | - */ |
|
959 | - #[TentativeType] |
|
960 | - public function free(): void {} |
|
961 | - |
|
962 | - /** |
|
963 | - * Adjusts the result pointer to an arbitrary row in the result |
|
964 | - * @link https://php.net/manual/en/mysqli-result.data-seek.php |
|
965 | - * @param int $offset <p> |
|
966 | - * The field offset. Must be between zero and the total number of rows |
|
967 | - * minus one (0..<b>mysqli_num_rows</b> - 1). |
|
968 | - * </p> |
|
969 | - * @return bool true on success or false on failure. |
|
970 | - */ |
|
971 | - #[TentativeType] |
|
972 | - public function data_seek(int $offset): bool {} |
|
973 | - |
|
974 | - /** |
|
975 | - * Returns the next field in the result set |
|
976 | - * @link https://php.net/manual/en/mysqli-result.fetch-field.php |
|
977 | - * @return object|false an object which contains field definition information or false |
|
978 | - * if no field information is available. |
|
979 | - * </p> |
|
980 | - * <p> |
|
981 | - * <table> |
|
982 | - * Object properties |
|
983 | - * <tr valign="top"> |
|
984 | - * <td>Property</td> |
|
985 | - * <td>Description</td> |
|
986 | - * </tr> |
|
987 | - * <tr valign="top"> |
|
988 | - * <td>name</td> |
|
989 | - * <td>The name of the column</td> |
|
990 | - * </tr> |
|
991 | - * <tr valign="top"> |
|
992 | - * <td>orgname</td> |
|
993 | - * <td>Original column name if an alias was specified</td> |
|
994 | - * </tr> |
|
995 | - * <tr valign="top"> |
|
996 | - * <td>table</td> |
|
997 | - * <td>The name of the table this field belongs to (if not calculated)</td> |
|
998 | - * </tr> |
|
999 | - * <tr valign="top"> |
|
1000 | - * <td>orgtable</td> |
|
1001 | - * <td>Original table name if an alias was specified</td> |
|
1002 | - * </tr> |
|
1003 | - * <tr valign="top"> |
|
1004 | - * <td>def</td> |
|
1005 | - * <td>Reserved for default value, currently always ""</td> |
|
1006 | - * </tr> |
|
1007 | - * <tr valign="top"> |
|
1008 | - * <td>db</td> |
|
1009 | - * <td>Database (since PHP 5.3.6)</td> |
|
1010 | - * </tr> |
|
1011 | - * <tr valign="top"> |
|
1012 | - * <td>catalog</td> |
|
1013 | - * <td>The catalog name, always "def" (since PHP 5.3.6)</td> |
|
1014 | - * </tr> |
|
1015 | - * <tr valign="top"> |
|
1016 | - * <td>max_length</td> |
|
1017 | - * <td>The maximum width of the field for the result set.</td> |
|
1018 | - * </tr> |
|
1019 | - * <tr valign="top"> |
|
1020 | - * <td>length</td> |
|
1021 | - * <td>The width of the field, as specified in the table definition.</td> |
|
1022 | - * </tr> |
|
1023 | - * <tr valign="top"> |
|
1024 | - * <td>charsetnr</td> |
|
1025 | - * <td>The character set number for the field.</td> |
|
1026 | - * </tr> |
|
1027 | - * <tr valign="top"> |
|
1028 | - * <td>flags</td> |
|
1029 | - * <td>An integer representing the bit-flags for the field.</td> |
|
1030 | - * </tr> |
|
1031 | - * <tr valign="top"> |
|
1032 | - * <td>type</td> |
|
1033 | - * <td>The data type used for this field</td> |
|
1034 | - * </tr> |
|
1035 | - * <tr valign="top"> |
|
1036 | - * <td>decimals</td> |
|
1037 | - * <td>The number of decimals used (for integer fields)</td> |
|
1038 | - * </tr> |
|
1039 | - * </table> |
|
1040 | - */ |
|
1041 | - #[TentativeType] |
|
1042 | - public function fetch_field(): object|false {} |
|
1043 | - |
|
1044 | - /** |
|
1045 | - * Returns an array of objects representing the fields in a result set |
|
1046 | - * @link https://php.net/manual/en/mysqli-result.fetch-fields.php |
|
1047 | - * @return array|false an array of objects which contains field definition information or |
|
1048 | - * false if no field information is available. |
|
1049 | - * </p> |
|
1050 | - * <p> |
|
1051 | - * <table> |
|
1052 | - * Object properties |
|
1053 | - * <tr valign="top"> |
|
1054 | - * <td>Property</td> |
|
1055 | - * <td>Description</td> |
|
1056 | - * </tr> |
|
1057 | - * <tr valign="top"> |
|
1058 | - * <td>name</td> |
|
1059 | - * <td>The name of the column</td> |
|
1060 | - * </tr> |
|
1061 | - * <tr valign="top"> |
|
1062 | - * <td>orgname</td> |
|
1063 | - * <td>Original column name if an alias was specified</td> |
|
1064 | - * </tr> |
|
1065 | - * <tr valign="top"> |
|
1066 | - * <td>table</td> |
|
1067 | - * <td>The name of the table this field belongs to (if not calculated)</td> |
|
1068 | - * </tr> |
|
1069 | - * <tr valign="top"> |
|
1070 | - * <td>orgtable</td> |
|
1071 | - * <td>Original table name if an alias was specified</td> |
|
1072 | - * </tr> |
|
1073 | - * <tr valign="top"> |
|
1074 | - * <td>def</td> |
|
1075 | - * <td>The default value for this field, represented as a string</td> |
|
1076 | - * </tr> |
|
1077 | - * <tr valign="top"> |
|
1078 | - * <td>max_length</td> |
|
1079 | - * <td>The maximum width of the field for the result set.</td> |
|
1080 | - * </tr> |
|
1081 | - * <tr valign="top"> |
|
1082 | - * <td>length</td> |
|
1083 | - * <td>The width of the field, as specified in the table definition.</td> |
|
1084 | - * </tr> |
|
1085 | - * <tr valign="top"> |
|
1086 | - * <td>charsetnr</td> |
|
1087 | - * <td>The character set number for the field.</td> |
|
1088 | - * </tr> |
|
1089 | - * <tr valign="top"> |
|
1090 | - * <td>flags</td> |
|
1091 | - * <td>An integer representing the bit-flags for the field.</td> |
|
1092 | - * </tr> |
|
1093 | - * <tr valign="top"> |
|
1094 | - * <td>type</td> |
|
1095 | - * <td>The data type used for this field</td> |
|
1096 | - * </tr> |
|
1097 | - * <tr valign="top"> |
|
1098 | - * <td>decimals</td> |
|
1099 | - * <td>The number of decimals used (for integer fields)</td> |
|
1100 | - * </tr> |
|
1101 | - * </table> |
|
1102 | - */ |
|
1103 | - #[TentativeType] |
|
1104 | - public function fetch_fields(): array {} |
|
1105 | - |
|
1106 | - /** |
|
1107 | - * Fetch meta-data for a single field |
|
1108 | - * @link https://php.net/manual/en/mysqli-result.fetch-field-direct.php |
|
1109 | - * @param int $index <p> |
|
1110 | - * The field number. This value must be in the range from |
|
1111 | - * 0 to number of fields - 1. |
|
1112 | - * </p> |
|
1113 | - * @return object|false an object which contains field definition information or false |
|
1114 | - * if no field information for specified fieldnr is |
|
1115 | - * available. |
|
1116 | - * </p> |
|
1117 | - * <p> |
|
1118 | - * <table> |
|
1119 | - * Object attributes |
|
1120 | - * <tr valign="top"> |
|
1121 | - * <td>Attribute</td> |
|
1122 | - * <td>Description</td> |
|
1123 | - * </tr> |
|
1124 | - * <tr valign="top"> |
|
1125 | - * <td>name</td> |
|
1126 | - * <td>The name of the column</td> |
|
1127 | - * </tr> |
|
1128 | - * <tr valign="top"> |
|
1129 | - * <td>orgname</td> |
|
1130 | - * <td>Original column name if an alias was specified</td> |
|
1131 | - * </tr> |
|
1132 | - * <tr valign="top"> |
|
1133 | - * <td>table</td> |
|
1134 | - * <td>The name of the table this field belongs to (if not calculated)</td> |
|
1135 | - * </tr> |
|
1136 | - * <tr valign="top"> |
|
1137 | - * <td>orgtable</td> |
|
1138 | - * <td>Original table name if an alias was specified</td> |
|
1139 | - * </tr> |
|
1140 | - * <tr valign="top"> |
|
1141 | - * <td>def</td> |
|
1142 | - * <td>The default value for this field, represented as a string</td> |
|
1143 | - * </tr> |
|
1144 | - * <tr valign="top"> |
|
1145 | - * <td>max_length</td> |
|
1146 | - * <td>The maximum width of the field for the result set.</td> |
|
1147 | - * </tr> |
|
1148 | - * <tr valign="top"> |
|
1149 | - * <td>length</td> |
|
1150 | - * <td>The width of the field, as specified in the table definition.</td> |
|
1151 | - * </tr> |
|
1152 | - * <tr valign="top"> |
|
1153 | - * <td>charsetnr</td> |
|
1154 | - * <td>The character set number for the field.</td> |
|
1155 | - * </tr> |
|
1156 | - * <tr valign="top"> |
|
1157 | - * <td>flags</td> |
|
1158 | - * <td>An integer representing the bit-flags for the field.</td> |
|
1159 | - * </tr> |
|
1160 | - * <tr valign="top"> |
|
1161 | - * <td>type</td> |
|
1162 | - * <td>The data type used for this field</td> |
|
1163 | - * </tr> |
|
1164 | - * <tr valign="top"> |
|
1165 | - * <td>decimals</td> |
|
1166 | - * <td>The number of decimals used (for integer fields)</td> |
|
1167 | - * </tr> |
|
1168 | - * </table> |
|
1169 | - */ |
|
1170 | - #[TentativeType] |
|
1171 | - public function fetch_field_direct(int $index): object|false {} |
|
1172 | - |
|
1173 | - /** |
|
1174 | - * Fetches all result rows as an associative array, a numeric array, or both |
|
1175 | - * @link https://php.net/manual/en/mysqli-result.fetch-all.php |
|
1176 | - * @param int $mode [optional] <p> |
|
1177 | - * This optional parameter is a constant indicating what type of array |
|
1178 | - * should be produced from the current row data. The possible values for |
|
1179 | - * this parameter are the constants MYSQLI_ASSOC, |
|
1180 | - * MYSQLI_NUM, or MYSQLI_BOTH. |
|
1181 | - * </p> |
|
1182 | - * @return mixed an array of associative or numeric arrays holding result rows. |
|
1183 | - */ |
|
1184 | - #[TentativeType] |
|
1185 | - public function fetch_all(int $mode = MYSQLI_NUM): array {} |
|
1186 | - |
|
1187 | - /** |
|
1188 | - * Fetch a result row as an associative, a numeric array, or both |
|
1189 | - * @link https://php.net/manual/en/mysqli-result.fetch-array.php |
|
1190 | - * @param int $mode [optional] <p> |
|
1191 | - * This optional parameter is a constant indicating what type of array |
|
1192 | - * should be produced from the current row data. The possible values for |
|
1193 | - * this parameter are the constants <b>MYSQLI_ASSOC</b>, |
|
1194 | - * <b>MYSQLI_NUM</b>, or <b>MYSQLI_BOTH</b>. |
|
1195 | - * </p> |
|
1196 | - * <p> |
|
1197 | - * By using the <b>MYSQLI_ASSOC</b> constant this function |
|
1198 | - * will behave identically to the <b>mysqli_fetch_assoc</b>, |
|
1199 | - * while <b>MYSQLI_NUM</b> will behave identically to the |
|
1200 | - * <b>mysqli_fetch_row</b> function. The final option |
|
1201 | - * <b>MYSQLI_BOTH</b> will create a single array with the |
|
1202 | - * attributes of both. |
|
1203 | - * </p> |
|
1204 | - * @return mixed an array of strings that corresponds to the fetched row or null if there |
|
1205 | - * are no more rows in resultset. |
|
1206 | - */ |
|
1207 | - #[TentativeType] |
|
1208 | - public function fetch_array(int $mode = MYSQLI_BOTH): array|false|null {} |
|
1209 | - |
|
1210 | - /** |
|
1211 | - * Fetch a result row as an associative array |
|
1212 | - * @link https://php.net/manual/en/mysqli-result.fetch-assoc.php |
|
1213 | - * @return array|null an associative array of strings representing the fetched row in the result |
|
1214 | - * set, where each key in the array represents the name of one of the result |
|
1215 | - * set's columns or null if there are no more rows in resultset. |
|
1216 | - * </p> |
|
1217 | - * <p> |
|
1218 | - * If two or more columns of the result have the same field names, the last |
|
1219 | - * column will take precedence. To access the other column(s) of the same |
|
1220 | - * name, you either need to access the result with numeric indices by using |
|
1221 | - * <b>mysqli_fetch_row</b> or add alias names. |
|
1222 | - */ |
|
1223 | - #[TentativeType] |
|
1224 | - public function fetch_assoc(): array|false|null {} |
|
1225 | - |
|
1226 | - /** |
|
1227 | - * Returns the current row of a result set as an object |
|
1228 | - * @link https://php.net/manual/en/mysqli-result.fetch-object.php |
|
1229 | - * @param string $class [optional] <p> |
|
1230 | - * The name of the class to instantiate, set the properties of and return. |
|
1231 | - * If not specified, a <b>stdClass</b> object is returned. |
|
1232 | - * </p> |
|
1233 | - * @param null|array $constructor_args [optional] <p> |
|
1234 | - * An optional array of parameters to pass to the constructor |
|
1235 | - * for <i>class_name</i> objects. |
|
1236 | - * </p> |
|
1237 | - * @return stdClass|object an object with string properties that corresponds to the fetched |
|
1238 | - * row or null if there are no more rows in resultset. |
|
1239 | - */ |
|
1240 | - #[TentativeType] |
|
1241 | - public function fetch_object(string $class = 'stdClass', array $constructor_args = null): object|false|null {} |
|
1242 | - |
|
1243 | - /** |
|
1244 | - * Get a result row as an enumerated array |
|
1245 | - * @link https://php.net/manual/en/mysqli-result.fetch-row.php |
|
1246 | - * @return array|false|null mysqli_fetch_row returns an array of strings that corresponds to the fetched row |
|
1247 | - * or null if there are no more rows in result set. |
|
1248 | - */ |
|
1249 | - #[TentativeType] |
|
1250 | - public function fetch_row(): array|false|null {} |
|
1251 | - |
|
1252 | - #[PhpStormStubsElementAvailable('8.1')] |
|
1253 | - public function fetch_column(int $column = null): string|int|float|false|null {} |
|
1254 | - |
|
1255 | - /** |
|
1256 | - * Set result pointer to a specified field offset |
|
1257 | - * @link https://php.net/manual/en/mysqli-result.field-seek.php |
|
1258 | - * @param int $index <p> |
|
1259 | - * The field number. This value must be in the range from |
|
1260 | - * 0 to number of fields - 1. |
|
1261 | - * </p> |
|
1262 | - * @return bool true on success or false on failure. |
|
1263 | - */ |
|
1264 | - #[TentativeType] |
|
1265 | - public function field_seek(int $index): bool {} |
|
1266 | - |
|
1267 | - /** |
|
1268 | - * Frees the memory associated with a result |
|
1269 | - * @return void |
|
1270 | - * @link https://php.net/manual/en/mysqli-result.free.php |
|
1271 | - */ |
|
1272 | - #[TentativeType] |
|
1273 | - public function free_result(): void {} |
|
1274 | - |
|
1275 | - /** |
|
1276 | - * @return Iterator |
|
1277 | - * @since 8.0 |
|
1278 | - */ |
|
1279 | - public function getIterator(): Iterator {} |
|
910 | + /** |
|
911 | + * @var int |
|
912 | + */ |
|
913 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
914 | + public $current_field; |
|
915 | + /** |
|
916 | + * @var int |
|
917 | + */ |
|
918 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
919 | + public $field_count; |
|
920 | + /** |
|
921 | + * @var array |
|
922 | + */ |
|
923 | + #[LanguageLevelTypeAware(['8.1' => 'array|null'], default: '')] |
|
924 | + public $lengths; |
|
925 | + /** |
|
926 | + * @var int |
|
927 | + */ |
|
928 | + #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
929 | + public $num_rows; |
|
930 | + /** |
|
931 | + * @var mixed |
|
932 | + */ |
|
933 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
934 | + public $type; |
|
935 | + |
|
936 | + /** |
|
937 | + * Constructor (no docs available) |
|
938 | + * @param object $mysql [optional] |
|
939 | + * @param int $result_mode [optional] |
|
940 | + */ |
|
941 | + public function __construct( |
|
942 | + #[PhpStormStubsElementAvailable(from: '8.0')] mysqli $mysql = null, |
|
943 | + #[PhpStormStubsElementAvailable(from: '8.0')] int $result_mode = 0 |
|
944 | + ) {} |
|
945 | + |
|
946 | + /** |
|
947 | + * Frees the memory associated with a result |
|
948 | + * @return void |
|
949 | + * @link https://php.net/manual/en/mysqli-result.free.php |
|
950 | + */ |
|
951 | + #[TentativeType] |
|
952 | + public function close(): void {} |
|
953 | + |
|
954 | + /** |
|
955 | + * Frees the memory associated with a result |
|
956 | + * @link https://php.net/manual/en/mysqli-result.free.php |
|
957 | + * @return void |
|
958 | + */ |
|
959 | + #[TentativeType] |
|
960 | + public function free(): void {} |
|
961 | + |
|
962 | + /** |
|
963 | + * Adjusts the result pointer to an arbitrary row in the result |
|
964 | + * @link https://php.net/manual/en/mysqli-result.data-seek.php |
|
965 | + * @param int $offset <p> |
|
966 | + * The field offset. Must be between zero and the total number of rows |
|
967 | + * minus one (0..<b>mysqli_num_rows</b> - 1). |
|
968 | + * </p> |
|
969 | + * @return bool true on success or false on failure. |
|
970 | + */ |
|
971 | + #[TentativeType] |
|
972 | + public function data_seek(int $offset): bool {} |
|
973 | + |
|
974 | + /** |
|
975 | + * Returns the next field in the result set |
|
976 | + * @link https://php.net/manual/en/mysqli-result.fetch-field.php |
|
977 | + * @return object|false an object which contains field definition information or false |
|
978 | + * if no field information is available. |
|
979 | + * </p> |
|
980 | + * <p> |
|
981 | + * <table> |
|
982 | + * Object properties |
|
983 | + * <tr valign="top"> |
|
984 | + * <td>Property</td> |
|
985 | + * <td>Description</td> |
|
986 | + * </tr> |
|
987 | + * <tr valign="top"> |
|
988 | + * <td>name</td> |
|
989 | + * <td>The name of the column</td> |
|
990 | + * </tr> |
|
991 | + * <tr valign="top"> |
|
992 | + * <td>orgname</td> |
|
993 | + * <td>Original column name if an alias was specified</td> |
|
994 | + * </tr> |
|
995 | + * <tr valign="top"> |
|
996 | + * <td>table</td> |
|
997 | + * <td>The name of the table this field belongs to (if not calculated)</td> |
|
998 | + * </tr> |
|
999 | + * <tr valign="top"> |
|
1000 | + * <td>orgtable</td> |
|
1001 | + * <td>Original table name if an alias was specified</td> |
|
1002 | + * </tr> |
|
1003 | + * <tr valign="top"> |
|
1004 | + * <td>def</td> |
|
1005 | + * <td>Reserved for default value, currently always ""</td> |
|
1006 | + * </tr> |
|
1007 | + * <tr valign="top"> |
|
1008 | + * <td>db</td> |
|
1009 | + * <td>Database (since PHP 5.3.6)</td> |
|
1010 | + * </tr> |
|
1011 | + * <tr valign="top"> |
|
1012 | + * <td>catalog</td> |
|
1013 | + * <td>The catalog name, always "def" (since PHP 5.3.6)</td> |
|
1014 | + * </tr> |
|
1015 | + * <tr valign="top"> |
|
1016 | + * <td>max_length</td> |
|
1017 | + * <td>The maximum width of the field for the result set.</td> |
|
1018 | + * </tr> |
|
1019 | + * <tr valign="top"> |
|
1020 | + * <td>length</td> |
|
1021 | + * <td>The width of the field, as specified in the table definition.</td> |
|
1022 | + * </tr> |
|
1023 | + * <tr valign="top"> |
|
1024 | + * <td>charsetnr</td> |
|
1025 | + * <td>The character set number for the field.</td> |
|
1026 | + * </tr> |
|
1027 | + * <tr valign="top"> |
|
1028 | + * <td>flags</td> |
|
1029 | + * <td>An integer representing the bit-flags for the field.</td> |
|
1030 | + * </tr> |
|
1031 | + * <tr valign="top"> |
|
1032 | + * <td>type</td> |
|
1033 | + * <td>The data type used for this field</td> |
|
1034 | + * </tr> |
|
1035 | + * <tr valign="top"> |
|
1036 | + * <td>decimals</td> |
|
1037 | + * <td>The number of decimals used (for integer fields)</td> |
|
1038 | + * </tr> |
|
1039 | + * </table> |
|
1040 | + */ |
|
1041 | + #[TentativeType] |
|
1042 | + public function fetch_field(): object|false {} |
|
1043 | + |
|
1044 | + /** |
|
1045 | + * Returns an array of objects representing the fields in a result set |
|
1046 | + * @link https://php.net/manual/en/mysqli-result.fetch-fields.php |
|
1047 | + * @return array|false an array of objects which contains field definition information or |
|
1048 | + * false if no field information is available. |
|
1049 | + * </p> |
|
1050 | + * <p> |
|
1051 | + * <table> |
|
1052 | + * Object properties |
|
1053 | + * <tr valign="top"> |
|
1054 | + * <td>Property</td> |
|
1055 | + * <td>Description</td> |
|
1056 | + * </tr> |
|
1057 | + * <tr valign="top"> |
|
1058 | + * <td>name</td> |
|
1059 | + * <td>The name of the column</td> |
|
1060 | + * </tr> |
|
1061 | + * <tr valign="top"> |
|
1062 | + * <td>orgname</td> |
|
1063 | + * <td>Original column name if an alias was specified</td> |
|
1064 | + * </tr> |
|
1065 | + * <tr valign="top"> |
|
1066 | + * <td>table</td> |
|
1067 | + * <td>The name of the table this field belongs to (if not calculated)</td> |
|
1068 | + * </tr> |
|
1069 | + * <tr valign="top"> |
|
1070 | + * <td>orgtable</td> |
|
1071 | + * <td>Original table name if an alias was specified</td> |
|
1072 | + * </tr> |
|
1073 | + * <tr valign="top"> |
|
1074 | + * <td>def</td> |
|
1075 | + * <td>The default value for this field, represented as a string</td> |
|
1076 | + * </tr> |
|
1077 | + * <tr valign="top"> |
|
1078 | + * <td>max_length</td> |
|
1079 | + * <td>The maximum width of the field for the result set.</td> |
|
1080 | + * </tr> |
|
1081 | + * <tr valign="top"> |
|
1082 | + * <td>length</td> |
|
1083 | + * <td>The width of the field, as specified in the table definition.</td> |
|
1084 | + * </tr> |
|
1085 | + * <tr valign="top"> |
|
1086 | + * <td>charsetnr</td> |
|
1087 | + * <td>The character set number for the field.</td> |
|
1088 | + * </tr> |
|
1089 | + * <tr valign="top"> |
|
1090 | + * <td>flags</td> |
|
1091 | + * <td>An integer representing the bit-flags for the field.</td> |
|
1092 | + * </tr> |
|
1093 | + * <tr valign="top"> |
|
1094 | + * <td>type</td> |
|
1095 | + * <td>The data type used for this field</td> |
|
1096 | + * </tr> |
|
1097 | + * <tr valign="top"> |
|
1098 | + * <td>decimals</td> |
|
1099 | + * <td>The number of decimals used (for integer fields)</td> |
|
1100 | + * </tr> |
|
1101 | + * </table> |
|
1102 | + */ |
|
1103 | + #[TentativeType] |
|
1104 | + public function fetch_fields(): array {} |
|
1105 | + |
|
1106 | + /** |
|
1107 | + * Fetch meta-data for a single field |
|
1108 | + * @link https://php.net/manual/en/mysqli-result.fetch-field-direct.php |
|
1109 | + * @param int $index <p> |
|
1110 | + * The field number. This value must be in the range from |
|
1111 | + * 0 to number of fields - 1. |
|
1112 | + * </p> |
|
1113 | + * @return object|false an object which contains field definition information or false |
|
1114 | + * if no field information for specified fieldnr is |
|
1115 | + * available. |
|
1116 | + * </p> |
|
1117 | + * <p> |
|
1118 | + * <table> |
|
1119 | + * Object attributes |
|
1120 | + * <tr valign="top"> |
|
1121 | + * <td>Attribute</td> |
|
1122 | + * <td>Description</td> |
|
1123 | + * </tr> |
|
1124 | + * <tr valign="top"> |
|
1125 | + * <td>name</td> |
|
1126 | + * <td>The name of the column</td> |
|
1127 | + * </tr> |
|
1128 | + * <tr valign="top"> |
|
1129 | + * <td>orgname</td> |
|
1130 | + * <td>Original column name if an alias was specified</td> |
|
1131 | + * </tr> |
|
1132 | + * <tr valign="top"> |
|
1133 | + * <td>table</td> |
|
1134 | + * <td>The name of the table this field belongs to (if not calculated)</td> |
|
1135 | + * </tr> |
|
1136 | + * <tr valign="top"> |
|
1137 | + * <td>orgtable</td> |
|
1138 | + * <td>Original table name if an alias was specified</td> |
|
1139 | + * </tr> |
|
1140 | + * <tr valign="top"> |
|
1141 | + * <td>def</td> |
|
1142 | + * <td>The default value for this field, represented as a string</td> |
|
1143 | + * </tr> |
|
1144 | + * <tr valign="top"> |
|
1145 | + * <td>max_length</td> |
|
1146 | + * <td>The maximum width of the field for the result set.</td> |
|
1147 | + * </tr> |
|
1148 | + * <tr valign="top"> |
|
1149 | + * <td>length</td> |
|
1150 | + * <td>The width of the field, as specified in the table definition.</td> |
|
1151 | + * </tr> |
|
1152 | + * <tr valign="top"> |
|
1153 | + * <td>charsetnr</td> |
|
1154 | + * <td>The character set number for the field.</td> |
|
1155 | + * </tr> |
|
1156 | + * <tr valign="top"> |
|
1157 | + * <td>flags</td> |
|
1158 | + * <td>An integer representing the bit-flags for the field.</td> |
|
1159 | + * </tr> |
|
1160 | + * <tr valign="top"> |
|
1161 | + * <td>type</td> |
|
1162 | + * <td>The data type used for this field</td> |
|
1163 | + * </tr> |
|
1164 | + * <tr valign="top"> |
|
1165 | + * <td>decimals</td> |
|
1166 | + * <td>The number of decimals used (for integer fields)</td> |
|
1167 | + * </tr> |
|
1168 | + * </table> |
|
1169 | + */ |
|
1170 | + #[TentativeType] |
|
1171 | + public function fetch_field_direct(int $index): object|false {} |
|
1172 | + |
|
1173 | + /** |
|
1174 | + * Fetches all result rows as an associative array, a numeric array, or both |
|
1175 | + * @link https://php.net/manual/en/mysqli-result.fetch-all.php |
|
1176 | + * @param int $mode [optional] <p> |
|
1177 | + * This optional parameter is a constant indicating what type of array |
|
1178 | + * should be produced from the current row data. The possible values for |
|
1179 | + * this parameter are the constants MYSQLI_ASSOC, |
|
1180 | + * MYSQLI_NUM, or MYSQLI_BOTH. |
|
1181 | + * </p> |
|
1182 | + * @return mixed an array of associative or numeric arrays holding result rows. |
|
1183 | + */ |
|
1184 | + #[TentativeType] |
|
1185 | + public function fetch_all(int $mode = MYSQLI_NUM): array {} |
|
1186 | + |
|
1187 | + /** |
|
1188 | + * Fetch a result row as an associative, a numeric array, or both |
|
1189 | + * @link https://php.net/manual/en/mysqli-result.fetch-array.php |
|
1190 | + * @param int $mode [optional] <p> |
|
1191 | + * This optional parameter is a constant indicating what type of array |
|
1192 | + * should be produced from the current row data. The possible values for |
|
1193 | + * this parameter are the constants <b>MYSQLI_ASSOC</b>, |
|
1194 | + * <b>MYSQLI_NUM</b>, or <b>MYSQLI_BOTH</b>. |
|
1195 | + * </p> |
|
1196 | + * <p> |
|
1197 | + * By using the <b>MYSQLI_ASSOC</b> constant this function |
|
1198 | + * will behave identically to the <b>mysqli_fetch_assoc</b>, |
|
1199 | + * while <b>MYSQLI_NUM</b> will behave identically to the |
|
1200 | + * <b>mysqli_fetch_row</b> function. The final option |
|
1201 | + * <b>MYSQLI_BOTH</b> will create a single array with the |
|
1202 | + * attributes of both. |
|
1203 | + * </p> |
|
1204 | + * @return mixed an array of strings that corresponds to the fetched row or null if there |
|
1205 | + * are no more rows in resultset. |
|
1206 | + */ |
|
1207 | + #[TentativeType] |
|
1208 | + public function fetch_array(int $mode = MYSQLI_BOTH): array|false|null {} |
|
1209 | + |
|
1210 | + /** |
|
1211 | + * Fetch a result row as an associative array |
|
1212 | + * @link https://php.net/manual/en/mysqli-result.fetch-assoc.php |
|
1213 | + * @return array|null an associative array of strings representing the fetched row in the result |
|
1214 | + * set, where each key in the array represents the name of one of the result |
|
1215 | + * set's columns or null if there are no more rows in resultset. |
|
1216 | + * </p> |
|
1217 | + * <p> |
|
1218 | + * If two or more columns of the result have the same field names, the last |
|
1219 | + * column will take precedence. To access the other column(s) of the same |
|
1220 | + * name, you either need to access the result with numeric indices by using |
|
1221 | + * <b>mysqli_fetch_row</b> or add alias names. |
|
1222 | + */ |
|
1223 | + #[TentativeType] |
|
1224 | + public function fetch_assoc(): array|false|null {} |
|
1225 | + |
|
1226 | + /** |
|
1227 | + * Returns the current row of a result set as an object |
|
1228 | + * @link https://php.net/manual/en/mysqli-result.fetch-object.php |
|
1229 | + * @param string $class [optional] <p> |
|
1230 | + * The name of the class to instantiate, set the properties of and return. |
|
1231 | + * If not specified, a <b>stdClass</b> object is returned. |
|
1232 | + * </p> |
|
1233 | + * @param null|array $constructor_args [optional] <p> |
|
1234 | + * An optional array of parameters to pass to the constructor |
|
1235 | + * for <i>class_name</i> objects. |
|
1236 | + * </p> |
|
1237 | + * @return stdClass|object an object with string properties that corresponds to the fetched |
|
1238 | + * row or null if there are no more rows in resultset. |
|
1239 | + */ |
|
1240 | + #[TentativeType] |
|
1241 | + public function fetch_object(string $class = 'stdClass', array $constructor_args = null): object|false|null {} |
|
1242 | + |
|
1243 | + /** |
|
1244 | + * Get a result row as an enumerated array |
|
1245 | + * @link https://php.net/manual/en/mysqli-result.fetch-row.php |
|
1246 | + * @return array|false|null mysqli_fetch_row returns an array of strings that corresponds to the fetched row |
|
1247 | + * or null if there are no more rows in result set. |
|
1248 | + */ |
|
1249 | + #[TentativeType] |
|
1250 | + public function fetch_row(): array|false|null {} |
|
1251 | + |
|
1252 | + #[PhpStormStubsElementAvailable('8.1')] |
|
1253 | + public function fetch_column(int $column = null): string|int|float|false|null {} |
|
1254 | + |
|
1255 | + /** |
|
1256 | + * Set result pointer to a specified field offset |
|
1257 | + * @link https://php.net/manual/en/mysqli-result.field-seek.php |
|
1258 | + * @param int $index <p> |
|
1259 | + * The field number. This value must be in the range from |
|
1260 | + * 0 to number of fields - 1. |
|
1261 | + * </p> |
|
1262 | + * @return bool true on success or false on failure. |
|
1263 | + */ |
|
1264 | + #[TentativeType] |
|
1265 | + public function field_seek(int $index): bool {} |
|
1266 | + |
|
1267 | + /** |
|
1268 | + * Frees the memory associated with a result |
|
1269 | + * @return void |
|
1270 | + * @link https://php.net/manual/en/mysqli-result.free.php |
|
1271 | + */ |
|
1272 | + #[TentativeType] |
|
1273 | + public function free_result(): void {} |
|
1274 | + |
|
1275 | + /** |
|
1276 | + * @return Iterator |
|
1277 | + * @since 8.0 |
|
1278 | + */ |
|
1279 | + public function getIterator(): Iterator {} |
|
1280 | 1280 | } |
1281 | 1281 | |
1282 | 1282 | /** |
@@ -1285,341 +1285,341 @@ discard block |
||
1285 | 1285 | */ |
1286 | 1286 | class mysqli_stmt |
1287 | 1287 | { |
1288 | - /** |
|
1289 | - * @var int |
|
1290 | - */ |
|
1291 | - #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
1292 | - public $affected_rows; |
|
1293 | - /** |
|
1294 | - * @var int |
|
1295 | - */ |
|
1296 | - #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
1297 | - public $insert_id; |
|
1298 | - /** |
|
1299 | - * @var int |
|
1300 | - */ |
|
1301 | - #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
1302 | - public $num_rows; |
|
1303 | - /** |
|
1304 | - * @var int |
|
1305 | - */ |
|
1306 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
1307 | - public $param_count; |
|
1308 | - /** |
|
1309 | - * @var int |
|
1310 | - */ |
|
1311 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
1312 | - public $field_count; |
|
1313 | - /** |
|
1314 | - * @var int |
|
1315 | - */ |
|
1316 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
1317 | - public $errno; |
|
1318 | - /** |
|
1319 | - * @var string |
|
1320 | - */ |
|
1321 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
1322 | - public $error; |
|
1323 | - /** |
|
1324 | - * @var array |
|
1325 | - */ |
|
1326 | - #[LanguageLevelTypeAware(['8.1' => 'array'], default: '')] |
|
1327 | - public $error_list; |
|
1328 | - /** |
|
1329 | - * @var string |
|
1330 | - */ |
|
1331 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
1332 | - public $sqlstate; |
|
1333 | - /** |
|
1334 | - * @var string |
|
1335 | - */ |
|
1336 | - #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
1337 | - public $id; |
|
1338 | - |
|
1339 | - /** |
|
1340 | - * mysqli_stmt constructor |
|
1341 | - * @param mysqli $mysql |
|
1342 | - * @param string $query [optional] |
|
1343 | - */ |
|
1344 | - public function __construct($mysql, $query) {} |
|
1345 | - |
|
1346 | - /** |
|
1347 | - * Used to get the current value of a statement attribute |
|
1348 | - * @link https://php.net/manual/en/mysqli-stmt.attr-get.php |
|
1349 | - * @param int $attribute <p> |
|
1350 | - * The attribute that you want to get. |
|
1351 | - * </p> |
|
1352 | - * @return int|false false if the attribute is not found, otherwise returns the value of the attribute. |
|
1353 | - */ |
|
1354 | - #[TentativeType] |
|
1355 | - public function attr_get(int $attribute): int {} |
|
1356 | - |
|
1357 | - /** |
|
1358 | - * Used to modify the behavior of a prepared statement |
|
1359 | - * @link https://php.net/manual/en/mysqli-stmt.attr-set.php |
|
1360 | - * @param int $attribute <p> |
|
1361 | - * The attribute that you want to set. It can have one of the following values: |
|
1362 | - * <table> |
|
1363 | - * Attribute values |
|
1364 | - * <tr valign="top"> |
|
1365 | - * <td>Character</td> |
|
1366 | - * <td>Description</td> |
|
1367 | - * </tr> |
|
1368 | - * <tr valign="top"> |
|
1369 | - * <td>MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH</td> |
|
1370 | - * <td> |
|
1371 | - * If set to 1, causes <b>mysqli_stmt_store_result</b> to |
|
1372 | - * update the metadata MYSQL_FIELD->max_length value. |
|
1373 | - * </td> |
|
1374 | - * </tr> |
|
1375 | - * <tr valign="top"> |
|
1376 | - * <td>MYSQLI_STMT_ATTR_CURSOR_TYPE</td> |
|
1377 | - * <td> |
|
1378 | - * Type of cursor to open for statement when <b>mysqli_stmt_execute</b> |
|
1379 | - * is invoked. <i>mode</i> can be MYSQLI_CURSOR_TYPE_NO_CURSOR |
|
1380 | - * (the default) or MYSQLI_CURSOR_TYPE_READ_ONLY. |
|
1381 | - * </td> |
|
1382 | - * </tr> |
|
1383 | - * <tr valign="top"> |
|
1384 | - * <td>MYSQLI_STMT_ATTR_PREFETCH_ROWS</td> |
|
1385 | - * <td> |
|
1386 | - * Number of rows to fetch from server at a time when using a cursor. |
|
1387 | - * <i>mode</i> can be in the range from 1 to the maximum |
|
1388 | - * value of unsigned long. The default is 1. |
|
1389 | - * </td> |
|
1390 | - * </tr> |
|
1391 | - * </table> |
|
1392 | - * </p> |
|
1393 | - * <p> |
|
1394 | - * If you use the MYSQLI_STMT_ATTR_CURSOR_TYPE option with |
|
1395 | - * MYSQLI_CURSOR_TYPE_READ_ONLY, a cursor is opened for the |
|
1396 | - * statement when you invoke <b>mysqli_stmt_execute</b>. If there |
|
1397 | - * is already an open cursor from a previous <b>mysqli_stmt_execute</b> call, |
|
1398 | - * it closes the cursor before opening a new one. <b>mysqli_stmt_reset</b> |
|
1399 | - * also closes any open cursor before preparing the statement for re-execution. |
|
1400 | - * <b>mysqli_stmt_free_result</b> closes any open cursor. |
|
1401 | - * </p> |
|
1402 | - * <p> |
|
1403 | - * If you open a cursor for a prepared statement, <b>mysqli_stmt_store_result</b> |
|
1404 | - * is unnecessary. |
|
1405 | - * </p> |
|
1406 | - * @param int $value <p>The value to assign to the attribute.</p> |
|
1407 | - * @return bool |
|
1408 | - */ |
|
1409 | - #[TentativeType] |
|
1410 | - public function attr_set(int $attribute, int $value): bool {} |
|
1411 | - |
|
1412 | - /** |
|
1413 | - * Binds variables to a prepared statement as parameters |
|
1414 | - * @link https://php.net/manual/en/mysqli-stmt.bind-param.php |
|
1415 | - * @param string $types <p> |
|
1416 | - * A string that contains one or more characters which specify the types |
|
1417 | - * for the corresponding bind variables: |
|
1418 | - * <table> |
|
1419 | - * Type specification chars |
|
1420 | - * <tr valign="top"> |
|
1421 | - * <td>Character</td> |
|
1422 | - * <td>Description</td> |
|
1423 | - * </tr> |
|
1424 | - * <tr valign="top"> |
|
1425 | - * <td>i</td> |
|
1426 | - * <td>corresponding variable has type integer</td> |
|
1427 | - * </tr> |
|
1428 | - * <tr valign="top"> |
|
1429 | - * <td>d</td> |
|
1430 | - * <td>corresponding variable has type double</td> |
|
1431 | - * </tr> |
|
1432 | - * <tr valign="top"> |
|
1433 | - * <td>s</td> |
|
1434 | - * <td>corresponding variable has type string</td> |
|
1435 | - * </tr> |
|
1436 | - * <tr valign="top"> |
|
1437 | - * <td>b</td> |
|
1438 | - * <td>corresponding variable is a blob and will be sent in packets</td> |
|
1439 | - * </tr> |
|
1440 | - * </table> |
|
1441 | - * </p> |
|
1442 | - * @param mixed &$var1 <p> |
|
1443 | - * The number of variables and length of string |
|
1444 | - * types must match the parameters in the statement. |
|
1445 | - * </p> |
|
1446 | - * @param mixed &...$_ [optional] |
|
1447 | - * @return bool true on success or false on failure. |
|
1448 | - */ |
|
1449 | - public function bind_param($types, &$var1, &...$_) {} |
|
1450 | - |
|
1451 | - /** |
|
1452 | - * Binds variables to a prepared statement for result storage |
|
1453 | - * @link https://php.net/manual/en/mysqli-stmt.bind-result.php |
|
1454 | - * @param mixed &$var1 The variable to be bound. |
|
1455 | - * @param mixed &...$_ The variables to be bound. |
|
1456 | - * @return bool true on success or false on failure. |
|
1457 | - */ |
|
1458 | - public function bind_result(&$var1, &...$_) {} |
|
1459 | - |
|
1460 | - /** |
|
1461 | - * Closes a prepared statement |
|
1462 | - * @link https://php.net/manual/en/mysqli-stmt.close.php |
|
1463 | - * @return bool true on success or false on failure. |
|
1464 | - */ |
|
1465 | - public function close() {} |
|
1466 | - |
|
1467 | - /** |
|
1468 | - * Seeks to an arbitrary row in statement result set |
|
1469 | - * @link https://php.net/manual/en/mysqli-stmt.data-seek.php |
|
1470 | - * @param int $offset <p> |
|
1471 | - * Must be between zero and the total number of rows minus one (0.. |
|
1472 | - * <b>mysqli_stmt_num_rows</b> - 1). |
|
1473 | - * </p> |
|
1474 | - * @return void |
|
1475 | - */ |
|
1476 | - #[TentativeType] |
|
1477 | - public function data_seek(int $offset): void {} |
|
1478 | - |
|
1479 | - /** |
|
1480 | - * Executes a prepared Query |
|
1481 | - * @link https://php.net/manual/en/mysqli-stmt.execute.php |
|
1482 | - * @return bool true on success or false on failure. |
|
1483 | - */ |
|
1484 | - #[TentativeType] |
|
1485 | - public function execute(#[PhpStormStubsElementAvailable('8.1')] ?array $params = null): bool {} |
|
1486 | - |
|
1487 | - /** |
|
1488 | - * Fetch results from a prepared statement into the bound variables |
|
1489 | - * @link https://php.net/manual/en/mysqli-stmt.fetch.php |
|
1490 | - * @return bool|null |
|
1491 | - */ |
|
1492 | - #[TentativeType] |
|
1493 | - public function fetch(): ?bool {} |
|
1494 | - |
|
1495 | - /** |
|
1496 | - * Get result of SHOW WARNINGS |
|
1497 | - * @link https://php.net/manual/en/mysqli-stmt.get-warnings.php |
|
1498 | - * @return object|false |
|
1499 | - */ |
|
1500 | - #[TentativeType] |
|
1501 | - public function get_warnings(): mysqli_warning|false {} |
|
1502 | - |
|
1503 | - /** |
|
1504 | - * Returns result set metadata from a prepared statement |
|
1505 | - * @link https://php.net/manual/en/mysqli-stmt.result-metadata.php |
|
1506 | - * @return mysqli_result|false a result object or false if an error occurred. |
|
1507 | - */ |
|
1508 | - #[TentativeType] |
|
1509 | - public function result_metadata(): mysqli_result|false {} |
|
1510 | - |
|
1511 | - /** |
|
1512 | - * Check if there are more query results from a multiple query |
|
1513 | - * @link https://php.net/manual/en/mysqli-stmt.more-results.php |
|
1514 | - * @return bool |
|
1515 | - */ |
|
1516 | - #[TentativeType] |
|
1517 | - public function more_results(): bool {} |
|
1518 | - |
|
1519 | - /** |
|
1520 | - * Reads the next result from a multiple query |
|
1521 | - * @link https://php.net/manual/en/mysqli-stmt.next-result.php |
|
1522 | - * @return bool |
|
1523 | - */ |
|
1524 | - #[TentativeType] |
|
1525 | - public function next_result(): bool {} |
|
1526 | - |
|
1527 | - /** |
|
1528 | - * Return the number of rows in statements result set |
|
1529 | - * @link https://php.net/manual/en/mysqli-stmt.num-rows.php |
|
1530 | - * @return string|int An integer representing the number of rows in result set. |
|
1531 | - */ |
|
1532 | - #[TentativeType] |
|
1533 | - public function num_rows(): string|int {} |
|
1534 | - |
|
1535 | - /** |
|
1536 | - * Send data in blocks |
|
1537 | - * @link https://php.net/manual/en/mysqli-stmt.send-long-data.php |
|
1538 | - * @param int $param_num <p> |
|
1539 | - * Indicates which parameter to associate the data with. Parameters are |
|
1540 | - * numbered beginning with 0. |
|
1541 | - * </p> |
|
1542 | - * @param string $data <p> |
|
1543 | - * A string containing data to be sent. |
|
1544 | - * </p> |
|
1545 | - * @return bool true on success or false on failure. |
|
1546 | - */ |
|
1547 | - #[TentativeType] |
|
1548 | - public function send_long_data(int $param_num, string $data): bool {} |
|
1549 | - |
|
1550 | - /** |
|
1551 | - * No documentation available |
|
1552 | - * @removed 5.4 |
|
1553 | - */ |
|
1554 | - #[Deprecated(since: '5.3')] |
|
1555 | - public function stmt() {} |
|
1556 | - |
|
1557 | - /** |
|
1558 | - * Frees stored result memory for the given statement handle |
|
1559 | - * @link https://php.net/manual/en/mysqli-stmt.free-result.php |
|
1560 | - * @return void |
|
1561 | - */ |
|
1562 | - #[TentativeType] |
|
1563 | - public function free_result(): void {} |
|
1564 | - |
|
1565 | - /** |
|
1566 | - * Resets a prepared statement |
|
1567 | - * @link https://php.net/manual/en/mysqli-stmt.reset.php |
|
1568 | - * @return bool true on success or false on failure. |
|
1569 | - */ |
|
1570 | - #[TentativeType] |
|
1571 | - public function reset(): bool {} |
|
1572 | - |
|
1573 | - /** |
|
1574 | - * Prepare an SQL statement for execution |
|
1575 | - * @link https://php.net/manual/en/mysqli-stmt.prepare.php |
|
1576 | - * @param string $query <p> |
|
1577 | - * The query, as a string. It must consist of a single SQL statement. |
|
1578 | - * </p> |
|
1579 | - * <p> |
|
1580 | - * You can include one or more parameter markers in the SQL statement by |
|
1581 | - * embedding question mark (?) characters at the |
|
1582 | - * appropriate positions. |
|
1583 | - * </p> |
|
1584 | - * <p> |
|
1585 | - * You should not add a terminating semicolon or \g |
|
1586 | - * to the statement. |
|
1587 | - * </p> |
|
1588 | - * <p> |
|
1589 | - * The markers are legal only in certain places in SQL statements. |
|
1590 | - * For example, they are allowed in the VALUES() list of an INSERT statement |
|
1591 | - * (to specify column values for a row), or in a comparison with a column in |
|
1592 | - * a WHERE clause to specify a comparison value. |
|
1593 | - * </p> |
|
1594 | - * <p> |
|
1595 | - * However, they are not allowed for identifiers (such as table or column names), |
|
1596 | - * in the select list that names the columns to be returned by a SELECT statement), |
|
1597 | - * or to specify both operands of a binary operator such as the = |
|
1598 | - * equal sign. The latter restriction is necessary because it would be impossible |
|
1599 | - * to determine the parameter type. In general, parameters are legal only in Data |
|
1600 | - * Manipulation Language (DML) statements, and not in Data Definition Language |
|
1601 | - * (DDL) statements. |
|
1602 | - * </p> |
|
1603 | - * @return bool true on success or false on failure. |
|
1604 | - */ |
|
1605 | - #[TentativeType] |
|
1606 | - public function prepare(string $query): bool {} |
|
1607 | - |
|
1608 | - /** |
|
1609 | - * Transfers a result set from a prepared statement |
|
1610 | - * @link https://php.net/manual/en/mysqli-stmt.store-result.php |
|
1611 | - * @return bool true on success or false on failure. |
|
1612 | - */ |
|
1613 | - #[TentativeType] |
|
1614 | - public function store_result(): bool {} |
|
1615 | - |
|
1616 | - /** |
|
1617 | - * Gets a result set from a prepared statement |
|
1618 | - * @link https://php.net/manual/en/mysqli-stmt.get-result.php |
|
1619 | - * @return mysqli_result|false Returns a resultset or FALSE on failure |
|
1620 | - */ |
|
1621 | - #[TentativeType] |
|
1622 | - public function get_result(): mysqli_result|false {} |
|
1288 | + /** |
|
1289 | + * @var int |
|
1290 | + */ |
|
1291 | + #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
1292 | + public $affected_rows; |
|
1293 | + /** |
|
1294 | + * @var int |
|
1295 | + */ |
|
1296 | + #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
1297 | + public $insert_id; |
|
1298 | + /** |
|
1299 | + * @var int |
|
1300 | + */ |
|
1301 | + #[LanguageLevelTypeAware(['8.1' => 'int|string'], default: '')] |
|
1302 | + public $num_rows; |
|
1303 | + /** |
|
1304 | + * @var int |
|
1305 | + */ |
|
1306 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
1307 | + public $param_count; |
|
1308 | + /** |
|
1309 | + * @var int |
|
1310 | + */ |
|
1311 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
1312 | + public $field_count; |
|
1313 | + /** |
|
1314 | + * @var int |
|
1315 | + */ |
|
1316 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
1317 | + public $errno; |
|
1318 | + /** |
|
1319 | + * @var string |
|
1320 | + */ |
|
1321 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
1322 | + public $error; |
|
1323 | + /** |
|
1324 | + * @var array |
|
1325 | + */ |
|
1326 | + #[LanguageLevelTypeAware(['8.1' => 'array'], default: '')] |
|
1327 | + public $error_list; |
|
1328 | + /** |
|
1329 | + * @var string |
|
1330 | + */ |
|
1331 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
1332 | + public $sqlstate; |
|
1333 | + /** |
|
1334 | + * @var string |
|
1335 | + */ |
|
1336 | + #[LanguageLevelTypeAware(['8.1' => 'int'], default: '')] |
|
1337 | + public $id; |
|
1338 | + |
|
1339 | + /** |
|
1340 | + * mysqli_stmt constructor |
|
1341 | + * @param mysqli $mysql |
|
1342 | + * @param string $query [optional] |
|
1343 | + */ |
|
1344 | + public function __construct($mysql, $query) {} |
|
1345 | + |
|
1346 | + /** |
|
1347 | + * Used to get the current value of a statement attribute |
|
1348 | + * @link https://php.net/manual/en/mysqli-stmt.attr-get.php |
|
1349 | + * @param int $attribute <p> |
|
1350 | + * The attribute that you want to get. |
|
1351 | + * </p> |
|
1352 | + * @return int|false false if the attribute is not found, otherwise returns the value of the attribute. |
|
1353 | + */ |
|
1354 | + #[TentativeType] |
|
1355 | + public function attr_get(int $attribute): int {} |
|
1356 | + |
|
1357 | + /** |
|
1358 | + * Used to modify the behavior of a prepared statement |
|
1359 | + * @link https://php.net/manual/en/mysqli-stmt.attr-set.php |
|
1360 | + * @param int $attribute <p> |
|
1361 | + * The attribute that you want to set. It can have one of the following values: |
|
1362 | + * <table> |
|
1363 | + * Attribute values |
|
1364 | + * <tr valign="top"> |
|
1365 | + * <td>Character</td> |
|
1366 | + * <td>Description</td> |
|
1367 | + * </tr> |
|
1368 | + * <tr valign="top"> |
|
1369 | + * <td>MYSQLI_STMT_ATTR_UPDATE_MAX_LENGTH</td> |
|
1370 | + * <td> |
|
1371 | + * If set to 1, causes <b>mysqli_stmt_store_result</b> to |
|
1372 | + * update the metadata MYSQL_FIELD->max_length value. |
|
1373 | + * </td> |
|
1374 | + * </tr> |
|
1375 | + * <tr valign="top"> |
|
1376 | + * <td>MYSQLI_STMT_ATTR_CURSOR_TYPE</td> |
|
1377 | + * <td> |
|
1378 | + * Type of cursor to open for statement when <b>mysqli_stmt_execute</b> |
|
1379 | + * is invoked. <i>mode</i> can be MYSQLI_CURSOR_TYPE_NO_CURSOR |
|
1380 | + * (the default) or MYSQLI_CURSOR_TYPE_READ_ONLY. |
|
1381 | + * </td> |
|
1382 | + * </tr> |
|
1383 | + * <tr valign="top"> |
|
1384 | + * <td>MYSQLI_STMT_ATTR_PREFETCH_ROWS</td> |
|
1385 | + * <td> |
|
1386 | + * Number of rows to fetch from server at a time when using a cursor. |
|
1387 | + * <i>mode</i> can be in the range from 1 to the maximum |
|
1388 | + * value of unsigned long. The default is 1. |
|
1389 | + * </td> |
|
1390 | + * </tr> |
|
1391 | + * </table> |
|
1392 | + * </p> |
|
1393 | + * <p> |
|
1394 | + * If you use the MYSQLI_STMT_ATTR_CURSOR_TYPE option with |
|
1395 | + * MYSQLI_CURSOR_TYPE_READ_ONLY, a cursor is opened for the |
|
1396 | + * statement when you invoke <b>mysqli_stmt_execute</b>. If there |
|
1397 | + * is already an open cursor from a previous <b>mysqli_stmt_execute</b> call, |
|
1398 | + * it closes the cursor before opening a new one. <b>mysqli_stmt_reset</b> |
|
1399 | + * also closes any open cursor before preparing the statement for re-execution. |
|
1400 | + * <b>mysqli_stmt_free_result</b> closes any open cursor. |
|
1401 | + * </p> |
|
1402 | + * <p> |
|
1403 | + * If you open a cursor for a prepared statement, <b>mysqli_stmt_store_result</b> |
|
1404 | + * is unnecessary. |
|
1405 | + * </p> |
|
1406 | + * @param int $value <p>The value to assign to the attribute.</p> |
|
1407 | + * @return bool |
|
1408 | + */ |
|
1409 | + #[TentativeType] |
|
1410 | + public function attr_set(int $attribute, int $value): bool {} |
|
1411 | + |
|
1412 | + /** |
|
1413 | + * Binds variables to a prepared statement as parameters |
|
1414 | + * @link https://php.net/manual/en/mysqli-stmt.bind-param.php |
|
1415 | + * @param string $types <p> |
|
1416 | + * A string that contains one or more characters which specify the types |
|
1417 | + * for the corresponding bind variables: |
|
1418 | + * <table> |
|
1419 | + * Type specification chars |
|
1420 | + * <tr valign="top"> |
|
1421 | + * <td>Character</td> |
|
1422 | + * <td>Description</td> |
|
1423 | + * </tr> |
|
1424 | + * <tr valign="top"> |
|
1425 | + * <td>i</td> |
|
1426 | + * <td>corresponding variable has type integer</td> |
|
1427 | + * </tr> |
|
1428 | + * <tr valign="top"> |
|
1429 | + * <td>d</td> |
|
1430 | + * <td>corresponding variable has type double</td> |
|
1431 | + * </tr> |
|
1432 | + * <tr valign="top"> |
|
1433 | + * <td>s</td> |
|
1434 | + * <td>corresponding variable has type string</td> |
|
1435 | + * </tr> |
|
1436 | + * <tr valign="top"> |
|
1437 | + * <td>b</td> |
|
1438 | + * <td>corresponding variable is a blob and will be sent in packets</td> |
|
1439 | + * </tr> |
|
1440 | + * </table> |
|
1441 | + * </p> |
|
1442 | + * @param mixed &$var1 <p> |
|
1443 | + * The number of variables and length of string |
|
1444 | + * types must match the parameters in the statement. |
|
1445 | + * </p> |
|
1446 | + * @param mixed &...$_ [optional] |
|
1447 | + * @return bool true on success or false on failure. |
|
1448 | + */ |
|
1449 | + public function bind_param($types, &$var1, &...$_) {} |
|
1450 | + |
|
1451 | + /** |
|
1452 | + * Binds variables to a prepared statement for result storage |
|
1453 | + * @link https://php.net/manual/en/mysqli-stmt.bind-result.php |
|
1454 | + * @param mixed &$var1 The variable to be bound. |
|
1455 | + * @param mixed &...$_ The variables to be bound. |
|
1456 | + * @return bool true on success or false on failure. |
|
1457 | + */ |
|
1458 | + public function bind_result(&$var1, &...$_) {} |
|
1459 | + |
|
1460 | + /** |
|
1461 | + * Closes a prepared statement |
|
1462 | + * @link https://php.net/manual/en/mysqli-stmt.close.php |
|
1463 | + * @return bool true on success or false on failure. |
|
1464 | + */ |
|
1465 | + public function close() {} |
|
1466 | + |
|
1467 | + /** |
|
1468 | + * Seeks to an arbitrary row in statement result set |
|
1469 | + * @link https://php.net/manual/en/mysqli-stmt.data-seek.php |
|
1470 | + * @param int $offset <p> |
|
1471 | + * Must be between zero and the total number of rows minus one (0.. |
|
1472 | + * <b>mysqli_stmt_num_rows</b> - 1). |
|
1473 | + * </p> |
|
1474 | + * @return void |
|
1475 | + */ |
|
1476 | + #[TentativeType] |
|
1477 | + public function data_seek(int $offset): void {} |
|
1478 | + |
|
1479 | + /** |
|
1480 | + * Executes a prepared Query |
|
1481 | + * @link https://php.net/manual/en/mysqli-stmt.execute.php |
|
1482 | + * @return bool true on success or false on failure. |
|
1483 | + */ |
|
1484 | + #[TentativeType] |
|
1485 | + public function execute(#[PhpStormStubsElementAvailable('8.1')] ?array $params = null): bool {} |
|
1486 | + |
|
1487 | + /** |
|
1488 | + * Fetch results from a prepared statement into the bound variables |
|
1489 | + * @link https://php.net/manual/en/mysqli-stmt.fetch.php |
|
1490 | + * @return bool|null |
|
1491 | + */ |
|
1492 | + #[TentativeType] |
|
1493 | + public function fetch(): ?bool {} |
|
1494 | + |
|
1495 | + /** |
|
1496 | + * Get result of SHOW WARNINGS |
|
1497 | + * @link https://php.net/manual/en/mysqli-stmt.get-warnings.php |
|
1498 | + * @return object|false |
|
1499 | + */ |
|
1500 | + #[TentativeType] |
|
1501 | + public function get_warnings(): mysqli_warning|false {} |
|
1502 | + |
|
1503 | + /** |
|
1504 | + * Returns result set metadata from a prepared statement |
|
1505 | + * @link https://php.net/manual/en/mysqli-stmt.result-metadata.php |
|
1506 | + * @return mysqli_result|false a result object or false if an error occurred. |
|
1507 | + */ |
|
1508 | + #[TentativeType] |
|
1509 | + public function result_metadata(): mysqli_result|false {} |
|
1510 | + |
|
1511 | + /** |
|
1512 | + * Check if there are more query results from a multiple query |
|
1513 | + * @link https://php.net/manual/en/mysqli-stmt.more-results.php |
|
1514 | + * @return bool |
|
1515 | + */ |
|
1516 | + #[TentativeType] |
|
1517 | + public function more_results(): bool {} |
|
1518 | + |
|
1519 | + /** |
|
1520 | + * Reads the next result from a multiple query |
|
1521 | + * @link https://php.net/manual/en/mysqli-stmt.next-result.php |
|
1522 | + * @return bool |
|
1523 | + */ |
|
1524 | + #[TentativeType] |
|
1525 | + public function next_result(): bool {} |
|
1526 | + |
|
1527 | + /** |
|
1528 | + * Return the number of rows in statements result set |
|
1529 | + * @link https://php.net/manual/en/mysqli-stmt.num-rows.php |
|
1530 | + * @return string|int An integer representing the number of rows in result set. |
|
1531 | + */ |
|
1532 | + #[TentativeType] |
|
1533 | + public function num_rows(): string|int {} |
|
1534 | + |
|
1535 | + /** |
|
1536 | + * Send data in blocks |
|
1537 | + * @link https://php.net/manual/en/mysqli-stmt.send-long-data.php |
|
1538 | + * @param int $param_num <p> |
|
1539 | + * Indicates which parameter to associate the data with. Parameters are |
|
1540 | + * numbered beginning with 0. |
|
1541 | + * </p> |
|
1542 | + * @param string $data <p> |
|
1543 | + * A string containing data to be sent. |
|
1544 | + * </p> |
|
1545 | + * @return bool true on success or false on failure. |
|
1546 | + */ |
|
1547 | + #[TentativeType] |
|
1548 | + public function send_long_data(int $param_num, string $data): bool {} |
|
1549 | + |
|
1550 | + /** |
|
1551 | + * No documentation available |
|
1552 | + * @removed 5.4 |
|
1553 | + */ |
|
1554 | + #[Deprecated(since: '5.3')] |
|
1555 | + public function stmt() {} |
|
1556 | + |
|
1557 | + /** |
|
1558 | + * Frees stored result memory for the given statement handle |
|
1559 | + * @link https://php.net/manual/en/mysqli-stmt.free-result.php |
|
1560 | + * @return void |
|
1561 | + */ |
|
1562 | + #[TentativeType] |
|
1563 | + public function free_result(): void {} |
|
1564 | + |
|
1565 | + /** |
|
1566 | + * Resets a prepared statement |
|
1567 | + * @link https://php.net/manual/en/mysqli-stmt.reset.php |
|
1568 | + * @return bool true on success or false on failure. |
|
1569 | + */ |
|
1570 | + #[TentativeType] |
|
1571 | + public function reset(): bool {} |
|
1572 | + |
|
1573 | + /** |
|
1574 | + * Prepare an SQL statement for execution |
|
1575 | + * @link https://php.net/manual/en/mysqli-stmt.prepare.php |
|
1576 | + * @param string $query <p> |
|
1577 | + * The query, as a string. It must consist of a single SQL statement. |
|
1578 | + * </p> |
|
1579 | + * <p> |
|
1580 | + * You can include one or more parameter markers in the SQL statement by |
|
1581 | + * embedding question mark (?) characters at the |
|
1582 | + * appropriate positions. |
|
1583 | + * </p> |
|
1584 | + * <p> |
|
1585 | + * You should not add a terminating semicolon or \g |
|
1586 | + * to the statement. |
|
1587 | + * </p> |
|
1588 | + * <p> |
|
1589 | + * The markers are legal only in certain places in SQL statements. |
|
1590 | + * For example, they are allowed in the VALUES() list of an INSERT statement |
|
1591 | + * (to specify column values for a row), or in a comparison with a column in |
|
1592 | + * a WHERE clause to specify a comparison value. |
|
1593 | + * </p> |
|
1594 | + * <p> |
|
1595 | + * However, they are not allowed for identifiers (such as table or column names), |
|
1596 | + * in the select list that names the columns to be returned by a SELECT statement), |
|
1597 | + * or to specify both operands of a binary operator such as the = |
|
1598 | + * equal sign. The latter restriction is necessary because it would be impossible |
|
1599 | + * to determine the parameter type. In general, parameters are legal only in Data |
|
1600 | + * Manipulation Language (DML) statements, and not in Data Definition Language |
|
1601 | + * (DDL) statements. |
|
1602 | + * </p> |
|
1603 | + * @return bool true on success or false on failure. |
|
1604 | + */ |
|
1605 | + #[TentativeType] |
|
1606 | + public function prepare(string $query): bool {} |
|
1607 | + |
|
1608 | + /** |
|
1609 | + * Transfers a result set from a prepared statement |
|
1610 | + * @link https://php.net/manual/en/mysqli-stmt.store-result.php |
|
1611 | + * @return bool true on success or false on failure. |
|
1612 | + */ |
|
1613 | + #[TentativeType] |
|
1614 | + public function store_result(): bool {} |
|
1615 | + |
|
1616 | + /** |
|
1617 | + * Gets a result set from a prepared statement |
|
1618 | + * @link https://php.net/manual/en/mysqli-stmt.get-result.php |
|
1619 | + * @return mysqli_result|false Returns a resultset or FALSE on failure |
|
1620 | + */ |
|
1621 | + #[TentativeType] |
|
1622 | + public function get_result(): mysqli_result|false {} |
|
1623 | 1623 | } |
1624 | 1624 | |
1625 | 1625 | /** |
@@ -1982,8 +1982,8 @@ discard block |
||
1982 | 1982 | */ |
1983 | 1983 | #[LanguageLevelTypeAware(['8.0' => 'string'], default: '?string')] |
1984 | 1984 | function mysqli_get_client_info( |
1985 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.1')] mysqli $mysql, |
|
1986 | - #[PhpStormStubsElementAvailable(from: '8.0')] ?mysqli $mysql = null |
|
1985 | + #[PhpStormStubsElementAvailable(from: '5.3', to: '7.1')] mysqli $mysql, |
|
1986 | + #[PhpStormStubsElementAvailable(from: '8.0')] ?mysqli $mysql = null |
|
1987 | 1987 | ) {} |
1988 | 1988 | |
1989 | 1989 | /** |
@@ -2140,9 +2140,9 @@ discard block |
||
2140 | 2140 | * @return bool Returns FALSE if the first statement failed. To retrieve subsequent errors from other statements you have to call mysqli_next_result() first. |
2141 | 2141 | */ |
2142 | 2142 | function mysqli_multi_query( |
2143 | - mysqli $mysql, |
|
2144 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] string $query = null, |
|
2145 | - #[PhpStormStubsElementAvailable(from: '8.0')] string $query |
|
2143 | + mysqli $mysql, |
|
2144 | + #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] string $query = null, |
|
2145 | + #[PhpStormStubsElementAvailable(from: '8.0')] string $query |
|
2146 | 2146 | ): bool {} |
2147 | 2147 | |
2148 | 2148 | /** |
@@ -2296,9 +2296,9 @@ discard block |
||
2296 | 2296 | * @return bool |
2297 | 2297 | */ |
2298 | 2298 | function mysqli_real_query( |
2299 | - mysqli $mysql, |
|
2300 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] string $query = null, |
|
2301 | - #[PhpStormStubsElementAvailable(from: '8.0')] string $query |
|
2299 | + mysqli $mysql, |
|
2300 | + #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] string $query = null, |
|
2301 | + #[PhpStormStubsElementAvailable(from: '8.0')] string $query |
|
2302 | 2302 | ): bool {} |
2303 | 2303 | |
2304 | 2304 | /** |
@@ -2469,10 +2469,10 @@ discard block |
||
2469 | 2469 | * @return bool true on success or false on failure. |
2470 | 2470 | */ |
2471 | 2471 | function mysqli_stmt_bind_param( |
2472 | - mysqli_stmt $statement, |
|
2473 | - string $types, |
|
2474 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] mixed &$vars, |
|
2475 | - mixed &...$vars |
|
2472 | + mysqli_stmt $statement, |
|
2473 | + string $types, |
|
2474 | + #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] mixed &$vars, |
|
2475 | + mixed &...$vars |
|
2476 | 2476 | ): bool {} |
2477 | 2477 | |
2478 | 2478 | /** |
@@ -2483,9 +2483,9 @@ discard block |
||
2483 | 2483 | * @return bool |
2484 | 2484 | */ |
2485 | 2485 | function mysqli_stmt_bind_result( |
2486 | - mysqli_stmt $statement, |
|
2487 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] mixed &$vars, |
|
2488 | - mixed &...$vars |
|
2486 | + mysqli_stmt $statement, |
|
2487 | + #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] mixed &$vars, |
|
2488 | + mixed &...$vars |
|
2489 | 2489 | ): bool {} |
2490 | 2490 | |
2491 | 2491 | /** |
@@ -2572,12 +2572,12 @@ discard block |
||
2572 | 2572 | * @return bool This function always returns TRUE value. |
2573 | 2573 | */ |
2574 | 2574 | function mysqli_ssl_set( |
2575 | - mysqli $mysql, |
|
2576 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $key, |
|
2577 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $certificate, |
|
2578 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $ca_certificate, |
|
2579 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $ca_path, |
|
2580 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $cipher_algos |
|
2575 | + mysqli $mysql, |
|
2576 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $key, |
|
2577 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $certificate, |
|
2578 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $ca_certificate, |
|
2579 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $ca_path, |
|
2580 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $cipher_algos |
|
2581 | 2581 | ): bool {} |
2582 | 2582 | |
2583 | 2583 | /** |
@@ -2741,9 +2741,9 @@ discard block |
||
2741 | 2741 | * @return string |
2742 | 2742 | */ |
2743 | 2743 | function mysqli_escape_string( |
2744 | - mysqli $mysql, |
|
2745 | - string $string, |
|
2746 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $resultmode = null |
|
2744 | + mysqli $mysql, |
|
2745 | + string $string, |
|
2746 | + #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $resultmode = null |
|
2747 | 2747 | ): string {} |
2748 | 2748 | |
2749 | 2749 | /** |
@@ -2797,9 +2797,9 @@ discard block |
||
2797 | 2797 | * @return bool |
2798 | 2798 | */ |
2799 | 2799 | function mysqli_set_opt( |
2800 | - #[PhpStormStubsElementAvailable(from: '8.0')] mysqli $mysql, |
|
2801 | - #[PhpStormStubsElementAvailable(from: '8.0')] int $option, |
|
2802 | - #[PhpStormStubsElementAvailable(from: '8.0')] $value |
|
2800 | + #[PhpStormStubsElementAvailable(from: '8.0')] mysqli $mysql, |
|
2801 | + #[PhpStormStubsElementAvailable(from: '8.0')] int $option, |
|
2802 | + #[PhpStormStubsElementAvailable(from: '8.0')] $value |
|
2803 | 2803 | ): bool {} |
2804 | 2804 | |
2805 | 2805 | /** |
@@ -208,8 +208,8 @@ discard block |
||
208 | 208 | */ |
209 | 209 | #[TentativeType] |
210 | 210 | public function begin_transaction( |
211 | - #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0, |
|
212 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null |
|
211 | + #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = 0, |
|
212 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : '')] $name = null |
|
213 | 213 | ): bool {} |
214 | 214 | |
215 | 215 | /** |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | /** |
246 | 246 | * @removed 5.4 |
247 | 247 | */ |
248 | - #[Deprecated(since: '5.3')] |
|
248 | + #[Deprecated(since : '5.3')] |
|
249 | 249 | public function client_encoding() {} |
250 | 250 | |
251 | 251 | /** |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * @return mysqli_warning|false |
356 | 356 | */ |
357 | 357 | #[TentativeType] |
358 | - public function get_warnings(): mysqli_warning|false {} |
|
358 | + public function get_warnings(): mysqli_warning | false {} |
|
359 | 359 | |
360 | 360 | /** |
361 | 361 | * Initializes MySQLi and returns a resource for use with mysqli_real_connect() |
@@ -516,7 +516,7 @@ discard block |
||
516 | 516 | * @return mysqli_stmt|false <b>mysqli_prepare</b> returns a statement object or false if an error occurred. |
517 | 517 | */ |
518 | 518 | #[TentativeType] |
519 | - public function prepare(string $query): mysqli_stmt|false {} |
|
519 | + public function prepare(string $query): mysqli_stmt | false {} |
|
520 | 520 | |
521 | 521 | /** |
522 | 522 | * Performs a query on the database |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | * return true and false on failure. |
550 | 550 | */ |
551 | 551 | #[TentativeType] |
552 | - public function query(string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {} |
|
552 | + public function query(string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result | bool {} |
|
553 | 553 | |
554 | 554 | /** |
555 | 555 | * Opens a connection to a mysql server |
@@ -671,7 +671,7 @@ discard block |
||
671 | 671 | * @return int|false number of ready connections in success, false otherwise. |
672 | 672 | */ |
673 | 673 | #[TentativeType] |
674 | - public static function poll(?array &$read, ?array &$error, array &$reject, int $seconds, int $microseconds = 0): int|false {} |
|
674 | + public static function poll(?array &$read, ?array &$error, array &$reject, int $seconds, int $microseconds = 0): int | false {} |
|
675 | 675 | |
676 | 676 | /** |
677 | 677 | * Get result from async query |
@@ -679,7 +679,7 @@ discard block |
||
679 | 679 | * @return mysqli_result|false mysqli_result in success, false otherwise. |
680 | 680 | */ |
681 | 681 | #[TentativeType] |
682 | - public function reap_async_query(): mysqli_result|bool {} |
|
682 | + public function reap_async_query(): mysqli_result | bool {} |
|
683 | 683 | |
684 | 684 | /** |
685 | 685 | * Escapes special characters in a string for use in an SQL statement, taking into account the current charset of the connection |
@@ -713,7 +713,7 @@ discard block |
||
713 | 713 | * @since 5.5 |
714 | 714 | */ |
715 | 715 | #[TentativeType] |
716 | - public function release_savepoint(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} |
|
716 | + public function release_savepoint(#[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name): bool {} |
|
717 | 717 | |
718 | 718 | /** |
719 | 719 | * Rolls back current transaction |
@@ -725,8 +725,8 @@ discard block |
||
725 | 725 | */ |
726 | 726 | #[TentativeType] |
727 | 727 | public function rollback( |
728 | - #[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags = 0, |
|
729 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: '')] $name = null |
|
728 | + #[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags = 0, |
|
729 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : '')] $name = null |
|
730 | 730 | ): bool {} |
731 | 731 | |
732 | 732 | /** |
@@ -737,7 +737,7 @@ discard block |
||
737 | 737 | * @since 5.5 |
738 | 738 | */ |
739 | 739 | #[TentativeType] |
740 | - public function savepoint(#[LanguageLevelTypeAware(['8.0' => 'string'], default: '')] $name): bool {} |
|
740 | + public function savepoint(#[LanguageLevelTypeAware(['8.0' => 'string'], default : '')] $name): bool {} |
|
741 | 741 | |
742 | 742 | /** |
743 | 743 | * Selects the default database for database queries |
@@ -797,7 +797,7 @@ discard block |
||
797 | 797 | * @return string|false A string describing the server status. false if an error occurred. |
798 | 798 | */ |
799 | 799 | #[TentativeType] |
800 | - public function stat(): string|false {} |
|
800 | + public function stat(): string | false {} |
|
801 | 801 | |
802 | 802 | /** |
803 | 803 | * Initializes a statement and returns an object for use with mysqli_stmt_prepare |
@@ -805,7 +805,7 @@ discard block |
||
805 | 805 | * @return mysqli_stmt an object. |
806 | 806 | */ |
807 | 807 | #[TentativeType] |
808 | - public function stmt_init(): mysqli_stmt|false {} |
|
808 | + public function stmt_init(): mysqli_stmt | false {} |
|
809 | 809 | |
810 | 810 | /** |
811 | 811 | * Transfers a result set from the last query |
@@ -828,7 +828,7 @@ discard block |
||
828 | 828 | * statement should have produced a non-empty result set. |
829 | 829 | */ |
830 | 830 | #[TentativeType] |
831 | - public function store_result(int $mode = null): mysqli_result|false {} |
|
831 | + public function store_result(int $mode = null): mysqli_result | false {} |
|
832 | 832 | |
833 | 833 | /** |
834 | 834 | * Returns whether thread safety is given or not |
@@ -844,7 +844,7 @@ discard block |
||
844 | 844 | * @return mysqli_result|false an unbuffered result object or false if an error occurred. |
845 | 845 | */ |
846 | 846 | #[TentativeType] |
847 | - public function use_result(): mysqli_result|false {} |
|
847 | + public function use_result(): mysqli_result | false {} |
|
848 | 848 | |
849 | 849 | /** |
850 | 850 | * @link https://php.net/manual/en/mysqli.refresh |
@@ -853,7 +853,7 @@ discard block |
||
853 | 853 | * @since 5.3 |
854 | 854 | */ |
855 | 855 | #[TentativeType] |
856 | - public function refresh(#[LanguageLevelTypeAware(['8.0' => 'int'], default: '')] $flags): bool {} |
|
856 | + public function refresh(#[LanguageLevelTypeAware(['8.0' => 'int'], default : '')] $flags): bool {} |
|
857 | 857 | } |
858 | 858 | |
859 | 859 | /** |
@@ -865,7 +865,7 @@ discard block |
||
865 | 865 | /** |
866 | 866 | * @var string |
867 | 867 | */ |
868 | - #[LanguageLevelTypeAware(['8.1' => 'string'], default: '')] |
|
868 | + #[LanguageLevelTypeAware(['8.1' => 'string'], default : '')] |
|
869 | 869 | public $message; |
870 | 870 | /** |
871 | 871 | * @var string |
@@ -1039,7 +1039,7 @@ discard block |
||
1039 | 1039 | * </table> |
1040 | 1040 | */ |
1041 | 1041 | #[TentativeType] |
1042 | - public function fetch_field(): object|false {} |
|
1042 | + public function fetch_field(): object | false {} |
|
1043 | 1043 | |
1044 | 1044 | /** |
1045 | 1045 | * Returns an array of objects representing the fields in a result set |
@@ -1168,7 +1168,7 @@ discard block |
||
1168 | 1168 | * </table> |
1169 | 1169 | */ |
1170 | 1170 | #[TentativeType] |
1171 | - public function fetch_field_direct(int $index): object|false {} |
|
1171 | + public function fetch_field_direct(int $index): object | false {} |
|
1172 | 1172 | |
1173 | 1173 | /** |
1174 | 1174 | * Fetches all result rows as an associative array, a numeric array, or both |
@@ -1205,7 +1205,7 @@ discard block |
||
1205 | 1205 | * are no more rows in resultset. |
1206 | 1206 | */ |
1207 | 1207 | #[TentativeType] |
1208 | - public function fetch_array(int $mode = MYSQLI_BOTH): array|false|null {} |
|
1208 | + public function fetch_array(int $mode = MYSQLI_BOTH): array | false | null {} |
|
1209 | 1209 | |
1210 | 1210 | /** |
1211 | 1211 | * Fetch a result row as an associative array |
@@ -1221,7 +1221,7 @@ discard block |
||
1221 | 1221 | * <b>mysqli_fetch_row</b> or add alias names. |
1222 | 1222 | */ |
1223 | 1223 | #[TentativeType] |
1224 | - public function fetch_assoc(): array|false|null {} |
|
1224 | + public function fetch_assoc(): array | false | null {} |
|
1225 | 1225 | |
1226 | 1226 | /** |
1227 | 1227 | * Returns the current row of a result set as an object |
@@ -1238,7 +1238,7 @@ discard block |
||
1238 | 1238 | * row or null if there are no more rows in resultset. |
1239 | 1239 | */ |
1240 | 1240 | #[TentativeType] |
1241 | - public function fetch_object(string $class = 'stdClass', array $constructor_args = null): object|false|null {} |
|
1241 | + public function fetch_object(string $class = 'stdClass', array $constructor_args = null): object | false | null {} |
|
1242 | 1242 | |
1243 | 1243 | /** |
1244 | 1244 | * Get a result row as an enumerated array |
@@ -1247,10 +1247,10 @@ discard block |
||
1247 | 1247 | * or null if there are no more rows in result set. |
1248 | 1248 | */ |
1249 | 1249 | #[TentativeType] |
1250 | - public function fetch_row(): array|false|null {} |
|
1250 | + public function fetch_row(): array | false | null {} |
|
1251 | 1251 | |
1252 | 1252 | #[PhpStormStubsElementAvailable('8.1')] |
1253 | - public function fetch_column(int $column = null): string|int|float|false|null {} |
|
1253 | + public function fetch_column(int $column = null): string | int | float | false | null {} |
|
1254 | 1254 | |
1255 | 1255 | /** |
1256 | 1256 | * Set result pointer to a specified field offset |
@@ -1482,7 +1482,7 @@ discard block |
||
1482 | 1482 | * @return bool true on success or false on failure. |
1483 | 1483 | */ |
1484 | 1484 | #[TentativeType] |
1485 | - public function execute(#[PhpStormStubsElementAvailable('8.1')] ?array $params = null): bool {} |
|
1485 | + public function execute(#[PhpStormStubsElementAvailable('8.1')] ? array $params = null): bool {} |
|
1486 | 1486 | |
1487 | 1487 | /** |
1488 | 1488 | * Fetch results from a prepared statement into the bound variables |
@@ -1498,7 +1498,7 @@ discard block |
||
1498 | 1498 | * @return object|false |
1499 | 1499 | */ |
1500 | 1500 | #[TentativeType] |
1501 | - public function get_warnings(): mysqli_warning|false {} |
|
1501 | + public function get_warnings(): mysqli_warning | false {} |
|
1502 | 1502 | |
1503 | 1503 | /** |
1504 | 1504 | * Returns result set metadata from a prepared statement |
@@ -1506,7 +1506,7 @@ discard block |
||
1506 | 1506 | * @return mysqli_result|false a result object or false if an error occurred. |
1507 | 1507 | */ |
1508 | 1508 | #[TentativeType] |
1509 | - public function result_metadata(): mysqli_result|false {} |
|
1509 | + public function result_metadata(): mysqli_result | false {} |
|
1510 | 1510 | |
1511 | 1511 | /** |
1512 | 1512 | * Check if there are more query results from a multiple query |
@@ -1530,7 +1530,7 @@ discard block |
||
1530 | 1530 | * @return string|int An integer representing the number of rows in result set. |
1531 | 1531 | */ |
1532 | 1532 | #[TentativeType] |
1533 | - public function num_rows(): string|int {} |
|
1533 | + public function num_rows(): string | int {} |
|
1534 | 1534 | |
1535 | 1535 | /** |
1536 | 1536 | * Send data in blocks |
@@ -1551,7 +1551,7 @@ discard block |
||
1551 | 1551 | * No documentation available |
1552 | 1552 | * @removed 5.4 |
1553 | 1553 | */ |
1554 | - #[Deprecated(since: '5.3')] |
|
1554 | + #[Deprecated(since : '5.3')] |
|
1555 | 1555 | public function stmt() {} |
1556 | 1556 | |
1557 | 1557 | /** |
@@ -1619,7 +1619,7 @@ discard block |
||
1619 | 1619 | * @return mysqli_result|false Returns a resultset or FALSE on failure |
1620 | 1620 | */ |
1621 | 1621 | #[TentativeType] |
1622 | - public function get_result(): mysqli_result|false {} |
|
1622 | + public function get_result(): mysqli_result | false {} |
|
1623 | 1623 | } |
1624 | 1624 | |
1625 | 1625 | /** |
@@ -1630,7 +1630,7 @@ discard block |
||
1630 | 1630 | * Zero indicates that no records where updated for an UPDATE statement, |
1631 | 1631 | * no rows matched the WHERE clause in the query or that no query has yet been executed. -1 indicates that the query returned an error. |
1632 | 1632 | */ |
1633 | -function mysqli_affected_rows(mysqli $mysql): string|int {} |
|
1633 | +function mysqli_affected_rows(mysqli $mysql): string | int {} |
|
1634 | 1634 | |
1635 | 1635 | /** |
1636 | 1636 | * Turns on or off auto-committing database modifications |
@@ -1701,7 +1701,7 @@ discard block |
||
1701 | 1701 | * @param string|null $socket Specifies the socket or named pipe that should be used. |
1702 | 1702 | * @return mysqli|false|null object which represents the connection to a MySQL Server or false if an error occurred. |
1703 | 1703 | */ |
1704 | -function mysqli_connect(?string $hostname = null, ?string $username = null, ?string $password = null, ?string $database = null, ?int $port = null, ?string $socket = null): mysqli|false {} |
|
1704 | +function mysqli_connect(?string $hostname = null, ?string $username = null, ?string $password = null, ?string $database = null, ?int $port = null, ?string $socket = null): mysqli | false {} |
|
1705 | 1705 | |
1706 | 1706 | /** |
1707 | 1707 | * Returns the error code from last connect call |
@@ -1783,7 +1783,7 @@ discard block |
||
1783 | 1783 | * @param mysqli_stmt $statement |
1784 | 1784 | * @return bool |
1785 | 1785 | */ |
1786 | -function mysqli_stmt_execute(mysqli_stmt $statement, #[PhpStormStubsElementAvailable('8.1')] ?array $params = null): bool {} |
|
1786 | +function mysqli_stmt_execute(mysqli_stmt $statement, #[PhpStormStubsElementAvailable('8.1')] ? array $params = null): bool {} |
|
1787 | 1787 | |
1788 | 1788 | /** |
1789 | 1789 | * Executes a prepared Query |
@@ -1792,8 +1792,8 @@ discard block |
||
1792 | 1792 | * @param mysqli_stmt $statement |
1793 | 1793 | * @return bool |
1794 | 1794 | */ |
1795 | -#[Deprecated(since: '5.3')] |
|
1796 | -function mysqli_execute(mysqli_stmt $statement, #[PhpStormStubsElementAvailable('8.1')] ?array $params = null): bool {} |
|
1795 | +#[Deprecated(since : '5.3')] |
|
1796 | +function mysqli_execute(mysqli_stmt $statement, #[PhpStormStubsElementAvailable('8.1')] ? array $params = null): bool {} |
|
1797 | 1797 | |
1798 | 1798 | /** |
1799 | 1799 | * Returns the next field in the result set |
@@ -1802,7 +1802,7 @@ discard block |
||
1802 | 1802 | * mysqli_store_result() or mysqli_use_result(). |
1803 | 1803 | * @return object|false Returns an object which contains field definition information or FALSE if no field information is available. |
1804 | 1804 | */ |
1805 | -function mysqli_fetch_field(mysqli_result $result): object|false {} |
|
1805 | +function mysqli_fetch_field(mysqli_result $result): object | false {} |
|
1806 | 1806 | |
1807 | 1807 | /** |
1808 | 1808 | * Returns an array of objects representing the fields in a result set |
@@ -1811,7 +1811,7 @@ discard block |
||
1811 | 1811 | * mysqli_store_result() or mysqli_use_result(). |
1812 | 1812 | * @return array|false Returns an array of objects which contains field definition information or FALSE if no field information is available. |
1813 | 1813 | */ |
1814 | -#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] |
|
1814 | +#[LanguageLevelTypeAware(["8.0" => "array"], default : "array|false")] |
|
1815 | 1815 | function mysqli_fetch_fields(mysqli_result $result) {} |
1816 | 1816 | |
1817 | 1817 | /** |
@@ -1822,7 +1822,7 @@ discard block |
||
1822 | 1822 | * @param int $index The field number. This value must be in the range from 0 to number of fields - 1. |
1823 | 1823 | * @return object|false Returns an object which contains field definition information or FALSE if no field information for specified fieldnr is available. |
1824 | 1824 | */ |
1825 | -function mysqli_fetch_field_direct(mysqli_result $result, int $index): object|false {} |
|
1825 | +function mysqli_fetch_field_direct(mysqli_result $result, int $index): object | false {} |
|
1826 | 1826 | |
1827 | 1827 | /** |
1828 | 1828 | * Returns the lengths of the columns of the current row in the result set |
@@ -1831,7 +1831,7 @@ discard block |
||
1831 | 1831 | * mysqli_store_result() or mysqli_use_result(). |
1832 | 1832 | * @return int[]|false An array of integers representing the size of each column (not including any terminating null characters). FALSE if an error occurred. |
1833 | 1833 | */ |
1834 | -function mysqli_fetch_lengths(mysqli_result $result): array|false {} |
|
1834 | +function mysqli_fetch_lengths(mysqli_result $result): array | false {} |
|
1835 | 1835 | |
1836 | 1836 | /** |
1837 | 1837 | * Fetches all result rows as an associative array, a numeric array, or both. |
@@ -1852,7 +1852,7 @@ discard block |
||
1852 | 1852 | * @param int $mode |
1853 | 1853 | * @return array|false|null |
1854 | 1854 | */ |
1855 | -function mysqli_fetch_array(mysqli_result $result, int $mode = MYSQLI_BOTH): array|false|null {} |
|
1855 | +function mysqli_fetch_array(mysqli_result $result, int $mode = MYSQLI_BOTH): array | false | null {} |
|
1856 | 1856 | |
1857 | 1857 | /** |
1858 | 1858 | * Fetch a result row as an associative array |
@@ -1865,7 +1865,7 @@ discard block |
||
1865 | 1865 | * To access the other column(s) of the same name, |
1866 | 1866 | * you either need to access the result with numeric indices by using mysqli_fetch_row() or add alias names. |
1867 | 1867 | */ |
1868 | -function mysqli_fetch_assoc(mysqli_result $result): array|null|false {} |
|
1868 | +function mysqli_fetch_assoc(mysqli_result $result): array | null | false {} |
|
1869 | 1869 | |
1870 | 1870 | /** |
1871 | 1871 | * Returns the current row of a result set as an object. |
@@ -1879,7 +1879,7 @@ discard block |
||
1879 | 1879 | * To access the other column(s) of the same name, |
1880 | 1880 | * you either need to access the result with numeric indices by using mysqli_fetch_row() or add alias names. |
1881 | 1881 | */ |
1882 | -function mysqli_fetch_object(mysqli_result $result, string $class = 'stdClass', array $constructor_args = []): object|null|false {} |
|
1882 | +function mysqli_fetch_object(mysqli_result $result, string $class = 'stdClass', array $constructor_args = []): object | null | false {} |
|
1883 | 1883 | |
1884 | 1884 | /** |
1885 | 1885 | * Get a result row as an enumerated array |
@@ -1890,7 +1890,7 @@ discard block |
||
1890 | 1890 | * or null if there are no more rows in result set. |
1891 | 1891 | * @link https://php.net/manual/en/mysqli-result.fetch-row.php |
1892 | 1892 | */ |
1893 | -function mysqli_fetch_row(mysqli_result $result): array|false|null {} |
|
1893 | +function mysqli_fetch_row(mysqli_result $result): array | false | null {} |
|
1894 | 1894 | |
1895 | 1895 | /** |
1896 | 1896 | * Get a result column as an enumerated array |
@@ -1901,7 +1901,7 @@ discard block |
||
1901 | 1901 | * or null if there are no more columns in result set. |
1902 | 1902 | */ |
1903 | 1903 | #[PhpStormStubsElementAvailable('8.1')] |
1904 | -function mysqli_fetch_column(mysqli_result $result, int $column = null): string|int|float|false|null {} |
|
1904 | +function mysqli_fetch_column(mysqli_result $result, int $column = null): string | int | float | false | null {} |
|
1905 | 1905 | |
1906 | 1906 | /** |
1907 | 1907 | * Returns the number of columns for the most recent query |
@@ -1955,7 +1955,7 @@ discard block |
||
1955 | 1955 | * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() |
1956 | 1956 | * @return array|false an array with connection stats if successful, FALSE otherwise. |
1957 | 1957 | */ |
1958 | -#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] |
|
1958 | +#[LanguageLevelTypeAware(["8.0" => "array"], default : "array|false")] |
|
1959 | 1959 | function mysqli_get_connection_stats(mysqli $mysql) {} |
1960 | 1960 | |
1961 | 1961 | /** |
@@ -1963,7 +1963,7 @@ discard block |
||
1963 | 1963 | * @link https://php.net/manual/en/function.mysqli-get-client-stats.php |
1964 | 1964 | * @return array|false an array with client stats if success, false otherwise. |
1965 | 1965 | */ |
1966 | -#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")] |
|
1966 | +#[LanguageLevelTypeAware(["8.0" => "array"], default : "array|false")] |
|
1967 | 1967 | function mysqli_get_client_stats() {} |
1968 | 1968 | |
1969 | 1969 | /** |
@@ -1980,10 +1980,10 @@ discard block |
||
1980 | 1980 | * @param mysqli|null $mysql A link identifier returned by mysqli_connect() or mysqli_init() |
1981 | 1981 | * @return string|null A string that represents the MySQL client library version |
1982 | 1982 | */ |
1983 | -#[LanguageLevelTypeAware(['8.0' => 'string'], default: '?string')] |
|
1983 | +#[LanguageLevelTypeAware(['8.0' => 'string'], default : '?string')] |
|
1984 | 1984 | function mysqli_get_client_info( |
1985 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.1')] mysqli $mysql, |
|
1986 | - #[PhpStormStubsElementAvailable(from: '8.0')] ?mysqli $mysql = null |
|
1985 | + #[PhpStormStubsElementAvailable(from : '5.3', to : '7.1')] mysqli $mysql, |
|
1986 | + #[PhpStormStubsElementAvailable(from : '8.0')] ?mysqli $mysql = null |
|
1987 | 1987 | ) {} |
1988 | 1988 | |
1989 | 1989 | /** |
@@ -1991,7 +1991,7 @@ discard block |
||
1991 | 1991 | * @link https://php.net/manual/en/mysqli.get-client-version.php |
1992 | 1992 | * @return int |
1993 | 1993 | */ |
1994 | -function mysqli_get_client_version(#[PhpStormStubsElementAvailable(from: '5.3', to: '7.3')] $link): int {} |
|
1994 | +function mysqli_get_client_version(#[PhpStormStubsElementAvailable(from : '5.3', to : '7.3')] $link): int {} |
|
1995 | 1995 | |
1996 | 1996 | /** |
1997 | 1997 | * Returns a string representing the type of connection used |
@@ -2069,7 +2069,7 @@ discard block |
||
2069 | 2069 | * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() |
2070 | 2070 | * @return mysqli_warning|false |
2071 | 2071 | */ |
2072 | -function mysqli_get_warnings(mysqli $mysql): mysqli_warning|false {} |
|
2072 | +function mysqli_get_warnings(mysqli $mysql): mysqli_warning | false {} |
|
2073 | 2073 | |
2074 | 2074 | /** |
2075 | 2075 | * Initializes MySQLi and returns a resource for use with mysqli_real_connect() |
@@ -2077,7 +2077,7 @@ discard block |
||
2077 | 2077 | * @return mysqli|false |
2078 | 2078 | * @see mysqli_real_connect() |
2079 | 2079 | */ |
2080 | -function mysqli_init(): mysqli|false {} |
|
2080 | +function mysqli_init(): mysqli | false {} |
|
2081 | 2081 | |
2082 | 2082 | /** |
2083 | 2083 | * Retrieves information about the most recently executed query |
@@ -2094,7 +2094,7 @@ discard block |
||
2094 | 2094 | * @return int|string The value of the AUTO_INCREMENT field that was updated by the previous query. Returns zero if there was no previous query on the connection or if the query did not update an AUTO_INCREMENT value. |
2095 | 2095 | * If the number is greater than maximal int value, mysqli_insert_id() will return a string. |
2096 | 2096 | */ |
2097 | -function mysqli_insert_id(mysqli $mysql): string|int {} |
|
2097 | +function mysqli_insert_id(mysqli $mysql): string | int {} |
|
2098 | 2098 | |
2099 | 2099 | /** |
2100 | 2100 | * Asks the server to kill a MySQL thread |
@@ -2141,8 +2141,8 @@ discard block |
||
2141 | 2141 | */ |
2142 | 2142 | function mysqli_multi_query( |
2143 | 2143 | mysqli $mysql, |
2144 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] string $query = null, |
|
2145 | - #[PhpStormStubsElementAvailable(from: '8.0')] string $query |
|
2144 | + #[PhpStormStubsElementAvailable(from : '5.3', to : '7.4')] string $query = null, |
|
2145 | + #[PhpStormStubsElementAvailable(from : '8.0')] string $query |
|
2146 | 2146 | ): bool {} |
2147 | 2147 | |
2148 | 2148 | /** |
@@ -2169,7 +2169,7 @@ discard block |
||
2169 | 2169 | * mysqli_store_result() or mysqli_use_result(). |
2170 | 2170 | * @return string|int Returns number of rows in the result set. |
2171 | 2171 | */ |
2172 | -function mysqli_num_rows(mysqli_result $result): string|int {} |
|
2172 | +function mysqli_num_rows(mysqli_result $result): string | int {} |
|
2173 | 2173 | |
2174 | 2174 | /** |
2175 | 2175 | * Set options |
@@ -2199,7 +2199,7 @@ discard block |
||
2199 | 2199 | * @param int $microseconds [optional] |
2200 | 2200 | * @return int|false number of ready connections upon success, FALSE otherwise. |
2201 | 2201 | */ |
2202 | -function mysqli_poll(?array &$read, ?array &$error, array &$reject, int $seconds, int $microseconds = 0): int|false {} |
|
2202 | +function mysqli_poll(?array &$read, ?array &$error, array &$reject, int $seconds, int $microseconds = 0): int | false {} |
|
2203 | 2203 | |
2204 | 2204 | /** |
2205 | 2205 | * Prepare an SQL statement for execution |
@@ -2208,7 +2208,7 @@ discard block |
||
2208 | 2208 | * @param string $query |
2209 | 2209 | * @return mysqli_stmt|false A statement object or FALSE if an error occurred. |
2210 | 2210 | */ |
2211 | -function mysqli_prepare(mysqli $mysql, string $query): mysqli_stmt|false {} |
|
2211 | +function mysqli_prepare(mysqli $mysql, string $query): mysqli_stmt | false {} |
|
2212 | 2212 | |
2213 | 2213 | /** |
2214 | 2214 | * Enables or disables internal report functions |
@@ -2260,7 +2260,7 @@ discard block |
||
2260 | 2260 | * For other successful queries mysqli_query() will return TRUE. |
2261 | 2261 | * Returns FALSE on failure. |
2262 | 2262 | */ |
2263 | -function mysqli_query(mysqli $mysql, string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result|bool {} |
|
2263 | +function mysqli_query(mysqli $mysql, string $query, int $result_mode = MYSQLI_STORE_RESULT): mysqli_result | bool {} |
|
2264 | 2264 | |
2265 | 2265 | /** |
2266 | 2266 | * Opens a connection to a mysql server |
@@ -2297,8 +2297,8 @@ discard block |
||
2297 | 2297 | */ |
2298 | 2298 | function mysqli_real_query( |
2299 | 2299 | mysqli $mysql, |
2300 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] string $query = null, |
|
2301 | - #[PhpStormStubsElementAvailable(from: '8.0')] string $query |
|
2300 | + #[PhpStormStubsElementAvailable(from : '5.3', to : '7.4')] string $query = null, |
|
2301 | + #[PhpStormStubsElementAvailable(from : '8.0')] string $query |
|
2302 | 2302 | ): bool {} |
2303 | 2303 | |
2304 | 2304 | /** |
@@ -2309,7 +2309,7 @@ discard block |
||
2309 | 2309 | * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() |
2310 | 2310 | * @return mysqli_result|bool mysqli_result in success, FALSE otherwise. |
2311 | 2311 | */ |
2312 | -function mysqli_reap_async_query(mysqli $mysql): mysqli_result|bool {} |
|
2312 | +function mysqli_reap_async_query(mysqli $mysql): mysqli_result | bool {} |
|
2313 | 2313 | |
2314 | 2314 | /** |
2315 | 2315 | * Removes the named savepoint from the set of savepoints of the current transaction |
@@ -2365,7 +2365,7 @@ discard block |
||
2365 | 2365 | * @param mysqli_stmt $statement |
2366 | 2366 | * @return int|string If the number of affected rows is greater than maximal PHP int value, the number of affected rows will be returned as a string value. |
2367 | 2367 | */ |
2368 | -function mysqli_stmt_affected_rows(mysqli_stmt $statement): string|int {} |
|
2368 | +function mysqli_stmt_affected_rows(mysqli_stmt $statement): string | int {} |
|
2369 | 2369 | |
2370 | 2370 | /** |
2371 | 2371 | * Used to get the current value of a statement attribute |
@@ -2374,8 +2374,8 @@ discard block |
||
2374 | 2374 | * @param int $attribute |
2375 | 2375 | * @return int|false Returns FALSE if the attribute is not found, otherwise returns the value of the attribute. |
2376 | 2376 | */ |
2377 | -#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")] |
|
2378 | -function mysqli_stmt_attr_get(mysqli_stmt $statement, int $attribute): false|int {} |
|
2377 | +#[LanguageLevelTypeAware(["8.0" => "int"], default : "int|false")] |
|
2378 | +function mysqli_stmt_attr_get(mysqli_stmt $statement, int $attribute): false | int {} |
|
2379 | 2379 | |
2380 | 2380 | /** |
2381 | 2381 | * Used to modify the behavior of a prepared statement |
@@ -2401,7 +2401,7 @@ discard block |
||
2401 | 2401 | * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() |
2402 | 2402 | * @return mysqli_stmt|false |
2403 | 2403 | */ |
2404 | -function mysqli_stmt_init(mysqli $mysql): mysqli_stmt|false {} |
|
2404 | +function mysqli_stmt_init(mysqli $mysql): mysqli_stmt | false {} |
|
2405 | 2405 | |
2406 | 2406 | /** |
2407 | 2407 | * Prepare an SQL statement for execution |
@@ -2418,7 +2418,7 @@ discard block |
||
2418 | 2418 | * @param mysqli_stmt $statement |
2419 | 2419 | * @return mysqli_result|false Returns a result object or FALSE if an error occurred |
2420 | 2420 | */ |
2421 | -function mysqli_stmt_result_metadata(mysqli_stmt $statement): mysqli_result|false {} |
|
2421 | +function mysqli_stmt_result_metadata(mysqli_stmt $statement): mysqli_result | false {} |
|
2422 | 2422 | |
2423 | 2423 | /** |
2424 | 2424 | * Send data in blocks |
@@ -2471,7 +2471,7 @@ discard block |
||
2471 | 2471 | function mysqli_stmt_bind_param( |
2472 | 2472 | mysqli_stmt $statement, |
2473 | 2473 | string $types, |
2474 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] mixed &$vars, |
|
2474 | + #[PhpStormStubsElementAvailable(from : '5.3', to : '7.4')] mixed &$vars, |
|
2475 | 2475 | mixed &...$vars |
2476 | 2476 | ): bool {} |
2477 | 2477 | |
@@ -2484,7 +2484,7 @@ discard block |
||
2484 | 2484 | */ |
2485 | 2485 | function mysqli_stmt_bind_result( |
2486 | 2486 | mysqli_stmt $statement, |
2487 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] mixed &$vars, |
|
2487 | + #[PhpStormStubsElementAvailable(from : '5.3', to : '7.4')] mixed &$vars, |
|
2488 | 2488 | mixed &...$vars |
2489 | 2489 | ): bool {} |
2490 | 2490 | |
@@ -2510,7 +2510,7 @@ discard block |
||
2510 | 2510 | * @param mysqli_stmt $statement |
2511 | 2511 | * @return mysqli_result|false Returns a resultset or FALSE on failure. |
2512 | 2512 | */ |
2513 | -function mysqli_stmt_get_result(mysqli_stmt $statement): mysqli_result|false {} |
|
2513 | +function mysqli_stmt_get_result(mysqli_stmt $statement): mysqli_result | false {} |
|
2514 | 2514 | |
2515 | 2515 | /** |
2516 | 2516 | * Get result of SHOW WARNINGS |
@@ -2518,7 +2518,7 @@ discard block |
||
2518 | 2518 | * @param mysqli_stmt $statement |
2519 | 2519 | * @return mysqli_warning|false (not documented, but it's probably a mysqli_warning object) |
2520 | 2520 | */ |
2521 | -function mysqli_stmt_get_warnings(mysqli_stmt $statement): mysqli_warning|false {} |
|
2521 | +function mysqli_stmt_get_warnings(mysqli_stmt $statement): mysqli_warning | false {} |
|
2522 | 2522 | |
2523 | 2523 | /** |
2524 | 2524 | * Get the ID generated from the previous INSERT operation |
@@ -2526,7 +2526,7 @@ discard block |
||
2526 | 2526 | * @param mysqli_stmt $statement |
2527 | 2527 | * @return string|int |
2528 | 2528 | */ |
2529 | -function mysqli_stmt_insert_id(mysqli_stmt $statement): string|int {} |
|
2529 | +function mysqli_stmt_insert_id(mysqli_stmt $statement): string | int {} |
|
2530 | 2530 | |
2531 | 2531 | /** |
2532 | 2532 | * Resets a prepared statement |
@@ -2558,7 +2558,7 @@ discard block |
||
2558 | 2558 | * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() |
2559 | 2559 | * @return string|false A string describing the server status. FALSE if an error occurred. |
2560 | 2560 | */ |
2561 | -function mysqli_stat(mysqli $mysql): string|false {} |
|
2561 | +function mysqli_stat(mysqli $mysql): string | false {} |
|
2562 | 2562 | |
2563 | 2563 | /** |
2564 | 2564 | * Used for establishing secure connections using SSL |
@@ -2573,11 +2573,11 @@ discard block |
||
2573 | 2573 | */ |
2574 | 2574 | function mysqli_ssl_set( |
2575 | 2575 | mysqli $mysql, |
2576 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $key, |
|
2577 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $certificate, |
|
2578 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $ca_certificate, |
|
2579 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $ca_path, |
|
2580 | - #[LanguageLevelTypeAware(['8.0' => 'string|null'], default: 'string')] $cipher_algos |
|
2576 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : 'string')] $key, |
|
2577 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : 'string')] $certificate, |
|
2578 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : 'string')] $ca_certificate, |
|
2579 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : 'string')] $ca_path, |
|
2580 | + #[LanguageLevelTypeAware(['8.0' => 'string|null'], default : 'string')] $cipher_algos |
|
2581 | 2581 | ): bool {} |
2582 | 2582 | |
2583 | 2583 | /** |
@@ -2635,7 +2635,7 @@ discard block |
||
2635 | 2635 | * @param mysqli_stmt $statement |
2636 | 2636 | * @return string|int |
2637 | 2637 | */ |
2638 | -function mysqli_stmt_num_rows(mysqli_stmt $statement): string|int {} |
|
2638 | +function mysqli_stmt_num_rows(mysqli_stmt $statement): string | int {} |
|
2639 | 2639 | |
2640 | 2640 | /** |
2641 | 2641 | * Returns SQLSTATE error from previous statement operation |
@@ -2660,7 +2660,7 @@ discard block |
||
2660 | 2660 | * @param int $mode [optional] The option that you want to set |
2661 | 2661 | * @return mysqli_result|false |
2662 | 2662 | */ |
2663 | -function mysqli_store_result(mysqli $mysql, int $mode): mysqli_result|false {} |
|
2663 | +function mysqli_store_result(mysqli $mysql, int $mode): mysqli_result | false {} |
|
2664 | 2664 | |
2665 | 2665 | /** |
2666 | 2666 | * Returns the thread ID for the current connection |
@@ -2683,7 +2683,7 @@ discard block |
||
2683 | 2683 | * @param mysqli $mysql A link identifier returned by mysqli_connect() or mysqli_init() |
2684 | 2684 | * @return mysqli_result|false |
2685 | 2685 | */ |
2686 | -function mysqli_use_result(mysqli $mysql): mysqli_result|false {} |
|
2686 | +function mysqli_use_result(mysqli $mysql): mysqli_result | false {} |
|
2687 | 2687 | |
2688 | 2688 | /** |
2689 | 2689 | * Returns the number of warnings from the last query for the given link |
@@ -2709,7 +2709,7 @@ discard block |
||
2709 | 2709 | * @param string $types |
2710 | 2710 | * @removed 5.4 |
2711 | 2711 | */ |
2712 | -#[Deprecated(since: '5.3')] |
|
2712 | +#[Deprecated(since : '5.3')] |
|
2713 | 2713 | function mysqli_bind_param(mysqli_stmt $statement, string $types) {} |
2714 | 2714 | |
2715 | 2715 | /** |
@@ -2720,7 +2720,7 @@ discard block |
||
2720 | 2720 | * @param mixed &$var1 |
2721 | 2721 | * @removed 5.4 |
2722 | 2722 | */ |
2723 | -#[Deprecated(since: '5.3')] |
|
2723 | +#[Deprecated(since : '5.3')] |
|
2724 | 2724 | function mysqli_bind_result(mysqli_stmt $statement, string $types, mixed &$var1) {} |
2725 | 2725 | |
2726 | 2726 | /** |
@@ -2730,7 +2730,7 @@ discard block |
||
2730 | 2730 | * @return string |
2731 | 2731 | * @removed 5.4 |
2732 | 2732 | */ |
2733 | -#[Deprecated(since: '5.3')] |
|
2733 | +#[Deprecated(since : '5.3')] |
|
2734 | 2734 | function mysqli_client_encoding(mysqli $mysql): string {} |
2735 | 2735 | |
2736 | 2736 | /** |
@@ -2743,7 +2743,7 @@ discard block |
||
2743 | 2743 | function mysqli_escape_string( |
2744 | 2744 | mysqli $mysql, |
2745 | 2745 | string $string, |
2746 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] $resultmode = null |
|
2746 | + #[PhpStormStubsElementAvailable(from : '5.3', to : '7.4')] $resultmode = null |
|
2747 | 2747 | ): string {} |
2748 | 2748 | |
2749 | 2749 | /** |
@@ -2753,7 +2753,7 @@ discard block |
||
2753 | 2753 | * @return bool |
2754 | 2754 | * @removed 5.4 |
2755 | 2755 | */ |
2756 | -#[Deprecated(since: '5.3')] |
|
2756 | +#[Deprecated(since : '5.3')] |
|
2757 | 2757 | function mysqli_fetch(mysqli_stmt $statement): bool {} |
2758 | 2758 | |
2759 | 2759 | /** |
@@ -2763,7 +2763,7 @@ discard block |
||
2763 | 2763 | * @return int |
2764 | 2764 | * @removed 5.4 |
2765 | 2765 | */ |
2766 | -#[Deprecated(since: '5.3')] |
|
2766 | +#[Deprecated(since : '5.3')] |
|
2767 | 2767 | function mysqli_param_count(mysqli_stmt $statement): int {} |
2768 | 2768 | |
2769 | 2769 | /** |
@@ -2773,8 +2773,8 @@ discard block |
||
2773 | 2773 | * @return mysqli_result|false Returns a result object or FALSE if an error occurred |
2774 | 2774 | * @removed 5.4 |
2775 | 2775 | */ |
2776 | -#[Deprecated(since: '5.3')] |
|
2777 | -function mysqli_get_metadata(mysqli_stmt $statement): false|mysqli_result {} |
|
2776 | +#[Deprecated(since : '5.3')] |
|
2777 | +function mysqli_get_metadata(mysqli_stmt $statement): false | mysqli_result {} |
|
2778 | 2778 | |
2779 | 2779 | /** |
2780 | 2780 | * Alias for <b>mysqli_stmt_send_long_data</b> |
@@ -2785,7 +2785,7 @@ discard block |
||
2785 | 2785 | * @return bool |
2786 | 2786 | * @removed 5.4 |
2787 | 2787 | */ |
2788 | -#[Deprecated(since: '5.3')] |
|
2788 | +#[Deprecated(since : '5.3')] |
|
2789 | 2789 | function mysqli_send_long_data(mysqli_stmt $statement, int $param_num, string $data): bool {} |
2790 | 2790 | |
2791 | 2791 | /** |
@@ -2797,9 +2797,9 @@ discard block |
||
2797 | 2797 | * @return bool |
2798 | 2798 | */ |
2799 | 2799 | function mysqli_set_opt( |
2800 | - #[PhpStormStubsElementAvailable(from: '8.0')] mysqli $mysql, |
|
2801 | - #[PhpStormStubsElementAvailable(from: '8.0')] int $option, |
|
2802 | - #[PhpStormStubsElementAvailable(from: '8.0')] $value |
|
2800 | + #[PhpStormStubsElementAvailable(from : '8.0')] mysqli $mysql, |
|
2801 | + #[PhpStormStubsElementAvailable(from : '8.0')] int $option, |
|
2802 | + #[PhpStormStubsElementAvailable(from : '8.0')] $value |
|
2803 | 2803 | ): bool {} |
2804 | 2804 | |
2805 | 2805 | /** |
@@ -12,8 +12,7 @@ discard block |
||
12 | 12 | /** |
13 | 13 | * mysqli_sql_exception |
14 | 14 | */ |
15 | -final class mysqli_sql_exception extends RuntimeException |
|
16 | -{ |
|
15 | +final class mysqli_sql_exception extends RuntimeException { |
|
17 | 16 | /** |
18 | 17 | * The sql state with the error. |
19 | 18 | * |
@@ -34,8 +33,7 @@ discard block |
||
34 | 33 | * MySQLi Driver. |
35 | 34 | * @link https://php.net/manual/en/class.mysqli-driver.php |
36 | 35 | */ |
37 | -final class mysqli_driver |
|
38 | -{ |
|
36 | +final class mysqli_driver { |
|
39 | 37 | /** |
40 | 38 | * @var string |
41 | 39 | */ |
@@ -71,8 +69,7 @@ discard block |
||
71 | 69 | * Represents a connection between PHP and a MySQL database. |
72 | 70 | * @link https://php.net/manual/en/class.mysqli.php |
73 | 71 | */ |
74 | -class mysqli |
|
75 | -{ |
|
72 | +class mysqli { |
|
76 | 73 | /** |
77 | 74 | * @var int |
78 | 75 | */ |
@@ -860,8 +857,7 @@ discard block |
||
860 | 857 | * Represents one or more MySQL warnings. |
861 | 858 | * @link https://php.net/manual/en/class.mysqli-warning.php |
862 | 859 | */ |
863 | -final class mysqli_warning |
|
864 | -{ |
|
860 | +final class mysqli_warning { |
|
865 | 861 | /** |
866 | 862 | * @var string |
867 | 863 | */ |
@@ -905,8 +901,7 @@ discard block |
||
905 | 901 | * Implements Traversable since 5.4 |
906 | 902 | * @link https://php.net/manual/en/class.mysqli-result.php |
907 | 903 | */ |
908 | -class mysqli_result implements IteratorAggregate |
|
909 | -{ |
|
904 | +class mysqli_result implements IteratorAggregate { |
|
910 | 905 | /** |
911 | 906 | * @var int |
912 | 907 | */ |
@@ -1283,8 +1278,7 @@ discard block |
||
1283 | 1278 | * Represents a prepared statement. |
1284 | 1279 | * @link https://php.net/manual/en/class.mysqli-stmt.php |
1285 | 1280 | */ |
1286 | -class mysqli_stmt |
|
1287 | -{ |
|
1281 | +class mysqli_stmt { |
|
1288 | 1282 | /** |
1289 | 1283 | * @var int |
1290 | 1284 | */ |
@@ -460,8 +460,8 @@ |
||
460 | 460 | * @since 7.1 |
461 | 461 | */ |
462 | 462 | function pcntl_async_signals( |
463 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] ?bool $enable, |
|
464 | - #[PhpStormStubsElementAvailable(from: '8.0')] ?bool $enable = null |
|
463 | + #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] ?bool $enable, |
|
464 | + #[PhpStormStubsElementAvailable(from: '8.0')] ?bool $enable = null |
|
465 | 465 | ): bool {} |
466 | 466 | |
467 | 467 | /** |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | * @return int|false the return code, as an integer. |
226 | 226 | */ |
227 | 227 | #[Pure] |
228 | -function pcntl_wexitstatus(int $status): int|false {} |
|
228 | +function pcntl_wexitstatus(int $status): int | false {} |
|
229 | 229 | |
230 | 230 | /** |
231 | 231 | * @param int $status |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | * @return int|false the signal number, as an integer. |
244 | 244 | */ |
245 | 245 | #[Pure] |
246 | -function pcntl_wtermsig(int $status): int|false {} |
|
246 | +function pcntl_wtermsig(int $status): int | false {} |
|
247 | 247 | |
248 | 248 | /** |
249 | 249 | * Returns the signal which caused the child to stop |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | * @return int|false the signal number. |
255 | 255 | */ |
256 | 256 | #[Pure] |
257 | -function pcntl_wstopsig(int $status): int|false {} |
|
257 | +function pcntl_wstopsig(int $status): int | false {} |
|
258 | 258 | |
259 | 259 | /** |
260 | 260 | * Executes specified program in current process space |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | */ |
321 | 321 | #[Pure] |
322 | 322 | #[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")] |
323 | -function pcntl_strerror(int $error_code): false|string {} |
|
323 | +function pcntl_strerror(int $error_code): false | string {} |
|
324 | 324 | |
325 | 325 | /** |
326 | 326 | * Get the priority of any process |
@@ -337,7 +337,7 @@ discard block |
||
337 | 337 | * scheduling. |
338 | 338 | */ |
339 | 339 | #[Pure] |
340 | -function pcntl_getpriority(?int $process_id, int $mode = PRIO_PROCESS): int|false {} |
|
340 | +function pcntl_getpriority(?int $process_id, int $mode = PRIO_PROCESS): int | false {} |
|
341 | 341 | |
342 | 342 | /** |
343 | 343 | * Change the priority of any process |
@@ -423,7 +423,7 @@ discard block |
||
423 | 423 | * </p> |
424 | 424 | * @return int|false On success, <b>pcntl_sigwaitinfo</b> returns a signal number. |
425 | 425 | */ |
426 | -function pcntl_sigwaitinfo(array $signals, &$info): int|false {} |
|
426 | +function pcntl_sigwaitinfo(array $signals, &$info): int | false {} |
|
427 | 427 | |
428 | 428 | /** |
429 | 429 | * Waits for signals, with a timeout |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | * </p> |
445 | 445 | * @return int|false On success, <b>pcntl_sigtimedwait</b> returns a signal number. |
446 | 446 | */ |
447 | -function pcntl_sigtimedwait(array $signals, &$info, int $seconds = 0, int $nanoseconds = 0): int|false {} |
|
447 | +function pcntl_sigtimedwait(array $signals, &$info, int $seconds = 0, int $nanoseconds = 0): int | false {} |
|
448 | 448 | |
449 | 449 | /** |
450 | 450 | * Enable/disable asynchronous signal handling or return the old setting.<br> |
@@ -460,8 +460,8 @@ discard block |
||
460 | 460 | * @since 7.1 |
461 | 461 | */ |
462 | 462 | function pcntl_async_signals( |
463 | - #[PhpStormStubsElementAvailable(from: '5.3', to: '7.4')] ?bool $enable, |
|
464 | - #[PhpStormStubsElementAvailable(from: '8.0')] ?bool $enable = null |
|
463 | + #[PhpStormStubsElementAvailable(from : '5.3', to : '7.4')] ?bool $enable, |
|
464 | + #[PhpStormStubsElementAvailable(from : '8.0')] ?bool $enable = null |
|
465 | 465 | ): bool {} |
466 | 466 | |
467 | 467 | /** |
@@ -78,10 +78,10 @@ discard block |
||
78 | 78 | * @return string |
79 | 79 | */ |
80 | 80 | function crypto_aead_aes256gcm_decrypt( |
81 | - string $msg, |
|
82 | - string $nonce, |
|
83 | - string $key, |
|
84 | - string $ad = '' |
|
81 | + string $msg, |
|
82 | + string $nonce, |
|
83 | + string $key, |
|
84 | + string $ad = '' |
|
85 | 85 | ): string {} |
86 | 86 | |
87 | 87 | /** |
@@ -95,10 +95,10 @@ discard block |
||
95 | 95 | * @return string |
96 | 96 | */ |
97 | 97 | function crypto_aead_aes256gcm_encrypt( |
98 | - string $msg, |
|
99 | - string $nonce, |
|
100 | - string $key, |
|
101 | - string $ad = '' |
|
98 | + string $msg, |
|
99 | + string $nonce, |
|
100 | + string $key, |
|
101 | + string $ad = '' |
|
102 | 102 | ): string {} |
103 | 103 | |
104 | 104 | /** |
@@ -112,10 +112,10 @@ discard block |
||
112 | 112 | * @return string |
113 | 113 | */ |
114 | 114 | function crypto_aead_chacha20poly1305_decrypt( |
115 | - string $msg, |
|
116 | - string $nonce, |
|
117 | - string $key, |
|
118 | - string $ad = '' |
|
115 | + string $msg, |
|
116 | + string $nonce, |
|
117 | + string $key, |
|
118 | + string $ad = '' |
|
119 | 119 | ): string {} |
120 | 120 | |
121 | 121 | /** |
@@ -129,10 +129,10 @@ discard block |
||
129 | 129 | * @return string |
130 | 130 | */ |
131 | 131 | function crypto_aead_chacha20poly1305_encrypt( |
132 | - string $msg, |
|
133 | - string $nonce, |
|
134 | - string $key, |
|
135 | - string $ad = '' |
|
132 | + string $msg, |
|
133 | + string $nonce, |
|
134 | + string $key, |
|
135 | + string $ad = '' |
|
136 | 136 | ): string {} |
137 | 137 | |
138 | 138 | /** |
@@ -144,8 +144,8 @@ discard block |
||
144 | 144 | * @return string |
145 | 145 | */ |
146 | 146 | function crypto_auth( |
147 | - string $msg, |
|
148 | - string $key |
|
147 | + string $msg, |
|
148 | + string $key |
|
149 | 149 | ): string {} |
150 | 150 | |
151 | 151 | /** |
@@ -158,9 +158,9 @@ discard block |
||
158 | 158 | * @return bool |
159 | 159 | */ |
160 | 160 | function crypto_auth_verify( |
161 | - string $mac, |
|
162 | - string $msg, |
|
163 | - string $key |
|
161 | + string $mac, |
|
162 | + string $msg, |
|
163 | + string $key |
|
164 | 164 | ): bool {} |
165 | 165 | |
166 | 166 | /** |
@@ -173,9 +173,9 @@ discard block |
||
173 | 173 | * @return string |
174 | 174 | */ |
175 | 175 | function crypto_box( |
176 | - string $msg, |
|
177 | - string $nonce, |
|
178 | - string $keypair |
|
176 | + string $msg, |
|
177 | + string $nonce, |
|
178 | + string $keypair |
|
179 | 179 | ): string {} |
180 | 180 | |
181 | 181 | /** |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @return string |
193 | 193 | */ |
194 | 194 | function crypto_box_seed_keypair( |
195 | - string $seed |
|
195 | + string $seed |
|
196 | 196 | ): string {} |
197 | 197 | |
198 | 198 | /** |
@@ -203,8 +203,8 @@ discard block |
||
203 | 203 | * @return string |
204 | 204 | */ |
205 | 205 | function crypto_box_keypair_from_secretkey_and_publickey( |
206 | - string $secretkey, |
|
207 | - string $publickey |
|
206 | + string $secretkey, |
|
207 | + string $publickey |
|
208 | 208 | ): string {} |
209 | 209 | |
210 | 210 | /** |
@@ -217,9 +217,9 @@ discard block |
||
217 | 217 | * @return string |
218 | 218 | */ |
219 | 219 | function crypto_box_open( |
220 | - string $msg, |
|
221 | - string $nonce, |
|
222 | - string $keypair |
|
220 | + string $msg, |
|
221 | + string $nonce, |
|
222 | + string $keypair |
|
223 | 223 | ): string {} |
224 | 224 | |
225 | 225 | /** |
@@ -229,7 +229,7 @@ discard block |
||
229 | 229 | * @return string |
230 | 230 | */ |
231 | 231 | function crypto_box_publickey( |
232 | - string $keypair |
|
232 | + string $keypair |
|
233 | 233 | ): string {} |
234 | 234 | |
235 | 235 | /** |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | * @return string |
240 | 240 | */ |
241 | 241 | function crypto_box_publickey_from_secretkey( |
242 | - string $secretkey |
|
242 | + string $secretkey |
|
243 | 243 | ): string {} |
244 | 244 | |
245 | 245 | /** |
@@ -251,8 +251,8 @@ discard block |
||
251 | 251 | * @return string |
252 | 252 | */ |
253 | 253 | function crypto_box_seal( |
254 | - string $message, |
|
255 | - string $publickey |
|
254 | + string $message, |
|
255 | + string $publickey |
|
256 | 256 | ): string {} |
257 | 257 | |
258 | 258 | /** |
@@ -264,8 +264,8 @@ discard block |
||
264 | 264 | * @return string |
265 | 265 | */ |
266 | 266 | function crypto_box_seal_open( |
267 | - string $encrypted, |
|
268 | - string $keypair |
|
267 | + string $encrypted, |
|
268 | + string $keypair |
|
269 | 269 | ): string {} |
270 | 270 | |
271 | 271 | /** |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | * @return string |
276 | 276 | */ |
277 | 277 | function crypto_box_secretkey( |
278 | - string $keypair |
|
278 | + string $keypair |
|
279 | 279 | ): string {} |
280 | 280 | |
281 | 281 | /** |
@@ -289,10 +289,10 @@ discard block |
||
289 | 289 | * @return string |
290 | 290 | */ |
291 | 291 | function crypto_kx( |
292 | - string $secretkey, |
|
293 | - string $publickey, |
|
294 | - string $client_publickey, |
|
295 | - string $server_publickey |
|
292 | + string $secretkey, |
|
293 | + string $publickey, |
|
294 | + string $client_publickey, |
|
295 | + string $server_publickey |
|
296 | 296 | ): string {} |
297 | 297 | |
298 | 298 | /** |
@@ -304,9 +304,9 @@ discard block |
||
304 | 304 | * @return string |
305 | 305 | */ |
306 | 306 | function crypto_generichash( |
307 | - string $input, |
|
308 | - string $key = '', |
|
309 | - int $length = 32 |
|
307 | + string $input, |
|
308 | + string $key = '', |
|
309 | + int $length = 32 |
|
310 | 310 | ): string {} |
311 | 311 | |
312 | 312 | /** |
@@ -318,8 +318,8 @@ discard block |
||
318 | 318 | * @return string |
319 | 319 | */ |
320 | 320 | function crypto_generichash_init( |
321 | - string $key = '', |
|
322 | - int $length = 32 |
|
321 | + string $key = '', |
|
322 | + int $length = 32 |
|
323 | 323 | ): string {} |
324 | 324 | |
325 | 325 | /** |
@@ -331,8 +331,8 @@ discard block |
||
331 | 331 | * @return bool |
332 | 332 | */ |
333 | 333 | function crypto_generichash_update( |
334 | - string &$hashState, |
|
335 | - string $append |
|
334 | + string &$hashState, |
|
335 | + string $append |
|
336 | 336 | ): bool {} |
337 | 337 | |
338 | 338 | /** |
@@ -344,8 +344,8 @@ discard block |
||
344 | 344 | * @return string |
345 | 345 | */ |
346 | 346 | function crypto_generichash_final( |
347 | - string $state, |
|
348 | - int $length = 32 |
|
347 | + string $state, |
|
348 | + int $length = 32 |
|
349 | 349 | ): string {} |
350 | 350 | |
351 | 351 | /** |
@@ -360,11 +360,11 @@ discard block |
||
360 | 360 | * @return string |
361 | 361 | */ |
362 | 362 | function crypto_pwhash( |
363 | - int $out_len, |
|
364 | - string $passwd, |
|
365 | - string $salt, |
|
366 | - int $opslimit, |
|
367 | - int $memlimit |
|
363 | + int $out_len, |
|
364 | + string $passwd, |
|
365 | + string $salt, |
|
366 | + int $opslimit, |
|
367 | + int $memlimit |
|
368 | 368 | ): string {} |
369 | 369 | |
370 | 370 | /** |
@@ -377,9 +377,9 @@ discard block |
||
377 | 377 | * @return string |
378 | 378 | */ |
379 | 379 | function crypto_pwhash_str( |
380 | - string $passwd, |
|
381 | - int $opslimit, |
|
382 | - int $memlimit |
|
380 | + string $passwd, |
|
381 | + int $opslimit, |
|
382 | + int $memlimit |
|
383 | 383 | ): string {} |
384 | 384 | |
385 | 385 | /** |
@@ -391,8 +391,8 @@ discard block |
||
391 | 391 | * @return bool |
392 | 392 | */ |
393 | 393 | function crypto_pwhash_str_verify( |
394 | - string $hash, |
|
395 | - string $passwd |
|
394 | + string $hash, |
|
395 | + string $passwd |
|
396 | 396 | ): bool {} |
397 | 397 | |
398 | 398 | /** |
@@ -407,11 +407,11 @@ discard block |
||
407 | 407 | * @return string |
408 | 408 | */ |
409 | 409 | function crypto_pwhash_scryptsalsa208sha256( |
410 | - int $out_len, |
|
411 | - string $passwd, |
|
412 | - string $salt, |
|
413 | - int $opslimit, |
|
414 | - int $memlimit |
|
410 | + int $out_len, |
|
411 | + string $passwd, |
|
412 | + string $salt, |
|
413 | + int $opslimit, |
|
414 | + int $memlimit |
|
415 | 415 | ): string {} |
416 | 416 | |
417 | 417 | /** |
@@ -424,9 +424,9 @@ discard block |
||
424 | 424 | * @return string |
425 | 425 | */ |
426 | 426 | function crypto_pwhash_scryptsalsa208sha256_str( |
427 | - string $passwd, |
|
428 | - int $opslimit, |
|
429 | - int $memlimit |
|
427 | + string $passwd, |
|
428 | + int $opslimit, |
|
429 | + int $memlimit |
|
430 | 430 | ): string {} |
431 | 431 | |
432 | 432 | /** |
@@ -438,8 +438,8 @@ discard block |
||
438 | 438 | * @return bool |
439 | 439 | */ |
440 | 440 | function crypto_pwhash_scryptsalsa208sha256_str_verify( |
441 | - string $hash, |
|
442 | - string $passwd |
|
441 | + string $hash, |
|
442 | + string $passwd |
|
443 | 443 | ): bool {} |
444 | 444 | |
445 | 445 | /** |
@@ -451,8 +451,8 @@ discard block |
||
451 | 451 | * @return string |
452 | 452 | */ |
453 | 453 | function crypto_scalarmult( |
454 | - string $ecdhA, |
|
455 | - string $ecdhB |
|
454 | + string $ecdhA, |
|
455 | + string $ecdhB |
|
456 | 456 | ): string {} |
457 | 457 | |
458 | 458 | /** |
@@ -465,9 +465,9 @@ discard block |
||
465 | 465 | * @return string |
466 | 466 | */ |
467 | 467 | function crypto_secretbox( |
468 | - string $plaintext, |
|
469 | - string $nonce, |
|
470 | - string $key |
|
468 | + string $plaintext, |
|
469 | + string $nonce, |
|
470 | + string $key |
|
471 | 471 | ): string {} |
472 | 472 | |
473 | 473 | /** |
@@ -480,9 +480,9 @@ discard block |
||
480 | 480 | * @return string |
481 | 481 | */ |
482 | 482 | function crypto_secretbox_open( |
483 | - string $ciphertext, |
|
484 | - string $nonce, |
|
485 | - string $key |
|
483 | + string $ciphertext, |
|
484 | + string $nonce, |
|
485 | + string $key |
|
486 | 486 | ): string {} |
487 | 487 | |
488 | 488 | /** |
@@ -494,8 +494,8 @@ discard block |
||
494 | 494 | * @return string |
495 | 495 | */ |
496 | 496 | function crypto_shorthash( |
497 | - string $message, |
|
498 | - string $key |
|
497 | + string $message, |
|
498 | + string $key |
|
499 | 499 | ): string {} |
500 | 500 | |
501 | 501 | /** |
@@ -507,8 +507,8 @@ discard block |
||
507 | 507 | * @return string |
508 | 508 | */ |
509 | 509 | function crypto_sign( |
510 | - string $message, |
|
511 | - string $secretkey |
|
510 | + string $message, |
|
511 | + string $secretkey |
|
512 | 512 | ): string {} |
513 | 513 | |
514 | 514 | /** |
@@ -520,8 +520,8 @@ discard block |
||
520 | 520 | * @return string |
521 | 521 | */ |
522 | 522 | function crypto_sign_detached( |
523 | - string $message, |
|
524 | - string $secretkey |
|
523 | + string $message, |
|
524 | + string $secretkey |
|
525 | 525 | ): string {} |
526 | 526 | |
527 | 527 | /** |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | * @return string |
532 | 532 | */ |
533 | 533 | function crypto_sign_ed25519_pk_to_curve25519( |
534 | - string $sign_pk |
|
534 | + string $sign_pk |
|
535 | 535 | ): string {} |
536 | 536 | |
537 | 537 | /** |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | * @return string |
542 | 542 | */ |
543 | 543 | function crypto_sign_ed25519_sk_to_curve25519( |
544 | - string $sign_sk |
|
544 | + string $sign_sk |
|
545 | 545 | ): string {} |
546 | 546 | |
547 | 547 | /** |
@@ -559,8 +559,8 @@ discard block |
||
559 | 559 | * @return string |
560 | 560 | */ |
561 | 561 | function crypto_sign_keypair_from_secretkey_and_publickey( |
562 | - string $secretkey, |
|
563 | - string $publickey |
|
562 | + string $secretkey, |
|
563 | + string $publickey |
|
564 | 564 | ): string {} |
565 | 565 | |
566 | 566 | /** |
@@ -571,8 +571,8 @@ discard block |
||
571 | 571 | * @return string |
572 | 572 | */ |
573 | 573 | function crypto_sign_open( |
574 | - string $signed_message, |
|
575 | - string $publickey |
|
574 | + string $signed_message, |
|
575 | + string $publickey |
|
576 | 576 | ): string {} |
577 | 577 | |
578 | 578 | /** |
@@ -582,7 +582,7 @@ discard block |
||
582 | 582 | * @return string |
583 | 583 | */ |
584 | 584 | function crypto_sign_publickey( |
585 | - string $keypair |
|
585 | + string $keypair |
|
586 | 586 | ): string {} |
587 | 587 | |
588 | 588 | /** |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | * @return string |
593 | 593 | */ |
594 | 594 | function crypto_sign_secretkey( |
595 | - string $keypair |
|
595 | + string $keypair |
|
596 | 596 | ): string {} |
597 | 597 | |
598 | 598 | /** |
@@ -602,7 +602,7 @@ discard block |
||
602 | 602 | * @return string |
603 | 603 | */ |
604 | 604 | function crypto_sign_publickey_from_secretkey( |
605 | - string $secretkey |
|
605 | + string $secretkey |
|
606 | 606 | ): string {} |
607 | 607 | |
608 | 608 | /** |
@@ -612,7 +612,7 @@ discard block |
||
612 | 612 | * @return string |
613 | 613 | */ |
614 | 614 | function crypto_sign_seed_keypair( |
615 | - string $seed |
|
615 | + string $seed |
|
616 | 616 | ): string {} |
617 | 617 | |
618 | 618 | /** |
@@ -624,9 +624,9 @@ discard block |
||
624 | 624 | * @return bool |
625 | 625 | */ |
626 | 626 | function crypto_sign_verify_detached( |
627 | - string $signature, |
|
628 | - string $msg, |
|
629 | - string $publickey |
|
627 | + string $signature, |
|
628 | + string $msg, |
|
629 | + string $publickey |
|
630 | 630 | ): bool {} |
631 | 631 | |
632 | 632 | /** |
@@ -639,9 +639,9 @@ discard block |
||
639 | 639 | * @return string |
640 | 640 | */ |
641 | 641 | function crypto_stream( |
642 | - int $length, |
|
643 | - string $nonce, |
|
644 | - string $key |
|
642 | + int $length, |
|
643 | + string $nonce, |
|
644 | + string $key |
|
645 | 645 | ): string {} |
646 | 646 | |
647 | 647 | /** |
@@ -654,9 +654,9 @@ discard block |
||
654 | 654 | * @return string |
655 | 655 | */ |
656 | 656 | function crypto_stream_xor( |
657 | - string $plaintext, |
|
658 | - string $nonce, |
|
659 | - string $key |
|
657 | + string $plaintext, |
|
658 | + string $nonce, |
|
659 | + string $key |
|
660 | 660 | ): string {} |
661 | 661 | |
662 | 662 | /** |
@@ -667,7 +667,7 @@ discard block |
||
667 | 667 | * @return string|false |
668 | 668 | */ |
669 | 669 | function randombytes_buf( |
670 | - int $length |
|
670 | + int $length |
|
671 | 671 | ): string {} |
672 | 672 | |
673 | 673 | /** |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | * @return int |
687 | 687 | */ |
688 | 688 | function randombytes_uniform( |
689 | - int $upperBoundNonInclusive |
|
689 | + int $upperBoundNonInclusive |
|
690 | 690 | ): int {} |
691 | 691 | |
692 | 692 | /** |
@@ -696,7 +696,7 @@ discard block |
||
696 | 696 | * @return string |
697 | 697 | */ |
698 | 698 | function bin2hex( |
699 | - string $binary |
|
699 | + string $binary |
|
700 | 700 | ): string {} |
701 | 701 | |
702 | 702 | /** |
@@ -707,8 +707,8 @@ discard block |
||
707 | 707 | * @return int |
708 | 708 | */ |
709 | 709 | function compare( |
710 | - string $left, |
|
711 | - string $right |
|
710 | + string $left, |
|
711 | + string $right |
|
712 | 712 | ): int {} |
713 | 713 | |
714 | 714 | /** |
@@ -718,7 +718,7 @@ discard block |
||
718 | 718 | * @return string |
719 | 719 | */ |
720 | 720 | function hex2bin( |
721 | - string $hex |
|
721 | + string $hex |
|
722 | 722 | ): string {} |
723 | 723 | |
724 | 724 | /** |
@@ -728,7 +728,7 @@ discard block |
||
728 | 728 | * @return string |
729 | 729 | */ |
730 | 730 | function increment( |
731 | - string &$nonce |
|
731 | + string &$nonce |
|
732 | 732 | ) {} |
733 | 733 | |
734 | 734 | /** |
@@ -738,8 +738,8 @@ discard block |
||
738 | 738 | * @param string $right |
739 | 739 | */ |
740 | 740 | function add( |
741 | - string &$left, |
|
742 | - string $right |
|
741 | + string &$left, |
|
742 | + string $right |
|
743 | 743 | ) {} |
744 | 744 | |
745 | 745 | /** |
@@ -762,8 +762,8 @@ discard block |
||
762 | 762 | * @return int |
763 | 763 | */ |
764 | 764 | function memcmp( |
765 | - string $left, |
|
766 | - string $right |
|
765 | + string $left, |
|
766 | + string $right |
|
767 | 767 | ): int {} |
768 | 768 | |
769 | 769 | /** |
@@ -264,11 +264,11 @@ |
||
264 | 264 | */ |
265 | 265 | final class SysvMessageQueue |
266 | 266 | { |
267 | - /** |
|
268 | - * Cannot directly construct SysvMessageQueue, use msg_get_queue() instead |
|
269 | - * @see msg_get_queue() |
|
270 | - */ |
|
271 | - private function __construct() {} |
|
267 | + /** |
|
268 | + * Cannot directly construct SysvMessageQueue, use msg_get_queue() instead |
|
269 | + * @see msg_get_queue() |
|
270 | + */ |
|
271 | + private function __construct() {} |
|
272 | 272 | } |
273 | 273 | |
274 | 274 | // End of sysvmsg v. |
@@ -227,7 +227,7 @@ |
||
227 | 227 | * </tr> |
228 | 228 | * </table> |
229 | 229 | */ |
230 | -function msg_stat_queue(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue): array|false {} |
|
230 | +function msg_stat_queue(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], default: "resource")] $queue): array | false {} |
|
231 | 231 | |
232 | 232 | /** |
233 | 233 | * Set information in the message queue data structure |
@@ -262,8 +262,7 @@ |
||
262 | 262 | /** |
263 | 263 | * @since 8.0 |
264 | 264 | */ |
265 | -final class SysvMessageQueue |
|
266 | -{ |
|
265 | +final class SysvMessageQueue { |
|
267 | 266 | /** |
268 | 267 | * Cannot directly construct SysvMessageQueue, use msg_get_queue() instead |
269 | 268 | * @see msg_get_queue() |
@@ -4,91 +4,91 @@ discard block |
||
4 | 4 | |
5 | 5 | class ZendAPI_Queue |
6 | 6 | { |
7 | - public $_jobqueue_url; |
|
8 | - |
|
9 | - /** |
|
10 | - * Constructor for a job queue connection |
|
11 | - * |
|
12 | - * @param string $queue_url Full address where the queue is in the form host:port |
|
13 | - * @return ZendAPI_Queue |
|
14 | - * |
|
15 | - * @removed 8.0 |
|
16 | - */ |
|
17 | - public function zendapi_queue($queue_url) {} |
|
18 | - |
|
19 | - /** |
|
20 | - * Open a connection to a job queue |
|
21 | - * |
|
22 | - * @param string $password For authentication, password must be specified to connect to a queue |
|
23 | - * @param int $application_id Optional, if set, all subsequent calls to job related methods will use this application id (unless explicitly specified otherwise). I.e. When adding new job, |
|
7 | + public $_jobqueue_url; |
|
8 | + |
|
9 | + /** |
|
10 | + * Constructor for a job queue connection |
|
11 | + * |
|
12 | + * @param string $queue_url Full address where the queue is in the form host:port |
|
13 | + * @return ZendAPI_Queue |
|
14 | + * |
|
15 | + * @removed 8.0 |
|
16 | + */ |
|
17 | + public function zendapi_queue($queue_url) {} |
|
18 | + |
|
19 | + /** |
|
20 | + * Open a connection to a job queue |
|
21 | + * |
|
22 | + * @param string $password For authentication, password must be specified to connect to a queue |
|
23 | + * @param int $application_id Optional, if set, all subsequent calls to job related methods will use this application id (unless explicitly specified otherwise). I.e. When adding new job, |
|
24 | 24 | unless this job already set an application id, the job will be assigned the queue application id |
25 | - * @return bool Success |
|
26 | - */ |
|
27 | - public function login($password, $application_id = null) {} |
|
25 | + * @return bool Success |
|
26 | + */ |
|
27 | + public function login($password, $application_id = null) {} |
|
28 | 28 | |
29 | - /** |
|
30 | - * Insert a new job to the queue, the Job is passed by reference because |
|
29 | + /** |
|
30 | + * Insert a new job to the queue, the Job is passed by reference because |
|
31 | 31 | its new job ID and status will be set in the Job object |
32 | - * If the returned job id is 0 it means the job could be added to the queue |
|
33 | - * |
|
34 | - * @param Job $job The Job we want to insert to the queue (by ref.) |
|
35 | - * @return int The inserted job id |
|
36 | - */ |
|
37 | - public function addJob($job) {} |
|
38 | - |
|
39 | - /** |
|
40 | - * Return a Job object that describing a job in the queue |
|
41 | - * |
|
42 | - * @param int $job_id The job id |
|
43 | - * @return Job Object describing a job in the queue |
|
44 | - */ |
|
45 | - public function getJob($job_id) {} |
|
46 | - |
|
47 | - /** |
|
48 | - * Update an existing job in the queue with it's new properties. If job doesn't exists, |
|
32 | + * If the returned job id is 0 it means the job could be added to the queue |
|
33 | + * |
|
34 | + * @param Job $job The Job we want to insert to the queue (by ref.) |
|
35 | + * @return int The inserted job id |
|
36 | + */ |
|
37 | + public function addJob($job) {} |
|
38 | + |
|
39 | + /** |
|
40 | + * Return a Job object that describing a job in the queue |
|
41 | + * |
|
42 | + * @param int $job_id The job id |
|
43 | + * @return Job Object describing a job in the queue |
|
44 | + */ |
|
45 | + public function getJob($job_id) {} |
|
46 | + |
|
47 | + /** |
|
48 | + * Update an existing job in the queue with it's new properties. If job doesn't exists, |
|
49 | 49 | a new job will be added. Job is passed by reference and it's updated from the queue. |
50 | - * |
|
51 | - * @param Job $job The Job object, the ID of the given job is the id of the job we try to update. |
|
50 | + * |
|
51 | + * @param Job $job The Job object, the ID of the given job is the id of the job we try to update. |
|
52 | 52 | If the given Job doesn't have an assigned ID, a new job will be added |
53 | - * @return int The id of the updated job |
|
54 | - */ |
|
55 | - public function updateJob($job) {} |
|
56 | - |
|
57 | - /** |
|
58 | - * Remove a job from the queue |
|
59 | - * |
|
60 | - * @param int|int[] $job_id The job id or array of job ids we want to remove from the queue |
|
61 | - * @return bool Success/Failure |
|
62 | - */ |
|
63 | - public function removeJob($job_id) {} |
|
64 | - |
|
65 | - /** |
|
66 | - * Suspend a job in the queue (without removing it) |
|
67 | - * |
|
68 | - * @param int|int[] $job_id The job id or array of job ids we want to suspend |
|
69 | - * @return bool Success/Failure |
|
70 | - */ |
|
71 | - public function suspendJob($job_id) {} |
|
72 | - |
|
73 | - /** |
|
74 | - * Resume a suspended job in the queue |
|
75 | - * |
|
76 | - * @param int|int[] $job_id The job id or array of job ids we want to resume |
|
77 | - * @return bool Success/Failure (if the job wasn't suspended, the function will return false) |
|
78 | - */ |
|
79 | - public function resumeJob($job_id) {} |
|
80 | - |
|
81 | - /** |
|
82 | - * Requeue failed job back to the queue. |
|
83 | - * |
|
84 | - * @param Job $job job object to re-query |
|
85 | - * @return bool - true or false. |
|
86 | - */ |
|
87 | - public function requeueJob($job) {} |
|
88 | - |
|
89 | - /** |
|
90 | - * returns job statistics |
|
91 | - * @return array with the following: |
|
53 | + * @return int The id of the updated job |
|
54 | + */ |
|
55 | + public function updateJob($job) {} |
|
56 | + |
|
57 | + /** |
|
58 | + * Remove a job from the queue |
|
59 | + * |
|
60 | + * @param int|int[] $job_id The job id or array of job ids we want to remove from the queue |
|
61 | + * @return bool Success/Failure |
|
62 | + */ |
|
63 | + public function removeJob($job_id) {} |
|
64 | + |
|
65 | + /** |
|
66 | + * Suspend a job in the queue (without removing it) |
|
67 | + * |
|
68 | + * @param int|int[] $job_id The job id or array of job ids we want to suspend |
|
69 | + * @return bool Success/Failure |
|
70 | + */ |
|
71 | + public function suspendJob($job_id) {} |
|
72 | + |
|
73 | + /** |
|
74 | + * Resume a suspended job in the queue |
|
75 | + * |
|
76 | + * @param int|int[] $job_id The job id or array of job ids we want to resume |
|
77 | + * @return bool Success/Failure (if the job wasn't suspended, the function will return false) |
|
78 | + */ |
|
79 | + public function resumeJob($job_id) {} |
|
80 | + |
|
81 | + /** |
|
82 | + * Requeue failed job back to the queue. |
|
83 | + * |
|
84 | + * @param Job $job job object to re-query |
|
85 | + * @return bool - true or false. |
|
86 | + */ |
|
87 | + public function requeueJob($job) {} |
|
88 | + |
|
89 | + /** |
|
90 | + * returns job statistics |
|
91 | + * @return array with the following: |
|
92 | 92 | "total_complete_jobs" |
93 | 93 | "total_incomplete_jobs" |
94 | 94 | "average_time_in_queue" [msec] |
@@ -96,96 +96,96 @@ discard block |
||
96 | 96 | "added_jobs_in_window" |
97 | 97 | "activated_jobs_in_window" |
98 | 98 | "completed_jobs_in_window" |
99 | - * moving window size can be set through ini file |
|
100 | - */ |
|
101 | - public function getStatistics() {} |
|
102 | - |
|
103 | - /** |
|
104 | - * Returns whether a script exists in the document root |
|
105 | - * @param string $path relative script path |
|
106 | - * @return bool - TRUE if script exists in the document root FALSE otherwise |
|
107 | - */ |
|
108 | - public function isScriptExists($path) {} |
|
109 | - |
|
110 | - /** |
|
111 | - * Returns whether the queue is suspended |
|
112 | - * @return bool - TRUE if job is suspended FALSE otherwise |
|
113 | - */ |
|
114 | - public function isSuspend() {} |
|
115 | - |
|
116 | - /** |
|
117 | - * Return a list of jobs in the queue according to the options given in the filter_options parameter, doesn't return jobs in "final states" (failed, complete) |
|
118 | - * If application id is set for this queue, only jobs with this application id will be returned |
|
119 | - * |
|
120 | - * @param array $filter_options Array of optional filter options to filter the jobs we want to get |
|
99 | + * moving window size can be set through ini file |
|
100 | + */ |
|
101 | + public function getStatistics() {} |
|
102 | + |
|
103 | + /** |
|
104 | + * Returns whether a script exists in the document root |
|
105 | + * @param string $path relative script path |
|
106 | + * @return bool - TRUE if script exists in the document root FALSE otherwise |
|
107 | + */ |
|
108 | + public function isScriptExists($path) {} |
|
109 | + |
|
110 | + /** |
|
111 | + * Returns whether the queue is suspended |
|
112 | + * @return bool - TRUE if job is suspended FALSE otherwise |
|
113 | + */ |
|
114 | + public function isSuspend() {} |
|
115 | + |
|
116 | + /** |
|
117 | + * Return a list of jobs in the queue according to the options given in the filter_options parameter, doesn't return jobs in "final states" (failed, complete) |
|
118 | + * If application id is set for this queue, only jobs with this application id will be returned |
|
119 | + * |
|
120 | + * @param array $filter_options Array of optional filter options to filter the jobs we want to get |
|
121 | 121 | from the queue. If not set, all jobs will be returned.<br> |
122 | - * Options can be: priority, application_id, name, status, recurring. |
|
123 | - * @param int $max_jobs Maximum jobs to retrieve. Default is -1, getting all jobs available. |
|
124 | - * @param bool $with_globals_and_output Whether gets the global variables dataand job output. |
|
125 | - * Default is false. |
|
126 | - * @return array Jobs that satisfies filter_options. |
|
127 | - */ |
|
128 | - public function getJobsInQueue($filter_options = null, $max_jobs = -1, $with_globals_and_output = false) {} |
|
129 | - |
|
130 | - /** |
|
131 | - * Return the number of jobs in the queue according to the options given in the filter_options parameter |
|
132 | - * @param array $filter_options Array of optional filter options to filter the jobs we want to get from the queue. If not set, all jobs will be counted.<br> |
|
133 | - * Options can be: priority, application_id, host, name, status, recurring. |
|
134 | - * @return int Number of jobs that satisfy filter_options. |
|
135 | - */ |
|
136 | - public function getNumOfJobsInQueue($filter_options = null) {} |
|
137 | - |
|
138 | - /** |
|
139 | - * Return all the hosts that jobs were submitted from. |
|
140 | - * @return array |
|
141 | - */ |
|
142 | - public function getAllhosts() {} |
|
143 | - |
|
144 | - /** |
|
145 | - * Return all the application ids exists in queue. |
|
146 | - * @return array |
|
147 | - */ |
|
148 | - public function getAllApplicationIDs() {} |
|
149 | - |
|
150 | - /** |
|
151 | - * Return finished jobs (either failed or successed) between time range allowing paging. |
|
152 | - * Jobs are sorted by job id descending. |
|
153 | - * |
|
154 | - * @param int $status Filter to jobs by status, 1-success, 0-failed either logical or execution. |
|
155 | - * @param int $start_time UNIX timestamp. Get only jobs finished after $start_time. |
|
156 | - * @param int $end_time UNIX timestamp. Get only jobs finished before $end_time. |
|
157 | - * @param int $index Get jobs starting from the $index-th place. |
|
158 | - * @param int $count Get only $count jobs. |
|
159 | - * @param int &$total Pass by reference. Return the total number of jobs statisifed the query criteria. |
|
160 | - * |
|
161 | - * @return array of jobs. |
|
162 | - */ |
|
163 | - public function getHistoricJobs($status, $start_time, $end_time, $index, $count, &$total) {} |
|
164 | - |
|
165 | - /** |
|
166 | - * Suspends queue operation |
|
167 | - * @return bool - TRUE if successful FALSE otherwise |
|
168 | - */ |
|
169 | - public function suspendQueue() {} |
|
170 | - |
|
171 | - /** |
|
172 | - * Resumes queue operation |
|
173 | - * @return bool - TRUE if successful FALSE otherwise |
|
174 | - */ |
|
175 | - public function resumeQueue() {} |
|
176 | - |
|
177 | - /** |
|
178 | - * Return description of the last error occurred in the queue object. After every |
|
179 | - * method invoked an error string describing the error is store in the queue object. |
|
180 | - * @return string |
|
181 | - */ |
|
182 | - public function getLastError() {} |
|
183 | - |
|
184 | - /** |
|
185 | - * Sets a new maximum time for keeping historic jobs |
|
186 | - * @return bool - TRUE if successful FALSE otherwise |
|
187 | - */ |
|
188 | - public function setMaxHistoryTime() {} |
|
122 | + * Options can be: priority, application_id, name, status, recurring. |
|
123 | + * @param int $max_jobs Maximum jobs to retrieve. Default is -1, getting all jobs available. |
|
124 | + * @param bool $with_globals_and_output Whether gets the global variables dataand job output. |
|
125 | + * Default is false. |
|
126 | + * @return array Jobs that satisfies filter_options. |
|
127 | + */ |
|
128 | + public function getJobsInQueue($filter_options = null, $max_jobs = -1, $with_globals_and_output = false) {} |
|
129 | + |
|
130 | + /** |
|
131 | + * Return the number of jobs in the queue according to the options given in the filter_options parameter |
|
132 | + * @param array $filter_options Array of optional filter options to filter the jobs we want to get from the queue. If not set, all jobs will be counted.<br> |
|
133 | + * Options can be: priority, application_id, host, name, status, recurring. |
|
134 | + * @return int Number of jobs that satisfy filter_options. |
|
135 | + */ |
|
136 | + public function getNumOfJobsInQueue($filter_options = null) {} |
|
137 | + |
|
138 | + /** |
|
139 | + * Return all the hosts that jobs were submitted from. |
|
140 | + * @return array |
|
141 | + */ |
|
142 | + public function getAllhosts() {} |
|
143 | + |
|
144 | + /** |
|
145 | + * Return all the application ids exists in queue. |
|
146 | + * @return array |
|
147 | + */ |
|
148 | + public function getAllApplicationIDs() {} |
|
149 | + |
|
150 | + /** |
|
151 | + * Return finished jobs (either failed or successed) between time range allowing paging. |
|
152 | + * Jobs are sorted by job id descending. |
|
153 | + * |
|
154 | + * @param int $status Filter to jobs by status, 1-success, 0-failed either logical or execution. |
|
155 | + * @param int $start_time UNIX timestamp. Get only jobs finished after $start_time. |
|
156 | + * @param int $end_time UNIX timestamp. Get only jobs finished before $end_time. |
|
157 | + * @param int $index Get jobs starting from the $index-th place. |
|
158 | + * @param int $count Get only $count jobs. |
|
159 | + * @param int &$total Pass by reference. Return the total number of jobs statisifed the query criteria. |
|
160 | + * |
|
161 | + * @return array of jobs. |
|
162 | + */ |
|
163 | + public function getHistoricJobs($status, $start_time, $end_time, $index, $count, &$total) {} |
|
164 | + |
|
165 | + /** |
|
166 | + * Suspends queue operation |
|
167 | + * @return bool - TRUE if successful FALSE otherwise |
|
168 | + */ |
|
169 | + public function suspendQueue() {} |
|
170 | + |
|
171 | + /** |
|
172 | + * Resumes queue operation |
|
173 | + * @return bool - TRUE if successful FALSE otherwise |
|
174 | + */ |
|
175 | + public function resumeQueue() {} |
|
176 | + |
|
177 | + /** |
|
178 | + * Return description of the last error occurred in the queue object. After every |
|
179 | + * method invoked an error string describing the error is store in the queue object. |
|
180 | + * @return string |
|
181 | + */ |
|
182 | + public function getLastError() {} |
|
183 | + |
|
184 | + /** |
|
185 | + * Sets a new maximum time for keeping historic jobs |
|
186 | + * @return bool - TRUE if successful FALSE otherwise |
|
187 | + */ |
|
188 | + public function setMaxHistoryTime() {} |
|
189 | 189 | } |
190 | 190 | |
191 | 191 | /** |
@@ -196,237 +196,237 @@ discard block |
||
196 | 196 | */ |
197 | 197 | class ZendAPI_Job |
198 | 198 | { |
199 | - /** |
|
200 | - * Unique id of the Job in the job queue |
|
201 | - * |
|
202 | - * @var int |
|
203 | - */ |
|
204 | - public $_id; |
|
205 | - |
|
206 | - /** |
|
207 | - * Full path of the script that this job calls when it's processed |
|
208 | - * |
|
209 | - * @var string |
|
210 | - */ |
|
211 | - public $_script; |
|
212 | - |
|
213 | - /** |
|
214 | - * The host that the job was submit from |
|
215 | - * |
|
216 | - * @var string |
|
217 | - */ |
|
218 | - public $_host; |
|
219 | - |
|
220 | - /** |
|
221 | - * A short string describing the job |
|
222 | - * |
|
223 | - * @var string |
|
224 | - */ |
|
225 | - public $_name; |
|
226 | - |
|
227 | - /** |
|
228 | - * The job output after executing |
|
229 | - * |
|
230 | - * @var string |
|
231 | - */ |
|
232 | - public $_output; |
|
233 | - |
|
234 | - /** |
|
235 | - * The status of the job |
|
236 | - * By default, the job status is waiting to being execute. |
|
237 | - * The status is determent by the queue and can not be modify by the user. |
|
238 | - * |
|
239 | - * @var int |
|
240 | - */ |
|
241 | - public $_status = JOB_QUEUE_STATUS_WAITING; |
|
242 | - |
|
243 | - /** |
|
244 | - * The application id of the job |
|
245 | - * If the application id is not set, this job may get an application id automatically from the queue |
|
246 | - * (if the queue was assigned one). By default it is null (which indicates no application id is assigned) |
|
247 | - * |
|
248 | - * @var string |
|
249 | - */ |
|
250 | - public $_application_id = null; |
|
251 | - |
|
252 | - /** |
|
253 | - * The priority of the job, options are the priority constants |
|
254 | - * By default the priority is set to normal (JOB_QUEUE_PRIORITY_NORMAL) |
|
255 | - * |
|
256 | - * @var int |
|
257 | - */ |
|
258 | - public $_priority = JOB_QUEUE_PRIORITY_NORMAL; |
|
259 | - |
|
260 | - /** |
|
261 | - * Array holding all the variables that the user wants the job's script to have when it's called |
|
262 | - * The structure is variable_name => variable_value |
|
199 | + /** |
|
200 | + * Unique id of the Job in the job queue |
|
201 | + * |
|
202 | + * @var int |
|
203 | + */ |
|
204 | + public $_id; |
|
205 | + |
|
206 | + /** |
|
207 | + * Full path of the script that this job calls when it's processed |
|
208 | + * |
|
209 | + * @var string |
|
210 | + */ |
|
211 | + public $_script; |
|
212 | + |
|
213 | + /** |
|
214 | + * The host that the job was submit from |
|
215 | + * |
|
216 | + * @var string |
|
217 | + */ |
|
218 | + public $_host; |
|
219 | + |
|
220 | + /** |
|
221 | + * A short string describing the job |
|
222 | + * |
|
223 | + * @var string |
|
224 | + */ |
|
225 | + public $_name; |
|
226 | + |
|
227 | + /** |
|
228 | + * The job output after executing |
|
229 | + * |
|
230 | + * @var string |
|
231 | + */ |
|
232 | + public $_output; |
|
233 | + |
|
234 | + /** |
|
235 | + * The status of the job |
|
236 | + * By default, the job status is waiting to being execute. |
|
237 | + * The status is determent by the queue and can not be modify by the user. |
|
238 | + * |
|
239 | + * @var int |
|
240 | + */ |
|
241 | + public $_status = JOB_QUEUE_STATUS_WAITING; |
|
242 | + |
|
243 | + /** |
|
244 | + * The application id of the job |
|
245 | + * If the application id is not set, this job may get an application id automatically from the queue |
|
246 | + * (if the queue was assigned one). By default it is null (which indicates no application id is assigned) |
|
247 | + * |
|
248 | + * @var string |
|
249 | + */ |
|
250 | + public $_application_id = null; |
|
251 | + |
|
252 | + /** |
|
253 | + * The priority of the job, options are the priority constants |
|
254 | + * By default the priority is set to normal (JOB_QUEUE_PRIORITY_NORMAL) |
|
255 | + * |
|
256 | + * @var int |
|
257 | + */ |
|
258 | + public $_priority = JOB_QUEUE_PRIORITY_NORMAL; |
|
259 | + |
|
260 | + /** |
|
261 | + * Array holding all the variables that the user wants the job's script to have when it's called |
|
262 | + * The structure is variable_name => variable_value |
|
263 | 263 | i.e. if the user_variables array is array('my_var' => 8), when the script is called, |
264 | 264 | a global variable called $my_var will have the int value of 8 |
265 | - * By default there are no variables that we want to add to the job's script |
|
266 | - * |
|
267 | - * @var array |
|
268 | - */ |
|
269 | - public $_user_variables = []; |
|
270 | - |
|
271 | - /** |
|
272 | - * Bit mask holding the global variables that the user want the job's script to have when it's called |
|
273 | - * Options are prefixed with "JOB_QUEUE_SAVE_" and may be: |
|
265 | + * By default there are no variables that we want to add to the job's script |
|
266 | + * |
|
267 | + * @var array |
|
268 | + */ |
|
269 | + public $_user_variables = []; |
|
270 | + |
|
271 | + /** |
|
272 | + * Bit mask holding the global variables that the user want the job's script to have when it's called |
|
273 | + * Options are prefixed with "JOB_QUEUE_SAVE_" and may be: |
|
274 | 274 | POST|GET|COOKIE|SESSION|RAW_POST|SERVER|FILES|ENV |
275 | - * By default there are no global variables we want to add to the job's script |
|
276 | - * i.e. In order to save the current GET and COOKIE global variables, |
|
275 | + * By default there are no global variables we want to add to the job's script |
|
276 | + * i.e. In order to save the current GET and COOKIE global variables, |
|
277 | 277 | this property should be JOB_QUEUE_SAVE_GET|JOB_QUEUE_SAVE_COOKIE (or the integer 6) |
278 | 278 | In that case (of GET and COOKIE), when the job is added, the current $_GET and |
279 | 279 | $_COOKIE variables should be saved, and when the job's script is called, |
280 | 280 | those global variables should be populated |
281 | - * |
|
282 | - * @var int |
|
283 | - */ |
|
284 | - public $_global_variables = 0; |
|
285 | - |
|
286 | - /** |
|
287 | - * The job may have a dependency (another job that must be performed before this job) |
|
288 | - * This property hold the id of the job that must be performed. if this variable is an array of integers, |
|
281 | + * |
|
282 | + * @var int |
|
283 | + */ |
|
284 | + public $_global_variables = 0; |
|
285 | + |
|
286 | + /** |
|
287 | + * The job may have a dependency (another job that must be performed before this job) |
|
288 | + * This property hold the id of the job that must be performed. if this variable is an array of integers, |
|
289 | 289 | it means that there are several jobs that must be performed before this job |
290 | - * By default there are no dependencies |
|
291 | - * |
|
292 | - * @var mixed (int|array) |
|
293 | - */ |
|
294 | - public $_predecessor = null; |
|
295 | - |
|
296 | - /** |
|
297 | - * The time that this job should be performed, this variables is the UNIX timestamp. |
|
298 | - * If set to 0, it means that the job should be performed now (or at least as soon as possible) |
|
299 | - * By default there is no scheduled time, which means we want to perform the job as soon as possible |
|
300 | - * |
|
301 | - * @var int |
|
302 | - */ |
|
303 | - public $_scheduled_time = 0; |
|
304 | - |
|
305 | - /** |
|
306 | - * The job running frequency in seconds. The job should run every _internal seconds |
|
307 | - * This property applys only to recurrent job. |
|
308 | - * By default, its value is 0 e.g. run it only once. |
|
309 | - * |
|
310 | - * @var int |
|
311 | - */ |
|
312 | - public $_interval = 0; |
|
313 | - |
|
314 | - /** |
|
315 | - * UNIX timestamp that it's the last time this job should occurs. If _interval was set, and _end_time |
|
316 | - * was not, then this job will run forever. |
|
317 | - * By default there is no end_time, so recurrent job will run forever. If the job is not recurrent |
|
318 | - * (occurs only once) then the job will run at most once. If end_time has reached and the job was not |
|
319 | - * execute yet, it will not run. |
|
320 | - * |
|
321 | - * @var int |
|
322 | - */ |
|
323 | - public $_end_time = null; |
|
324 | - |
|
325 | - /** |
|
326 | - * A bit that determine whether job can be deleted from history. When set, removeJob will not |
|
327 | - * delete the job from history. |
|
328 | - * |
|
329 | - * @var int |
|
330 | - */ |
|
331 | - public $_preserved = 0; |
|
332 | - |
|
333 | - /** |
|
334 | - * Instantiate a Job object, describe all the information and properties of a job |
|
335 | - * |
|
336 | - * @param string $script relative path (relative to document root supplied in ini file) of the script this job should call when it's executing |
|
337 | - * @return Job |
|
338 | - * |
|
339 | - * @removed 8.0 |
|
340 | - */ |
|
341 | - public function ZendAPI_Job($script) {} |
|
342 | - |
|
343 | - /** |
|
344 | - * Add the job the the specified queue (without instantiating a JobQueue object) |
|
345 | - * This function should be used for extreme simplicity of the user when adding a single job, |
|
290 | + * By default there are no dependencies |
|
291 | + * |
|
292 | + * @var mixed (int|array) |
|
293 | + */ |
|
294 | + public $_predecessor = null; |
|
295 | + |
|
296 | + /** |
|
297 | + * The time that this job should be performed, this variables is the UNIX timestamp. |
|
298 | + * If set to 0, it means that the job should be performed now (or at least as soon as possible) |
|
299 | + * By default there is no scheduled time, which means we want to perform the job as soon as possible |
|
300 | + * |
|
301 | + * @var int |
|
302 | + */ |
|
303 | + public $_scheduled_time = 0; |
|
304 | + |
|
305 | + /** |
|
306 | + * The job running frequency in seconds. The job should run every _internal seconds |
|
307 | + * This property applys only to recurrent job. |
|
308 | + * By default, its value is 0 e.g. run it only once. |
|
309 | + * |
|
310 | + * @var int |
|
311 | + */ |
|
312 | + public $_interval = 0; |
|
313 | + |
|
314 | + /** |
|
315 | + * UNIX timestamp that it's the last time this job should occurs. If _interval was set, and _end_time |
|
316 | + * was not, then this job will run forever. |
|
317 | + * By default there is no end_time, so recurrent job will run forever. If the job is not recurrent |
|
318 | + * (occurs only once) then the job will run at most once. If end_time has reached and the job was not |
|
319 | + * execute yet, it will not run. |
|
320 | + * |
|
321 | + * @var int |
|
322 | + */ |
|
323 | + public $_end_time = null; |
|
324 | + |
|
325 | + /** |
|
326 | + * A bit that determine whether job can be deleted from history. When set, removeJob will not |
|
327 | + * delete the job from history. |
|
328 | + * |
|
329 | + * @var int |
|
330 | + */ |
|
331 | + public $_preserved = 0; |
|
332 | + |
|
333 | + /** |
|
334 | + * Instantiate a Job object, describe all the information and properties of a job |
|
335 | + * |
|
336 | + * @param string $script relative path (relative to document root supplied in ini file) of the script this job should call when it's executing |
|
337 | + * @return Job |
|
338 | + * |
|
339 | + * @removed 8.0 |
|
340 | + */ |
|
341 | + public function ZendAPI_Job($script) {} |
|
342 | + |
|
343 | + /** |
|
344 | + * Add the job the the specified queue (without instantiating a JobQueue object) |
|
345 | + * This function should be used for extreme simplicity of the user when adding a single job, |
|
346 | 346 | when the user want to insert more than one job and/or manipulating other jobs (or job tasks) |
347 | 347 | he should create and use the JobQueue object |
348 | - * Actually what this function do is to create a new JobQueue, login to it (with the given parameters), |
|
348 | + * Actually what this function do is to create a new JobQueue, login to it (with the given parameters), |
|
349 | 349 | add this job to it and logout |
350 | - * |
|
351 | - * @param string $jobqueue_url Full address of the queue we want to connect to |
|
352 | - * @param string $password For authentication, the queue password |
|
353 | - * @return int|false The added job id or false on failure |
|
354 | - */ |
|
355 | - public function addJobToQueue($jobqueue_url, $password) {} |
|
356 | - |
|
357 | - /** |
|
358 | - * Set a new priority to the job |
|
359 | - * |
|
360 | - * @param int $priority Priority options are constants with the "JOB_QUEUE_PRIORITY_" prefix |
|
361 | - */ |
|
362 | - public function setJobPriority($priority) {} |
|
363 | - |
|
364 | - // All properties SET functions |
|
365 | - public function setJobName($name) {} |
|
366 | - public function setScript($script) {} |
|
367 | - public function setApplicationID($app_id) {} |
|
368 | - public function setUserVariables($vars) {} |
|
369 | - public function setGlobalVariables($vars) {} |
|
370 | - public function setJobDependency($job_id) {} |
|
371 | - public function setScheduledTime($timestamp) {} |
|
372 | - public function setRecurrenceData($interval, $end_time = null) {} |
|
373 | - public function setPreserved($preserved) {} |
|
374 | - |
|
375 | - /** |
|
376 | - * Get the job properties |
|
377 | - * |
|
378 | - * @return array The same format of job options array as in the Job constructor |
|
379 | - */ |
|
380 | - public function getProperties() {} |
|
381 | - |
|
382 | - /** |
|
383 | - * Get the job output |
|
384 | - * |
|
385 | - * @return mixed An HTML representing the job output |
|
386 | - */ |
|
387 | - public function getOutput() {} |
|
388 | - |
|
389 | - // All properties GET functions |
|
390 | - public function getID() {} |
|
391 | - public function getHost() {} |
|
392 | - public function getScript() {} |
|
393 | - public function getJobPriority() {} |
|
394 | - public function getJobName() {} |
|
395 | - public function getApplicationID() {} |
|
396 | - public function getUserVariables() {} |
|
397 | - public function getGlobalVariables() {} |
|
398 | - public function getJobDependency() {} |
|
399 | - public function getScheduledTime() {} |
|
400 | - public function getInterval() {} |
|
401 | - public function getEndTime() {} |
|
402 | - public function getPreserved() {} |
|
403 | - |
|
404 | - /** |
|
405 | - * Get the current status of the job |
|
406 | - * If this job was created and not returned from a queue (using the JobQueue::GetJob() function), |
|
407 | - * the function will return false |
|
408 | - * The status is one of the constants with the "JOB_QUEUE_STATUS_" prefix. |
|
409 | - * E.g. job was performed and failed, job is waiting etc. |
|
410 | - * |
|
411 | - * @return int|false |
|
412 | - */ |
|
413 | - public function getJobStatus() {} |
|
414 | - |
|
415 | - /** |
|
416 | - * Get how much seconds there are until the next time the job will run. |
|
417 | - * If the job is not recurrence or it past its end time, then return 0. |
|
418 | - * |
|
419 | - * @return int |
|
420 | - */ |
|
421 | - public function getTimeToNextRepeat() {} |
|
422 | - |
|
423 | - /** |
|
424 | - * For recurring job get the status of the last execution. For simple job, |
|
425 | - * getLastPerformedStatus is equivalent to getJobStatus. |
|
426 | - * jobs that haven't been executed yet will return STATUS_WAITING |
|
427 | - * @return int |
|
428 | - */ |
|
429 | - public function getLastPerformedStatus() {} |
|
350 | + * |
|
351 | + * @param string $jobqueue_url Full address of the queue we want to connect to |
|
352 | + * @param string $password For authentication, the queue password |
|
353 | + * @return int|false The added job id or false on failure |
|
354 | + */ |
|
355 | + public function addJobToQueue($jobqueue_url, $password) {} |
|
356 | + |
|
357 | + /** |
|
358 | + * Set a new priority to the job |
|
359 | + * |
|
360 | + * @param int $priority Priority options are constants with the "JOB_QUEUE_PRIORITY_" prefix |
|
361 | + */ |
|
362 | + public function setJobPriority($priority) {} |
|
363 | + |
|
364 | + // All properties SET functions |
|
365 | + public function setJobName($name) {} |
|
366 | + public function setScript($script) {} |
|
367 | + public function setApplicationID($app_id) {} |
|
368 | + public function setUserVariables($vars) {} |
|
369 | + public function setGlobalVariables($vars) {} |
|
370 | + public function setJobDependency($job_id) {} |
|
371 | + public function setScheduledTime($timestamp) {} |
|
372 | + public function setRecurrenceData($interval, $end_time = null) {} |
|
373 | + public function setPreserved($preserved) {} |
|
374 | + |
|
375 | + /** |
|
376 | + * Get the job properties |
|
377 | + * |
|
378 | + * @return array The same format of job options array as in the Job constructor |
|
379 | + */ |
|
380 | + public function getProperties() {} |
|
381 | + |
|
382 | + /** |
|
383 | + * Get the job output |
|
384 | + * |
|
385 | + * @return mixed An HTML representing the job output |
|
386 | + */ |
|
387 | + public function getOutput() {} |
|
388 | + |
|
389 | + // All properties GET functions |
|
390 | + public function getID() {} |
|
391 | + public function getHost() {} |
|
392 | + public function getScript() {} |
|
393 | + public function getJobPriority() {} |
|
394 | + public function getJobName() {} |
|
395 | + public function getApplicationID() {} |
|
396 | + public function getUserVariables() {} |
|
397 | + public function getGlobalVariables() {} |
|
398 | + public function getJobDependency() {} |
|
399 | + public function getScheduledTime() {} |
|
400 | + public function getInterval() {} |
|
401 | + public function getEndTime() {} |
|
402 | + public function getPreserved() {} |
|
403 | + |
|
404 | + /** |
|
405 | + * Get the current status of the job |
|
406 | + * If this job was created and not returned from a queue (using the JobQueue::GetJob() function), |
|
407 | + * the function will return false |
|
408 | + * The status is one of the constants with the "JOB_QUEUE_STATUS_" prefix. |
|
409 | + * E.g. job was performed and failed, job is waiting etc. |
|
410 | + * |
|
411 | + * @return int|false |
|
412 | + */ |
|
413 | + public function getJobStatus() {} |
|
414 | + |
|
415 | + /** |
|
416 | + * Get how much seconds there are until the next time the job will run. |
|
417 | + * If the job is not recurrence or it past its end time, then return 0. |
|
418 | + * |
|
419 | + * @return int |
|
420 | + */ |
|
421 | + public function getTimeToNextRepeat() {} |
|
422 | + |
|
423 | + /** |
|
424 | + * For recurring job get the status of the last execution. For simple job, |
|
425 | + * getLastPerformedStatus is equivalent to getJobStatus. |
|
426 | + * jobs that haven't been executed yet will return STATUS_WAITING |
|
427 | + * @return int |
|
428 | + */ |
|
429 | + public function getLastPerformedStatus() {} |
|
430 | 430 | } |
431 | 431 | |
432 | 432 | /** |
@@ -608,23 +608,23 @@ discard block |
||
608 | 608 | |
609 | 609 | class java |
610 | 610 | { |
611 | - /** |
|
612 | - * Create Java object |
|
613 | - * |
|
614 | - * @param string $classname |
|
615 | - * @return java |
|
616 | - * |
|
617 | - * @removed 8.0 |
|
618 | - */ |
|
619 | - public function java($classname) {} |
|
611 | + /** |
|
612 | + * Create Java object |
|
613 | + * |
|
614 | + * @param string $classname |
|
615 | + * @return java |
|
616 | + * |
|
617 | + * @removed 8.0 |
|
618 | + */ |
|
619 | + public function java($classname) {} |
|
620 | 620 | }; |
621 | 621 | |
622 | 622 | class JavaException |
623 | 623 | { |
624 | - /** |
|
625 | - * Get Java exception that led to this exception |
|
626 | - * |
|
627 | - * @return object |
|
628 | - */ |
|
629 | - public function getCause() {} |
|
624 | + /** |
|
625 | + * Get Java exception that led to this exception |
|
626 | + * |
|
627 | + * @return object |
|
628 | + */ |
|
629 | + public function getCause() {} |
|
630 | 630 | }; |
@@ -2,8 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | // Start of Zend Extensions |
4 | 4 | |
5 | -class ZendAPI_Queue |
|
6 | -{ |
|
5 | +class ZendAPI_Queue { |
|
7 | 6 | public $_jobqueue_url; |
8 | 7 | |
9 | 8 | /** |
@@ -194,8 +193,7 @@ discard block |
||
194 | 193 | * |
195 | 194 | * For simplicity, a job can be added directly to a queue and without creating an instant of a Queue object |
196 | 195 | */ |
197 | -class ZendAPI_Job |
|
198 | -{ |
|
196 | +class ZendAPI_Job { |
|
199 | 197 | /** |
200 | 198 | * Unique id of the Job in the job queue |
201 | 199 | * |
@@ -606,8 +604,7 @@ discard block |
||
606 | 604 | */ |
607 | 605 | function zend_send_buffer($buffer, $mime_type, $custom_headers) {} |
608 | 606 | |
609 | -class java |
|
610 | -{ |
|
607 | +class java { |
|
611 | 608 | /** |
612 | 609 | * Create Java object |
613 | 610 | * |
@@ -619,8 +616,7 @@ discard block |
||
619 | 616 | public function java($classname) {} |
620 | 617 | }; |
621 | 618 | |
622 | -class JavaException |
|
623 | -{ |
|
619 | +class JavaException { |
|
624 | 620 | /** |
625 | 621 | * Get Java exception that led to this exception |
626 | 622 | * |
@@ -11,8 +11,8 @@ |
||
11 | 11 | define('JOB_QUEUE_STATUS_IN_PROCESS', 6); // Job is in process in Queue |
12 | 12 | define('JOB_QUEUE_STATUS_EXECUTION_FAILED', 7); // Job execution failed in the ZendEnabler |
13 | 13 | define('JOB_QUEUE_STATUS_LOGICALLY_FAILED', 8); // Job was processed and failed logically either |
14 | - // because of job_fail command or script parse or |
|
15 | - // fatal error |
|
14 | + // because of job_fail command or script parse or |
|
15 | + // fatal error |
|
16 | 16 | |
17 | 17 | // Constants for different priorities of jobs |
18 | 18 | define('JOB_QUEUE_PRIORITY_LOW', 0); |
@@ -3,14 +3,14 @@ |
||
3 | 3 | // Start of Zend Extensions |
4 | 4 | |
5 | 5 | // Constants for jobs status |
6 | -define('JOB_QUEUE_STATUS_SUCCESS', 1); // Job was processed and succeeded |
|
7 | -define('JOB_QUEUE_STATUS_WAITING', 2); // Job is waiting for being processed (was not scheduled) |
|
8 | -define('JOB_QUEUE_STATUS_SUSPENDED', 3); // Job was suspended |
|
9 | -define('JOB_QUEUE_STATUS_SCHEDULED', 4); // Job is scheduled and waiting in queue |
|
6 | +define('JOB_QUEUE_STATUS_SUCCESS', 1); // Job was processed and succeeded |
|
7 | +define('JOB_QUEUE_STATUS_WAITING', 2); // Job is waiting for being processed (was not scheduled) |
|
8 | +define('JOB_QUEUE_STATUS_SUSPENDED', 3); // Job was suspended |
|
9 | +define('JOB_QUEUE_STATUS_SCHEDULED', 4); // Job is scheduled and waiting in queue |
|
10 | 10 | define('JOB_QUEUE_STATUS_WAITING_PREDECESSOR', 5); // Job is waiting for it's predecessor to be completed |
11 | -define('JOB_QUEUE_STATUS_IN_PROCESS', 6); // Job is in process in Queue |
|
12 | -define('JOB_QUEUE_STATUS_EXECUTION_FAILED', 7); // Job execution failed in the ZendEnabler |
|
13 | -define('JOB_QUEUE_STATUS_LOGICALLY_FAILED', 8); // Job was processed and failed logically either |
|
11 | +define('JOB_QUEUE_STATUS_IN_PROCESS', 6); // Job is in process in Queue |
|
12 | +define('JOB_QUEUE_STATUS_EXECUTION_FAILED', 7); // Job execution failed in the ZendEnabler |
|
13 | +define('JOB_QUEUE_STATUS_LOGICALLY_FAILED', 8); // Job was processed and failed logically either |
|
14 | 14 | // because of job_fail command or script parse or |
15 | 15 | // fatal error |
16 | 16 |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | * set of the current process. |
126 | 126 | */ |
127 | 127 | #[Pure] |
128 | -function posix_getgroups(): array|false {} |
|
128 | +function posix_getgroups(): array | false {} |
|
129 | 129 | |
130 | 130 | /** |
131 | 131 | * Return login name |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * @return string|false the login name of the user, as a string. |
134 | 134 | */ |
135 | 135 | #[Pure] |
136 | -function posix_getlogin(): string|false {} |
|
136 | +function posix_getlogin(): string | false {} |
|
137 | 137 | |
138 | 138 | /** |
139 | 139 | * Return the current process group identifier |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | * @return int|false the identifier, as an integer. |
173 | 173 | */ |
174 | 174 | #[Pure] |
175 | -function posix_getpgid(int $process_id): int|false {} |
|
175 | +function posix_getpgid(int $process_id): int | false {} |
|
176 | 176 | |
177 | 177 | /** |
178 | 178 | * Get the current sid of the process |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | * @return int|false the identifier, as an integer. |
187 | 187 | */ |
188 | 188 | #[Pure] |
189 | -function posix_getsid(int $process_id): int|false {} |
|
189 | +function posix_getsid(int $process_id): int | false {} |
|
190 | 190 | |
191 | 191 | /** |
192 | 192 | * Get system name |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * libc. |
208 | 208 | */ |
209 | 209 | #[Pure] |
210 | -function posix_uname(): array|false {} |
|
210 | +function posix_uname(): array | false {} |
|
211 | 211 | |
212 | 212 | /** |
213 | 213 | * Get process times |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | * cstime - system time used by current process and children. |
223 | 223 | */ |
224 | 224 | #[Pure] |
225 | -function posix_times(): array|false {} |
|
225 | +function posix_times(): array | false {} |
|
226 | 226 | |
227 | 227 | /** |
228 | 228 | * Get path name of controlling terminal |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | * is set, which can be checked with <b>posix_get_last_error</b>. |
233 | 233 | */ |
234 | 234 | #[Pure] |
235 | -function posix_ctermid(): string|false {} |
|
235 | +function posix_ctermid(): string | false {} |
|
236 | 236 | |
237 | 237 | /** |
238 | 238 | * Determine terminal device name |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * <i>fd</i>. On failure, returns <b>FALSE</b> |
245 | 245 | */ |
246 | 246 | #[Pure] |
247 | -function posix_ttyname($file_descriptor): string|false {} |
|
247 | +function posix_ttyname($file_descriptor): string | false {} |
|
248 | 248 | |
249 | 249 | /** |
250 | 250 | * Determine if a file descriptor is an interactive terminal |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | * <b>posix_get_last_error</b>. |
270 | 270 | */ |
271 | 271 | #[Pure(true)] |
272 | -function posix_getcwd(): string|false {} |
|
272 | +function posix_getcwd(): string | false {} |
|
273 | 273 | |
274 | 274 | /** |
275 | 275 | * Create a fifo special file (a named pipe) |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | * </table> |
380 | 380 | */ |
381 | 381 | #[Pure] |
382 | -function posix_getgrnam(string $name): array|false {} |
|
382 | +function posix_getgrnam(string $name): array | false {} |
|
383 | 383 | |
384 | 384 | /** |
385 | 385 | * Return info about a group by group id |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | * </table> |
429 | 429 | */ |
430 | 430 | #[Pure] |
431 | -function posix_getgrgid(int $group_id): array|false {} |
|
431 | +function posix_getgrgid(int $group_id): array | false {} |
|
432 | 432 | |
433 | 433 | /** |
434 | 434 | * Return info about a user by username |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | * </table> |
506 | 506 | */ |
507 | 507 | #[Pure] |
508 | -function posix_getpwnam(string $username): array|false {} |
|
508 | +function posix_getpwnam(string $username): array | false {} |
|
509 | 509 | |
510 | 510 | /** |
511 | 511 | * Return info about a user by user id |
@@ -581,7 +581,7 @@ discard block |
||
581 | 581 | * </table> |
582 | 582 | */ |
583 | 583 | #[Pure] |
584 | -function posix_getpwuid(int $user_id): array|false {} |
|
584 | +function posix_getpwuid(int $user_id): array | false {} |
|
585 | 585 | |
586 | 586 | /** |
587 | 587 | * Return info about system resource limits |
@@ -666,7 +666,7 @@ discard block |
||
666 | 666 | * </table> |
667 | 667 | */ |
668 | 668 | #[Pure] |
669 | -function posix_getrlimit(): array|false {} |
|
669 | +function posix_getrlimit(): array | false {} |
|
670 | 670 | |
671 | 671 | /** |
672 | 672 | * Retrieve the error number set by the last posix function that failed |
@@ -8,21 +8,21 @@ discard block |
||
8 | 8 | */ |
9 | 9 | class COM |
10 | 10 | { |
11 | - /** |
|
12 | - * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
|
13 | - * COM class constructor. |
|
14 | - * @param string $module_name |
|
15 | - * @param string $server_name [optional] |
|
16 | - * @param int $codepage [optional] |
|
17 | - * @param string $typelib [optional] |
|
18 | - */ |
|
19 | - public function __construct($module_name, $server_name = null, $codepage = CP_ACP, $typelib = null) {} |
|
11 | + /** |
|
12 | + * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
|
13 | + * COM class constructor. |
|
14 | + * @param string $module_name |
|
15 | + * @param string $server_name [optional] |
|
16 | + * @param int $codepage [optional] |
|
17 | + * @param string $typelib [optional] |
|
18 | + */ |
|
19 | + public function __construct($module_name, $server_name = null, $codepage = CP_ACP, $typelib = null) {} |
|
20 | 20 | |
21 | - public function __get($name) {} |
|
21 | + public function __get($name) {} |
|
22 | 22 | |
23 | - public function __set($name, $value) {} |
|
23 | + public function __set($name, $value) {} |
|
24 | 24 | |
25 | - public function __call($name, $args) {} |
|
25 | + public function __call($name, $args) {} |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -31,20 +31,20 @@ discard block |
||
31 | 31 | */ |
32 | 32 | class DOTNET |
33 | 33 | { |
34 | - /** |
|
35 | - * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
|
36 | - * COM class constructor. |
|
37 | - * @param string $assembly_name |
|
38 | - * @param string $class_name |
|
39 | - * @param int $codepage [optional] |
|
40 | - */ |
|
41 | - public function __construct($assembly_name, string $class_name, $codepage = CP_ACP) {} |
|
34 | + /** |
|
35 | + * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
|
36 | + * COM class constructor. |
|
37 | + * @param string $assembly_name |
|
38 | + * @param string $class_name |
|
39 | + * @param int $codepage [optional] |
|
40 | + */ |
|
41 | + public function __construct($assembly_name, string $class_name, $codepage = CP_ACP) {} |
|
42 | 42 | |
43 | - public function __get($name) {} |
|
43 | + public function __get($name) {} |
|
44 | 44 | |
45 | - public function __set($name, $value) {} |
|
45 | + public function __set($name, $value) {} |
|
46 | 46 | |
47 | - public function __call($name, $args) {} |
|
47 | + public function __call($name, $args) {} |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -53,20 +53,20 @@ discard block |
||
53 | 53 | */ |
54 | 54 | class VARIANT |
55 | 55 | { |
56 | - /** |
|
57 | - * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
|
58 | - * COM class constructor. |
|
59 | - * @param mixed $value [optional] |
|
60 | - * @param int $type [optional] |
|
61 | - * @param int $codepage [optional] |
|
62 | - */ |
|
63 | - public function __construct($value = null, int $type = VT_EMPTY, $codepage = CP_ACP) {} |
|
56 | + /** |
|
57 | + * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
|
58 | + * COM class constructor. |
|
59 | + * @param mixed $value [optional] |
|
60 | + * @param int $type [optional] |
|
61 | + * @param int $codepage [optional] |
|
62 | + */ |
|
63 | + public function __construct($value = null, int $type = VT_EMPTY, $codepage = CP_ACP) {} |
|
64 | 64 | |
65 | - public function __get($name) {} |
|
65 | + public function __get($name) {} |
|
66 | 66 | |
67 | - public function __set($name, $value) {} |
|
67 | + public function __set($name, $value) {} |
|
68 | 68 | |
69 | - public function __call($name, $args) {} |
|
69 | + public function __call($name, $args) {} |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
@@ -6,8 +6,7 @@ discard block |
||
6 | 6 | * The COM class allows you to instantiate an OLE compatible COM object and call its methods and access its properties. |
7 | 7 | * @link https://php.net/manual/en/class.com.php |
8 | 8 | */ |
9 | -class COM |
|
10 | -{ |
|
9 | +class COM { |
|
11 | 10 | /** |
12 | 11 | * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
13 | 12 | * COM class constructor. |
@@ -29,8 +28,7 @@ discard block |
||
29 | 28 | * The DOTNET class allows you to instantiate a class from a .Net assembly and call its methods and access its properties. |
30 | 29 | * @link https://php.net/manual/en/class.dotnet.php |
31 | 30 | */ |
32 | -class DOTNET |
|
33 | -{ |
|
31 | +class DOTNET { |
|
34 | 32 | /** |
35 | 33 | * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
36 | 34 | * COM class constructor. |
@@ -51,8 +49,7 @@ discard block |
||
51 | 49 | * The VARIANT is COM's equivalent of the PHP zval; it is a structure that can contain a value with a range of different possible types. The VARIANT class provided by the COM extension allows you to have more control over the way that PHP passes values to and from COM. |
52 | 50 | * @link https://php.net/manual/en/class.variant.php |
53 | 51 | */ |
54 | -class VARIANT |
|
55 | -{ |
|
52 | +class VARIANT { |
|
56 | 53 | /** |
57 | 54 | * (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/> |
58 | 55 | * COM class constructor. |
@@ -11,7 +11,7 @@ |
||
11 | 11 | * @return string|false a single string from the user. The line returned has the ending newline removed. |
12 | 12 | * If there is no more data to read, then FALSE is returned. |
13 | 13 | */ |
14 | -function readline(?string $prompt): string|false {} |
|
14 | +function readline(?string $prompt): string | false {} |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Gets/sets various internal readline variables |