Lines Matching refs:w

37 void php_clear_warnings(MYSQLI_WARNING *w)  in php_clear_warnings()  argument
41 while (w) { in php_clear_warnings()
42 n = w; in php_clear_warnings()
43 zval_ptr_dtor_str(&(w->reason)); in php_clear_warnings()
44 zval_ptr_dtor_str(&(w->sqlstate)); in php_clear_warnings()
45 w = w->next; in php_clear_warnings()
56 MYSQLI_WARNING *w; in php_new_warning() local
58 w = (MYSQLI_WARNING *)ecalloc(1, sizeof(MYSQLI_WARNING)); in php_new_warning()
60 ZVAL_UTF8_STRING(&(w->reason), reason, ZSTR_DUPLICATE); in php_new_warning()
62 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE); in php_new_warning()
64 w->errorno = errorno; in php_new_warning()
66 return w; in php_new_warning()
73 MYSQLI_WARNING *w, *first = NULL, *prev = NULL; in php_get_warnings() local
84 w = php_new_warning(row[2], atoi(row[1])); in php_get_warnings()
86 first = w; in php_get_warnings()
89 prev->next = w; in php_get_warnings()
91 prev = w; in php_get_warnings()
102 MYSQLI_WARNING *w; in php_new_warning() local
104 w = (MYSQLI_WARNING *)ecalloc(1, sizeof(MYSQLI_WARNING)); in php_new_warning()
106 ZVAL_COPY(&w->reason, reason); in php_new_warning()
107 convert_to_string(&w->reason); in php_new_warning()
109 ZVAL_UTF8_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1, ZSTR_DUPLICATE); in php_new_warning()
111 w->errorno = errorno; in php_new_warning()
113 return w; in php_new_warning()
120 MYSQLI_WARNING *w, *first = NULL, *prev = NULL; in php_get_warnings() local
151 w = php_new_warning(entry, errno); in php_get_warnings()
158 first = w; in php_get_warnings()
161 prev->next = (void *)w; in php_get_warnings()
163 prev = w; in php_get_warnings()
177 MYSQLI_WARNING *w; in PHP_METHOD() local
185 MYSQLI_FETCH_RESOURCE(w, MYSQLI_WARNING *, ZEND_THIS, "mysqli_warning", MYSQLI_STATUS_VALID); in PHP_METHOD()
187 if (w && w->next) { in PHP_METHOD()
188 w = w->next; in PHP_METHOD()
189 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD()
200 MYSQLI_WARNING *w; in mysqli_warning_message() local
210 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message()
211 ZVAL_COPY(retval, &w->reason); in mysqli_warning_message()
220 MYSQLI_WARNING *w; in mysqli_warning_sqlstate() local
230 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate()
231 ZVAL_COPY(retval, &w->sqlstate); in mysqli_warning_sqlstate()
240 MYSQLI_WARNING *w; in mysqli_warning_errno() local
250 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_errno()
251 ZVAL_LONG(retval, w->errorno); in mysqli_warning_errno()