Download src/php/php-src/ext/mysqli/php_mysqli_structs.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 7.69 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mysqli/php_mysqli_structs.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/mysqli/php_mysqli_structs.h
-
curl -L -o php_mysqli_structs.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mysqli/php_mysqli_structs.h
7.69 kB
| /* | |
| +----------------------------------------------------------------------+ | |
| | Copyright (c) The PHP Group | | |
| +----------------------------------------------------------------------+ | |
| | This source file is subject to version 3.01 of the PHP license, | | |
| | that is bundled with this package in the file LICENSE, and is | | |
| | available through the world-wide-web at the following url: | | |
| | https://www.php.net/license/3_01.txt | | |
| | If you did not receive a copy of the PHP license and are unable to | | |
| | obtain it through the world-wide-web, please send a note to | | |
| | license@php.net so we can mail you a copy immediately. | | |
| +----------------------------------------------------------------------+ | |
| | Authors: Georg Richter <georg@php.net> | | |
| | Andrey Hristov <andrey@php.net> | | |
| | Ulf Wendel <uw@php.net> | | |
| +----------------------------------------------------------------------+ | |
| */ | |
| /* A little hack to prevent build break, when mysql is used together with | |
| * c-client, which also defines LIST. | |
| */ | |
| enum mysqli_status { | |
| MYSQLI_STATUS_UNKNOWN=0, | |
| MYSQLI_STATUS_INITIALIZED, | |
| MYSQLI_STATUS_VALID | |
| }; | |
| typedef struct { | |
| char *val; | |
| zend_ulong buflen; | |
| zend_ulong output_len; | |
| zend_ulong type; | |
| } VAR_BUFFER; | |
| typedef struct { | |
| unsigned int var_cnt; | |
| VAR_BUFFER *buf; | |
| zval *vars; | |
| my_bool *is_null; | |
| } BIND_BUFFER; | |
| typedef struct { | |
| MYSQL_STMT *stmt; | |
| BIND_BUFFER param; | |
| BIND_BUFFER result; | |
| char *query; | |
| } MY_STMT; | |
| typedef struct { | |
| MYSQL *mysql; | |
| zend_string *hash_key; | |
| zval li_read; | |
| php_stream *li_stream; | |
| unsigned int multi_query; | |
| bool persistent; | |
| int async_result_fetch_type; | |
| } MY_MYSQL; | |
| typedef struct { | |
| void *ptr; /* resource: (mysql, result, stmt) */ | |
| void *info; /* additional buffer */ | |
| enum mysqli_status status; /* object status */ | |
| } MYSQLI_RESOURCE; | |
| typedef struct _mysqli_object { | |
| void *ptr; | |
| HashTable *prop_handler; | |
| zend_object zo; | |
| } mysqli_object; /* extends zend_object */ | |
| static inline mysqli_object *php_mysqli_fetch_object(zend_object *obj) { | |
| return (mysqli_object *)((char*)(obj) - XtOffsetOf(mysqli_object, zo)); | |
| } | |
| typedef struct st_mysqli_warning MYSQLI_WARNING; | |
| struct st_mysqli_warning { | |
| zval reason; | |
| zval sqlstate; | |
| int errorno; | |
| MYSQLI_WARNING *next; | |
| }; | |
| typedef struct _mysqli_property_entry { | |
| const char *pname; | |
| size_t pname_length; | |
| zend_result (*r_func)(mysqli_object *obj, zval *retval, bool quiet); | |
| zend_result (*w_func)(mysqli_object *obj, zval *value); | |
| } mysqli_property_entry; | |
| typedef struct { | |
| zend_ptr_stack free_links; | |
| } mysqli_plist_entry; | |
| typedef __int64 my_longlong; | |
| typedef int64_t my_longlong; | |
| /* we need this for PRIu64 and PRId64 */ | |
| extern zend_class_entry *mysqli_link_class_entry; | |
| extern zend_class_entry *mysqli_stmt_class_entry; | |
| extern zend_class_entry *mysqli_result_class_entry; | |
| extern zend_class_entry *mysqli_driver_class_entry; | |
| extern zend_class_entry *mysqli_warning_class_entry; | |
| extern zend_class_entry *mysqli_exception_class_entry; | |
| extern int php_le_pmysqli(void); | |
| extern void php_mysqli_dtor_p_elements(void *data); | |
| extern void php_mysqli_close(MY_MYSQL * mysql, int close_type, int resource_status); | |
| extern const zend_object_iterator_funcs php_mysqli_result_iterator_funcs; | |
| extern zend_object_iterator *php_mysqli_result_get_iterator(zend_class_entry *ce, zval *object, int by_ref); | |
| extern void php_mysqli_fetch_into_hash_aux(zval *return_value, MYSQL_RES * result, zend_long fetchtype); | |
| ZEND_BEGIN_MODULE_GLOBALS(mysqli) | |
| zend_long num_links; | |
| zend_long max_links; | |
| zend_long num_active_persistent; | |
| zend_long num_inactive_persistent; | |
| zend_long max_persistent; | |
| bool allow_persistent; | |
| zend_ulong default_port; | |
| char *default_host; | |
| char *default_user; | |
| char *default_pw; | |
| char *default_socket; | |
| bool allow_local_infile; | |
| char *local_infile_directory; | |
| zend_long error_no; | |
| char *error_msg; | |
| zend_long report_mode; | |
| bool rollback_on_cached_plink; | |
| ZEND_END_MODULE_GLOBALS(mysqli) | |
| ZEND_TSRMLS_CACHE_EXTERN() | |
| ZEND_EXTERN_MODULE_GLOBALS(mysqli) | |