Lines Matching refs:w
39 void php_clear_warnings(MYSQLI_WARNING *w) in php_clear_warnings() argument
43 while (w) { in php_clear_warnings()
44 n = w; in php_clear_warnings()
45 zval_dtor(&(w->reason)); in php_clear_warnings()
46 zval_dtor(&(w->sqlstate)); in php_clear_warnings()
47 w = w->next; in php_clear_warnings()
58 MYSQLI_WARNING *w; in php_new_warning() local
60 w = (MYSQLI_WARNING *)ecalloc(1, sizeof(MYSQLI_WARNING)); in php_new_warning()
62 ZVAL_UTF8_STRING(&(w->reason), reason, ZSTR_DUPLICATE); in php_new_warning()
64 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE); in php_new_warning()
66 w->errorno = errorno; in php_new_warning()
68 return w; in php_new_warning()
75 MYSQLI_WARNING *w, *first = NULL, *prev = NULL; in php_get_warnings() local
86 w = php_new_warning(row[2], atoi(row[1])); in php_get_warnings()
88 first = w; in php_get_warnings()
91 prev->next = w; in php_get_warnings()
93 prev = w; in php_get_warnings()
104 MYSQLI_WARNING *w; in php_new_warning() local
106 w = (MYSQLI_WARNING *)ecalloc(1, sizeof(MYSQLI_WARNING)); in php_new_warning()
108 ZVAL_COPY(&w->reason, reason); in php_new_warning()
109 convert_to_string(&w->reason); in php_new_warning()
111 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE); in php_new_warning()
113 w->errorno = errorno; in php_new_warning()
115 return w; in php_new_warning()
122 MYSQLI_WARNING *w, *first = NULL, *prev = NULL; in php_get_warnings() local
154 w = php_new_warning(entry, errno); in php_get_warnings()
161 first = w; in php_get_warnings()
164 prev->next = (void *)w; in php_get_warnings()
166 prev = w; in php_get_warnings()
180 MYSQLI_WARNING *w; in PHP_METHOD() local
190 MYSQLI_FETCH_RESOURCE(w, MYSQLI_WARNING *, mysqli_warning, "mysqli_warning", MYSQLI_STATUS_VALID); in PHP_METHOD()
192 if (w && w->next) { in PHP_METHOD()
193 w = w->next; in PHP_METHOD()
194 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD()
206 MYSQLI_WARNING *w; in mysqli_warning_message() local
212 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message()
213 ZVAL_COPY(retval, &w->reason); in mysqli_warning_message()
222 MYSQLI_WARNING *w; in mysqli_warning_sqlstate() local
228 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate()
229 ZVAL_COPY(retval, &w->sqlstate); in mysqli_warning_sqlstate()
238 MYSQLI_WARNING *w; in mysqli_warning_errno() local
243 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_errno()
244 ZVAL_LONG(retval, w->errorno); in mysqli_warning_errno()
257 MYSQLI_WARNING *w; local
273 w = php_get_warnings(mysql->mysql);
275 w = php_get_warnings(mysql->mysql->data);
287 w = php_get_warnings(hdl);
290 w = php_get_warnings(mysqli_stmt_get_connection(stmt->stmt));
302 mysqli_resource->ptr = mysqli_resource->info = (void *)w;