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_ptr_dtor_str(&(w->reason)); in php_clear_warnings()
46 zval_ptr_dtor_str(&(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
153 w = php_new_warning(entry, errno); in php_get_warnings()
160 first = w; in php_get_warnings()
163 prev->next = (void *)w; in php_get_warnings()
165 prev = w; in php_get_warnings()
179 MYSQLI_WARNING *w; in PHP_METHOD() local
189 MYSQLI_FETCH_RESOURCE(w, MYSQLI_WARNING *, mysqli_warning, "mysqli_warning", MYSQLI_STATUS_VALID); in PHP_METHOD()
191 if (w && w->next) { in PHP_METHOD()
192 w = w->next; in PHP_METHOD()
193 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD()
204 MYSQLI_WARNING *w; in mysqli_warning_message() local
215 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message()
216 ZVAL_COPY(retval, &w->reason); in mysqli_warning_message()
225 MYSQLI_WARNING *w; in mysqli_warning_sqlstate() local
236 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate()
237 ZVAL_COPY(retval, &w->sqlstate); in mysqli_warning_sqlstate()
246 MYSQLI_WARNING *w; in mysqli_warning_errno() local
257 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_errno()
258 ZVAL_LONG(retval, w->errorno); in mysqli_warning_errno()
272 MYSQLI_WARNING *w; local
285 w = php_get_warnings(mysql->mysql);
287 w = php_get_warnings(mysql->mysql->data);
299 w = php_get_warnings(hdl);
302 w = php_get_warnings(mysqli_stmt_get_connection(stmt->stmt));
314 mysqli_resource->ptr = mysqli_resource->info = (void *)w;