1<?php
2
3// Start of mysql v.1.0
4// @deprecated 5.5 entire extension is deprecated in favor of mysqli
5use JetBrains\PhpStorm\Deprecated;
6
7/**
8 * Open a connection to a MySQL Server
9 * @link https://php.net/manual/en/function.mysql-connect.php
10 * @param string $server [optional] <p>
11 * The MySQL server. It can also include a port number. e.g.
12 * "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for
13 * the localhost.
14 * </p>
15 * <p>
16 * If the PHP directive
17 * mysql.default_host is undefined (default), then the default
18 * value is 'localhost:3306'. In "ini.sql.safe-mode", this parameter is ignored
19 * and value 'localhost:3306' is always used.
20 * </p>
21 * @param string $username [optional] <p>
22 * The username. Default value is defined by mysql.default_user. In
23 * "ini.sql.safe-mode", this parameter is ignored and the name of the user that
24 * owns the server process is used.
25 * </p>
26 * @param string $password [optional] <p>
27 * The password. Default value is defined by mysql.default_password. In
28 * "ini.sql.safe-mode", this parameter is ignored and empty password is used.
29 * </p>
30 * @param bool $new_link [optional] <p>
31 * If a second call is made to <b>mysql_connect</b>
32 * with the same arguments, no new link will be established, but
33 * instead, the link identifier of the already opened link will be
34 * returned. The <i>new_link</i> parameter modifies this
35 * behavior and makes <b>mysql_connect</b> always open
36 * a new link, even if <b>mysql_connect</b> was called
37 * before with the same parameters.
38 * In "ini.sql.safe-mode", this parameter is ignored.
39 * </p>
40 * @param int $client_flags [optional] <p>
41 * The <i>client_flags</i> parameter can be a combination
42 * of the following constants:
43 * 128 (enable LOAD DATA LOCAL handling),
44 * <b>MYSQL_CLIENT_SSL</b>,
45 * <b>MYSQL_CLIENT_COMPRESS</b>,
46 * <b>MYSQL_CLIENT_IGNORE_SPACE</b> or
47 * <b>MYSQL_CLIENT_INTERACTIVE</b>.
48 * Read the section about for further information.
49 * In "ini.sql.safe-mode", this parameter is ignored.
50 * </p>
51 * @return resource|false a MySQL link identifier on success or false on failure.
52 * @removed 7.0
53 */
54#[Deprecated(since: '5.5')]
55function mysql_connect ($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $new_link = false, $client_flags = 0) {}
56
57/**
58 * Open a persistent connection to a MySQL server
59 * @link https://php.net/manual/en/function.mysql-pconnect.php
60 * @param string $server [optional] <p>
61 * The MySQL server. It can also include a port number. e.g.
62 * "hostname:port" or a path to a local socket e.g. ":/path/to/socket" for
63 * the localhost.
64 * </p>
65 * <p>
66 * If the PHP directive
67 * mysql.default_host is undefined (default), then the default
68 * value is 'localhost:3306'
69 * </p>
70 * @param string $username [optional] <p>
71 * The username. Default value is the name of the user that owns the
72 * server process.
73 * </p>
74 * @param string $password [optional] <p>
75 * The password. Default value is an empty password.
76 * </p>
77 * @param int $client_flags [optional] <p>
78 * The <i>client_flags</i> parameter can be a combination
79 * of the following constants:
80 * 128 (enable LOAD DATA LOCAL handling),
81 * <b>MYSQL_CLIENT_SSL</b>,
82 * <b>MYSQL_CLIENT_COMPRESS</b>,
83 * <b>MYSQL_CLIENT_IGNORE_SPACE</b> or
84 * <b>MYSQL_CLIENT_INTERACTIVE</b>.
85 * </p>
86 * @return resource|false a MySQL persistent link identifier on success, or false on
87 * failure.
88 * @removed 7.0
89 */
90#[Deprecated(since: '5.5')]
91function mysql_pconnect ($server = 'ini_get("mysql.default_host")', $username = 'ini_get("mysql.default_user")', $password = 'ini_get("mysql.default_password")', $client_flags = null) {}
92
93/**
94 * Close MySQL connection
95 * @link https://php.net/manual/en/function.mysql-close.php
96 * @param resource $link_identifier [optional]
97 * @return bool true on success or false on failure.
98 * @removed 7.0
99 */
100#[Deprecated(since: '5.5')]
101function mysql_close ($link_identifier = null) {}
102
103/**
104 * Select a MySQL database
105 * @link https://php.net/manual/en/function.mysql-select-db.php
106 * @param string $database_name <p>
107 * The name of the database that is to be selected.
108 * </p>
109 * @param resource $link_identifier [optional]
110 * @return bool true on success or false on failure.
111 * @removed 7.0
112 */
113#[Deprecated(since: '5.5')]
114function mysql_select_db ($database_name, $link_identifier = null) {}
115
116/**
117 * Send a MySQL query
118 * @link https://php.net/manual/en/function.mysql-query.php
119 * @param string $query <p>
120 * An SQL query
121 * </p>
122 * <p>
123 * The query string should not end with a semicolon.
124 * Data inside the query should be properly escaped.
125 * </p>
126 * @param resource $link_identifier [optional]
127 * @return resource|bool For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset,
128 * <b>mysql_query</b>
129 * returns a resource on success, or false on
130 * error.
131 * </p>
132 * <p>
133 * For other type of SQL statements, INSERT, UPDATE, DELETE, DROP, etc,
134 * <b>mysql_query</b> returns true on success
135 * or false on error.
136 * </p>
137 * <p>
138 * The returned result resource should be passed to
139 * <b>mysql_fetch_array</b>, and other
140 * functions for dealing with result tables, to access the returned data.
141 * </p>
142 * <p>
143 * Use <b>mysql_num_rows</b> to find out how many rows
144 * were returned for a SELECT statement or
145 * <b>mysql_affected_rows</b> to find out how many
146 * rows were affected by a DELETE, INSERT, REPLACE, or UPDATE
147 * statement.
148 * </p>
149 * <p>
150 * <b>mysql_query</b> will also fail and return false
151 * if the user does not have permission to access the table(s) referenced by
152 * the query.
153 * @removed 7.0
154 */
155#[Deprecated(since: '5.5')]
156function mysql_query ($query, $link_identifier = null) {}
157
158/**
159 * @deprecated 5.5
160 * Send an SQL query to MySQL without fetching and buffering the result rows.
161 * @link https://php.net/manual/en/function.mysql-unbuffered-query.php
162 * @param string $query <p>
163 * The SQL query to execute.
164 * </p>
165 * <p>
166 * Data inside the query should be properly escaped.
167 * </p>
168 * @param resource $link_identifier [optional]
169 * @return resource|bool For SELECT, SHOW, DESCRIBE or EXPLAIN statements,
170 * <b>mysql_unbuffered_query</b>
171 * returns a resource on success, or false on
172 * error.
173 * </p>
174 * <p>
175 * For other type of SQL statements, UPDATE, DELETE, DROP, etc,
176 * <b>mysql_unbuffered_query</b> returns true on success
177 * or false on error.
178 * @removed 7.0
179 */
180#[Deprecated(since: '5.5')]
181function mysql_unbuffered_query ($query, $link_identifier = null) {}
182
183/**
184 * Selects a database and executes a query on it
185 * @link https://php.net/manual/en/function.mysql-db-query.php
186 * @param string $database <p>
187 * The name of the database that will be selected.
188 * </p>
189 * @param string $query <p>
190 * The MySQL query.
191 * </p>
192 * <p>
193 * Data inside the query should be properly escaped.
194 * </p>
195 * @param resource $link_identifier [optional]
196 * @return resource|bool a positive MySQL result resource to the query result,
197 * or false on error. The function also returns true/false for
198 * INSERT/UPDATE/DELETE
199 * queries to indicate success/failure.
200 * @removed 7.0
201 * @see mysql_select_db()
202 * @see mysql_query()
203 */
204#[Deprecated('Use mysql_select_db() and mysql_query() instead', since: '5.3')]
205function mysql_db_query ($database, $query, $link_identifier = null) {}
206
207/**
208 * List databases available on a MySQL server
209 * @link https://php.net/manual/en/function.mysql-list-dbs.php
210 * @param resource $link_identifier [optional]
211 * @return resource|false a result pointer resource on success, or false on
212 * failure. Use the <b>mysql_tablename</b> function to traverse
213 * this result pointer, or any function for result tables, such as
214 * <b>mysql_fetch_array</b>.
215 * @removed 7.0
216 */
217#[Deprecated(since: '5.4')]
218function mysql_list_dbs ($link_identifier = null) {}
219
220/**
221 * List tables in a MySQL database
222 * @link https://php.net/manual/en/function.mysql-list-tables.php
223 * @param string $database <p>
224 * The name of the database
225 * </p>
226 * @param resource $link_identifier [optional]
227 * @return resource|false A result pointer resource on success or false on failure.
228 * <p>
229 * Use the <b>mysql_tablename</b> function to
230 * traverse this result pointer, or any function for result tables,
231 * such as <b>mysql_fetch_array</b>.
232 * </p>
233 * @removed 7.0
234 */
235#[Deprecated(since: '5.3')]
236function mysql_list_tables ($database, $link_identifier = null) {}
237
238/**
239 * List MySQL table fields
240 * @link https://php.net/manual/en/function.mysql-list-fields.php
241 * @param string $database_name <p>
242 * The name of the database that's being queried.
243 * </p>
244 * @param string $table_name <p>
245 * The name of the table that's being queried.
246 * </p>
247 * @param resource $link_identifier [optional]
248 * @return resource|false A result pointer resource on success, or false on
249 * failure.
250 * </p>
251 * <p>
252 * The returned result can be used with <b>mysql_field_flags</b>,
253 * <b>mysql_field_len</b>,
254 * <b>mysql_field_name</b>
255 * <b>mysql_field_type</b>.
256 * @removed 7.0
257 */
258#[Deprecated(since: '5.5')]
259function mysql_list_fields ($database_name, $table_name, $link_identifier = null) {}
260
261/**
262 * List MySQL processes
263 * @link https://php.net/manual/en/function.mysql-list-processes.php
264 * @param resource $link_identifier [optional]
265 * @return resource|false A result pointer resource on success or false on failure.
266 * @removed 7.0
267 */
268#[Deprecated(since: '5.5')]
269function mysql_list_processes ($link_identifier = null) {}
270
271/**
272 * Returns the text of the error message from previous MySQL operation
273 * @link https://php.net/manual/en/function.mysql-error.php
274 * @param resource $link_identifier [optional]
275 * @return string the error text from the last MySQL function, or
276 * '' (empty string) if no error occurred.
277 * @removed 7.0
278 */
279#[Deprecated(since: '5.5')]
280function mysql_error ($link_identifier = null) {}
281
282/**
283 * Returns the numerical value of the error message from previous MySQL operation
284 * @link https://php.net/manual/en/function.mysql-errno.php
285 * @param resource $link_identifier [optional]
286 * @return int the error number from the last MySQL function, or
287 * 0 (zero) if no error occurred.
288 * @removed 7.0
289 */
290#[Deprecated(since: '5.5')]
291function mysql_errno ($link_identifier = null) {}
292
293/**
294 * Get number of affected rows in previous MySQL operation
295 * @link https://php.net/manual/en/function.mysql-affected-rows.php
296 * @param resource $link_identifier [optional]
297 * @return int the number of affected rows on success, and -1 if the last query
298 * failed.
299 * </p>
300 * <p>
301 * If the last query was a DELETE query with no WHERE clause, all
302 * of the records will have been deleted from the table but this
303 * function will return zero with MySQL versions prior to 4.1.2.
304 * </p>
305 * <p>
306 * When using UPDATE, MySQL will not update columns where the new value is the
307 * same as the old value. This creates the possibility that
308 * <b>mysql_affected_rows</b> may not actually equal the number
309 * of rows matched, only the number of rows that were literally affected by
310 * the query.
311 * </p>
312 * <p>
313 * The REPLACE statement first deletes the record with the same primary key
314 * and then inserts the new record. This function returns the number of
315 * deleted records plus the number of inserted records.
316 * @removed 7.0
317 */
318#[Deprecated(since: '5.5')]
319function mysql_affected_rows ($link_identifier = null) {}
320
321/**
322 * Get the ID generated in the last query
323 * @link https://php.net/manual/en/function.mysql-insert-id.php
324 * @param resource $link_identifier [optional]
325 * @return int The ID generated for an AUTO_INCREMENT column by the previous
326 * query on success, 0 if the previous
327 * query does not generate an AUTO_INCREMENT value, or false if
328 * no MySQL connection was established.
329 * @removed 7.0
330 */
331#[Deprecated(since: '5.5')]
332function mysql_insert_id ($link_identifier = null) {}
333
334/**
335 * Get result data
336 * @link https://php.net/manual/en/function.mysql-result.php
337 * @param resource $result
338 * @param int $row <p>
339 * The row number from the result that's being retrieved. Row numbers
340 * start at 0.
341 * </p>
342 * @param mixed $field [optional] <p>
343 * The name or offset of the field being retrieved.
344 * </p>
345 * <p>
346 * It can be the field's offset, the field's name, or the field's table
347 * dot field name (tablename.fieldname). If the column name has been
348 * aliased ('select foo as bar from...'), use the alias instead of the
349 * column name. If undefined, the first field is retrieved.
350 * </p>
351 * @return string The contents of one cell from a MySQL result set on success, or
352 * false on failure.
353 * @removed 7.0
354 */
355#[Deprecated(since: '5.5')]
356function mysql_result ($result, $row, $field = 0) {}
357
358/**
359 * Get number of rows in result
360 * @link https://php.net/manual/en/function.mysql-num-rows.php
361 * @param resource $result <p>The result resource that is being evaluated. This result comes from a call to mysql_query().</p>
362 * @return int|false <p>The number of rows in the result set on success or FALSE on failure. </p>
363 * @removed 7.0
364 */
365#[Deprecated(since: '5.5')]
366function mysql_num_rows ($result) {}
367
368/**
369 * Get number of fields in result
370 * @link https://php.net/manual/en/function.mysql-num-fields.php
371 * @param resource $result
372 * @return int the number of fields in the result set resource on
373 * success or false on failure.
374 * @removed 7.0
375 */
376#[Deprecated(since: '5.5')]
377function mysql_num_fields ($result) {}
378
379/**
380 * Get a result row as an enumerated array
381 * @link https://php.net/manual/en/function.mysql-fetch-row.php
382 * @param resource $result
383 * @return array an numerical array of strings that corresponds to the fetched row, or
384 * false if there are no more rows.
385 * </p>
386 * <p>
387 * <b>mysql_fetch_row</b> fetches one row of data from
388 * the result associated with the specified result identifier. The
389 * row is returned as an array. Each result column is stored in an
390 * array offset, starting at offset 0.
391 * @removed 7.0
392 */
393#[Deprecated(since: '5.5')]
394function mysql_fetch_row ($result) {}
395
396/**
397 * Fetch a result row as an associative array, a numeric array, or both
398 * @link https://php.net/manual/en/function.mysql-fetch-array.php
399 * @param resource $result
400 * @param int $result_type [optional] <p>
401 * The type of array that is to be fetched. It's a constant and can
402 * take the following values: <b>MYSQL_ASSOC</b>,
403 * <b>MYSQL_NUM</b>, and
404 * <b>MYSQL_BOTH</b>.
405 * </p>
406 * @return array|false an array of strings that corresponds to the fetched row, or false
407 * if there are no more rows. The type of returned array depends on
408 * how <i>result_type</i> is defined. By using
409 * <b>MYSQL_BOTH</b> (default), you'll get an array with both
410 * associative and number indices. Using <b>MYSQL_ASSOC</b>, you
411 * only get associative indices (as <b>mysql_fetch_assoc</b>
412 * works), using <b>MYSQL_NUM</b>, you only get number indices
413 * (as <b>mysql_fetch_row</b> works).
414 * </p>
415 * <p>
416 * If two or more columns of the result have the same field names,
417 * the last column will take precedence. To access the other column(s)
418 * of the same name, you must use the numeric index of the column or
419 * make an alias for the column. For aliased columns, you cannot
420 * access the contents with the original column name.
421 * @removed 7.0
422 */
423#[Deprecated(since: '5.5')]
424function mysql_fetch_array ($result, $result_type = MYSQL_BOTH) {}
425
426/**
427 * Fetch a result row as an associative array
428 * @link https://php.net/manual/en/function.mysql-fetch-assoc.php
429 * @param resource $result
430 * @return array an associative array of strings that corresponds to the fetched row, or
431 * false if there are no more rows.
432 * </p>
433 * <p>
434 * If two or more columns of the result have the same field names,
435 * the last column will take precedence. To access the other
436 * column(s) of the same name, you either need to access the
437 * result with numeric indices by using
438 * <b>mysql_fetch_row</b> or add alias names.
439 * See the example at the <b>mysql_fetch_array</b>
440 * description about aliases.
441 * @removed 7.0
442 */
443#[Deprecated(since: '5.5')]
444function mysql_fetch_assoc ($result) {}
445
446/**
447 * Fetch a result row as an object
448 * @link https://php.net/manual/en/function.mysql-fetch-object.php
449 * @param resource $result
450 * @param string $class_name [optional] <p>
451 * The name of the class to instantiate, set the properties of and return.
452 * If not specified, a <b>stdClass</b> object is returned.
453 * </p>
454 * @param array $params [optional] <p>
455 * An optional array of parameters to pass to the constructor
456 * for <i>class_name</i> objects.
457 * </p>
458 * @return stdClass|object an object with string properties that correspond to the
459 * fetched row, or false if there are no more rows.
460 * </p>
461 * <p>
462 * mysql_fetch_row fetches one row of data from
463 * the result associated with the specified result identifier. The
464 * row is returned as an array. Each result column is stored in an
465 * array offset, starting at offset 0.
466 * @removed 7.0
467 */
468#[Deprecated(since: '5.5')]
469function mysql_fetch_object ($result, $class_name = 'stdClass', array $params = null ) {}
470
471/**
472 * Move internal result pointer
473 * @link https://php.net/manual/en/function.mysql-data-seek.php
474 * @param resource $result
475 * @param int $row_number <p>
476 * The desired row number of the new result pointer.
477 * </p>
478 * @return bool true on success or false on failure.
479 * @removed 7.0
480 */
481#[Deprecated(since: '5.5')]
482function mysql_data_seek ($result, $row_number) {}
483
484/**
485 * Get the length of each output in a result
486 * @link https://php.net/manual/en/function.mysql-fetch-lengths.php
487 * @param resource $result
488 * @return array|false An array of lengths on success or false on failure.
489 * @removed 7.0
490 */
491#[Deprecated(since: '5.5')]
492function mysql_fetch_lengths ($result) {}
493
494/**
495 * Get column information from a result and return as an object
496 * @link https://php.net/manual/en/function.mysql-fetch-field.php
497 * @param resource $result
498 * @param int $field_offset [optional] <p>
499 * The numerical field offset. If the field offset is not specified, the
500 * next field that was not yet retrieved by this function is retrieved.
501 * The <i>field_offset</i> starts at 0.
502 * </p>
503 * @return object an object containing field information. The properties
504 * of the object are:
505 * </p>
506 * <p>
507 * name - column name
508 * table - name of the table the column belongs to
509 * def - default value of the column
510 * max_length - maximum length of the column
511 * not_null - 1 if the column cannot be null
512 * primary_key - 1 if the column is a primary key
513 * unique_key - 1 if the column is a unique key
514 * multiple_key - 1 if the column is a non-unique key
515 * numeric - 1 if the column is numeric
516 * blob - 1 if the column is a BLOB
517 * type - the type of the column
518 * unsigned - 1 if the column is unsigned
519 * zerofill - 1 if the column is zero-filled
520 * @removed 7.0
521 */
522#[Deprecated(since: '5.5')]
523function mysql_fetch_field ($result, $field_offset = 0) {}
524
525/**
526 * Set result pointer to a specified field offset
527 * @link https://php.net/manual/en/function.mysql-field-seek.php
528 * @param resource $result
529 * @param int $field_offset
530 * @return bool true on success or false on failure.
531 * @removed 7.0
532 */
533#[Deprecated(since: '5.5')]
534function mysql_field_seek ($result, $field_offset) {}
535
536/**
537 * Free result memory
538 * @link https://php.net/manual/en/function.mysql-free-result.php
539 * @param resource $result
540 * @return bool true on success or false on failure.
541 * <p>
542 * If a non-resource is used for the result, an
543 * error of level E_WARNING will be emitted. It's worth noting that
544 * mysql_query only returns a resource
545 * for SELECT, SHOW, EXPLAIN, and DESCRIBE queries.
546 * </p>
547 * @removed 7.0
548 */
549#[Deprecated(since: '5.5')]
550function mysql_free_result ($result) {}
551
552/**
553 * Get the name of the specified field in a result
554 * @link https://php.net/manual/en/function.mysql-field-name.php
555 * @param resource $result
556 * @param int $field_offset
557 * @return string|false The name of the specified field index on success or false on failure.
558 * @removed 7.0
559 */
560#[Deprecated(since: '5.5')]
561function mysql_field_name ($result, $field_offset) {}
562
563/**
564 * Get name of the table the specified field is in
565 * @link https://php.net/manual/en/function.mysql-field-table.php
566 * @param resource $result
567 * @param int $field_offset
568 * @return string The name of the table on success.
569 * @removed 7.0
570 */
571#[Deprecated(since: '5.5')]
572function mysql_field_table ($result, $field_offset) {}
573
574/**
575 * Returns the length of the specified field
576 * @link https://php.net/manual/en/function.mysql-field-len.php
577 * @param resource $result
578 * @param int $field_offset
579 * @return int|false The length of the specified field index on success or false on failure.
580 * @removed 7.0
581 */
582#[Deprecated(since: '5.5')]
583function mysql_field_len ($result, $field_offset) {}
584
585/**
586 * Get the type of the specified field in a result
587 * @link https://php.net/manual/en/function.mysql-field-type.php
588 * @param resource $result
589 * @param int $field_offset
590 * @return string The returned field type
591 * will be one of "int", "real",
592 * "string", "blob", and others as
593 * detailed in the MySQL
594 * documentation.
595 * @removed 7.0
596 */
597#[Deprecated(since: '5.5')]
598function mysql_field_type ($result, $field_offset) {}
599
600/**
601 * Get the flags associated with the specified field in a result
602 * @link https://php.net/manual/en/function.mysql-field-flags.php
603 * @param resource $result
604 * @param int $field_offset
605 * @return string|false a string of flags associated with the result or false on failure.
606 * <p>
607 * The following flags are reported, if your version of MySQL
608 * is current enough to support them: "not_null",
609 * "primary_key", "unique_key",
610 * "multiple_key", "blob",
611 * "unsigned", "zerofill",
612 * "binary", "enum",
613 * "auto_increment" and "timestamp".
614 * </p>
615 * @removed 7.0
616 */
617#[Deprecated(since: '5.5')]
618function mysql_field_flags ($result, $field_offset) {}
619
620/**
621 * Escapes a string for use in a mysql_query
622 * @link https://php.net/manual/en/function.mysql-escape-string.php
623 * @param string $unescaped_string <p>
624 * The string that is to be escaped.
625 * </p>
626 * @return string the escaped string.
627 * @removed 7.0
628 */
629#[Deprecated(replacement: 'mysql_real_escape_string(%parameter0%)',since: '5.3')]
630function mysql_escape_string ($unescaped_string) {}
631
632/**
633 * Escapes special characters in a string for use in an SQL statement
634 * @link https://php.net/manual/en/function.mysql-real-escape-string.php
635 * @param string $unescaped_string <p>
636 * The string that is to be escaped.
637 * </p>
638 * @param resource $link_identifier [optional]
639 * @return string|false the escaped string, or false on error.
640 * @removed 7.0
641 */
642#[Deprecated(since: '5.5')]
643function mysql_real_escape_string ($unescaped_string, $link_identifier = null) {}
644
645/**
646 * Get current system status
647 * @link https://php.net/manual/en/function.mysql-stat.php
648 * @param resource $link_identifier [optional]
649 * @return string a string with the status for uptime, threads, queries, open tables,
650 * flush tables and queries per second. For a complete list of other status
651 * variables, you have to use the SHOW STATUS SQL command.
652 * If <i>link_identifier</i> is invalid, null is returned.
653 * @removed 7.0
654 */
655#[Deprecated(since: '5.5')]
656function mysql_stat ($link_identifier = null) {}
657
658/**
659 * Return the current thread ID
660 * @link https://php.net/manual/en/function.mysql-thread-id.php
661 * @param resource $link_identifier [optional]
662 * @return int|false The thread ID on success or false on failure.
663 * @removed 7.0
664 */
665#[Deprecated(since: '5.5')]
666function mysql_thread_id ($link_identifier = null) {}
667
668/**
669 * Returns the name of the character set
670 * @link https://php.net/manual/en/function.mysql-client-encoding.php
671 * @param resource $link_identifier [optional]
672 * @return string the default character set name for the current connection.
673 * @removed 7.0
674 */
675#[Deprecated(since: '5.5')]
676function mysql_client_encoding ($link_identifier = null) {}
677
678/**
679 * Ping a server connection or reconnect if there is no connection
680 * @link https://php.net/manual/en/function.mysql-ping.php
681 * @param resource $link_identifier [optional]
682 * @return bool true if the connection to the server MySQL server is working,
683 * otherwise false.
684 * @removed 7.0
685 */
686#[Deprecated(since: '5.5')]
687function mysql_ping ($link_identifier = null) {}
688
689/**
690 * Get MySQL client info
691 * @link https://php.net/manual/en/function.mysql-get-client-info.php
692 * @return string The MySQL client version.
693 * @removed 7.0
694 */
695#[Deprecated(since: '5.5')]
696function mysql_get_client_info () {}
697
698/**
699 * Get MySQL host info
700 * @link https://php.net/manual/en/function.mysql-get-host-info.php
701 * @param resource $link_identifier [optional]
702 * @return string a string describing the type of MySQL connection in use for the
703 * connection or false on failure.
704 * @removed 7.0
705 */
706#[Deprecated(since: '5.5')]
707function mysql_get_host_info ($link_identifier = null) {}
708
709/**
710 * Get MySQL protocol info
711 * @link https://php.net/manual/en/function.mysql-get-proto-info.php
712 * @param resource $link_identifier [optional]
713 * @return int|false the MySQL protocol on success or false on failure.
714 * @removed 7.0
715 */
716#[Deprecated(since: '5.5')]
717function mysql_get_proto_info ($link_identifier = null) {}
718
719/**
720 * Get MySQL server info
721 * @link https://php.net/manual/en/function.mysql-get-server-info.php
722 * @param resource $link_identifier [optional]
723 * @return string|false the MySQL server version on success or false on failure.
724 * @removed 7.0
725 */
726#[Deprecated(since: '5.5')]
727function mysql_get_server_info ($link_identifier = null) {}
728
729/**
730 * Get information about the most recent query
731 * @link https://php.net/manual/en/function.mysql-info.php
732 * @param resource $link_identifier [optional]
733 * @return string|false information about the statement on success, or false on
734 * failure. See the example below for which statements provide information,
735 * and what the returned value may look like. Statements that are not listed
736 * will return false.
737 * @removed 7.0
738 */
739#[Deprecated(since: '5.5')]
740function mysql_info ($link_identifier = null) {}
741
742/**
743 * Sets the client character set
744 * @link https://php.net/manual/en/function.mysql-set-charset.php
745 * @param string $charset <p>
746 * A valid character set name.
747 * </p>
748 * @param resource $link_identifier [optional]
749 * @return bool true on success or false on failure.
750 * @since 5.2.3
751 * @removed 7.0
752 * @see mysqli_set_charset()
753 */
754#[Deprecated(replacement: 'Use mysqli_set_charset instead',since: '5.5')]
755function mysql_set_charset ($charset, $link_identifier = null) {}
756
757/**
758 * @param $database_name
759 * @param $query
760 * @param $link_identifier [optional]
761 * @removed 7.0
762 */
763#[Deprecated(replacement: "mysql_db_query(%parametersList%)", since: '5.3')]
764function mysql ($database_name, $query, $link_identifier) {}
765
766/**
767 * @param $result
768 * @param $field_index
769 * @removed 7.0
770 */
771#[Deprecated(replacement: 'mysql_field_name(%parametersList%)', since: '5.5')]
772function mysql_fieldname ($result, $field_index) {}
773
774/**
775 * @param $result
776 * @param $field_offset
777 * @removed 7.0
778 */
779#[Deprecated(replacement: 'mysql_field_table(%parametersList%)', since: '5.5')]
780function mysql_fieldtable ($result, $field_offset) {}
781
782/**
783 * @param $result
784 * @param $field_offset
785 * @removed 7.0
786 */
787#[Deprecated(replacement: 'mysql_field_len(%parametersList%)', since: '5.5')]
788function mysql_fieldlen ($result, $field_offset) {}
789
790/**
791 * @param $result
792 * @param $field_offset
793 * @removed 7.0
794 */
795#[Deprecated(replacement: 'mysql_field_type(%parametersList%)', since: '5.5')]
796function mysql_fieldtype ($result, $field_offset) {}
797
798/**
799 * @param $result
800 * @param $field_offset
801 * @removed 7.0
802 */
803#[Deprecated(replacement: 'mysql_field_flags(%parametersList%)', since: '5.5')]
804function mysql_fieldflags ($result, $field_offset) {}
805
806/**
807 * @param $database_name
808 * @param $link_identifier [optional]
809 * @removed 7.0
810 */
811#[Deprecated(replacement: 'mysql_select_db(%parametersList%)', since: '5.5')]
812function mysql_selectdb ($database_name, $link_identifier) {}
813
814/**
815 * @param $result
816 * @removed 7.0
817 */
818#[Deprecated(replacement: 'mysql_free_result(%parametersList%)', since: '5.5')]
819function mysql_freeresult ($result) {}
820
821/**
822 * @param $result
823 * @removed 7.0
824 */
825#[Deprecated(replacement: 'mysql_num_fields(%parametersList%)', since: '5.5')]
826function mysql_numfields ($result) {}
827
828/**
829 * (PHP 4, PHP 5)
830 * Alias of mysql_num_rows()
831 * @link https://php.net/manual/en/function.mysql-num-rows.php
832 * @param resource $result <p>The result resource that is being evaluated. This result comes from a call to mysql_query().</p>
833 * @return int|false <p>The number of rows in the result set on success or FALSE on failure. </p>
834 * @removed 7.0
835 */
836#[Deprecated(replacement: 'mysql_num_rows(%parametersList%)', since: '5.5')]
837function mysql_numrows ($result) {}
838
839/**
840 * @param $link_identifier [optional]
841 * @removed 7.0
842 */
843#[Deprecated(replacement: 'mysql_list_dbs(%parametersList%)', since: '5.5')]
844function mysql_listdbs ($link_identifier) {}
845
846/**
847 * @param $database_name
848 * @param $link_identifier [optional]
849 * @removed 7.0
850 */
851#[Deprecated(replacement: 'mysql_list_tables(%parametersList%)', since: '5.5')]
852function mysql_listtables ($database_name, $link_identifier) {}
853
854/**
855 * @param $database_name
856 * @param $table_name
857 * @param $link_identifier [optional]
858 * @removed 7.0
859 */
860#[Deprecated(replacement: 'mysql_list_fields(%parametersList%)', since: '5.5')]
861function mysql_listfields ($database_name, $table_name, $link_identifier) {}
862
863/**
864 * Retrieves database name from the call to {@see mysql_list_dbs}
865 * @link https://php.net/manual/en/function.mysql-db-name.php
866 * @param resource $result <p>
867 * The result pointer from a call to <b>mysql_list_dbs</b>.
868 * </p>
869 * @param int $row <p>
870 * The index into the result set.
871 * </p>
872 * @param mixed $field [optional] <p>
873 * The field name.
874 * </p>
875 * @return string|false the database name on success, and false on failure. If false
876 * is returned, use <b>mysql_error</b> to determine the nature
877 * of the error.
878 * @removed 7.0
879 */
880#[Deprecated(since: '5.5')]
881function mysql_db_name ($result, $row, $field = null) {}
882
883/**
884 * @param $result
885 * @param $row
886 * @param $field [optional]
887 * @removed 7.0
888 */
889#[Deprecated(replacement: 'mysql_db_name(%parametersList%)', since: '5.5')]
890function mysql_dbname ($result, $row, $field) {}
891
892/**
893 * Get table name of field
894 * @link https://php.net/manual/en/function.mysql-tablename.php
895 * @param resource $result <p>
896 * A result pointer resource that's returned from
897 * <b>mysql_list_tables</b>.
898 * </p>
899 * @param int $i <p>
900 * The integer index (row/table number)
901 * </p>
902 * @return string|false The name of the table on success or false on failure.
903 * <p>
904 * Use the <b>mysql_tablename</b> function to
905 * traverse this result pointer, or any function for result tables,
906 * such as <b>mysql_fetch_array</b>.
907 * </p>
908 * @removed 7.0
909 */
910#[Deprecated(since: '5.5')]
911function mysql_tablename ($result, $i) {}
912
913/**
914 * @param $result
915 * @param $row
916 * @param $field [optional]
917 * @removed 7.0
918 */
919#[Deprecated(since: '5.5')]
920function mysql_table_name ($result, $row, $field) {}
921
922
923/**
924 * Columns are returned into the array having the fieldname as the array
925 * index.
926 * @link https://php.net/manual/en/mysql.constants.php
927 * @deprecated 5.5
928 * @removed 7.0
929 */
930define ('MYSQL_ASSOC', 1);
931
932/**
933 * Columns are returned into the array having a numerical index to the
934 * fields. This index starts with 0, the first field in the result.
935 * @link https://php.net/manual/en/mysql.constants.php
936 * @deprecated 5.5
937 * @removed 7.0
938 */
939define ('MYSQL_NUM', 2);
940
941/**
942 * Columns are returned into the array having both a numerical index
943 * and the fieldname as the array index.
944 * @link https://php.net/manual/en/mysql.constants.php
945 * @deprecated 5.5
946 * @removed 7.0
947 */
948define ('MYSQL_BOTH', 3);
949
950/**
951 * Use compression protocol
952 * @link https://php.net/manual/en/mysql.constants.php
953 * @deprecated 5.5
954 * @removed 7.0
955 */
956define ('MYSQL_CLIENT_COMPRESS', 32);
957
958/**
959 * Use SSL encryption. This flag is only available with version 4.x
960 * of the MySQL client library or newer. Version 3.23.x is bundled both
961 * with PHP 4 and Windows binaries of PHP 5.
962 * @link https://php.net/manual/en/mysql.constants.php
963 * @deprecated 5.5
964 * @removed 7.0
965 */
966define ('MYSQL_CLIENT_SSL', 2048);
967
968/**
969 * Allow interactive_timeout seconds (instead of wait_timeout) of
970 * inactivity before closing the connection.
971 * @link https://php.net/manual/en/mysql.constants.php
972 * @deprecated 5.5
973 * @removed 7.0
974 */
975define ('MYSQL_CLIENT_INTERACTIVE', 1024);
976
977/**
978 * Allow space after function names
979 * @link https://php.net/manual/en/mysql.constants.php
980 * @deprecated 5.5
981 * @removed 7.0
982 */
983define ('MYSQL_CLIENT_IGNORE_SPACE', 256);
984
985// End of mysql v.1.0
986?>
987