Lines Matching refs:w

28 void php_clear_warnings(MYSQLI_WARNING *w)  in php_clear_warnings()  argument
32 while (w) { in php_clear_warnings()
33 n = w; in php_clear_warnings()
34 zval_ptr_dtor_str(&(w->reason)); in php_clear_warnings()
35 zval_ptr_dtor_str(&(w->sqlstate)); in php_clear_warnings()
36 w = w->next; in php_clear_warnings()
46 MYSQLI_WARNING *w; in php_new_warning() local
48 w = (MYSQLI_WARNING *)ecalloc(1, sizeof(MYSQLI_WARNING)); in php_new_warning()
50 ZVAL_COPY(&w->reason, reason); in php_new_warning()
51 convert_to_string(&w->reason); in php_new_warning()
53 ZVAL_STRINGL(&(w->sqlstate), "HY000", sizeof("HY000") - 1); in php_new_warning()
55 w->errorno = errorno; in php_new_warning()
57 return w; in php_new_warning()
64 MYSQLI_WARNING *w, *first = NULL, *prev = NULL; in php_get_warnings() local
95 w = php_new_warning(entry, mysqli_errno); in php_get_warnings()
102 first = w; in php_get_warnings()
105 prev->next = (void *)w; in php_get_warnings()
107 prev = w; in php_get_warnings()
120 MYSQLI_WARNING *w; in PHP_METHOD() local
128 MYSQLI_FETCH_RESOURCE(w, MYSQLI_WARNING *, ZEND_THIS, "mysqli_warning", MYSQLI_STATUS_VALID); in PHP_METHOD()
130 if (w && w->next) { in PHP_METHOD()
131 w = w->next; in PHP_METHOD()
132 ((MYSQLI_RESOURCE *)(obj->ptr))->ptr = w; in PHP_METHOD()
143 MYSQLI_WARNING *w; in mysqli_warning_message() local
153 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_message()
154 ZVAL_COPY(retval, &w->reason); in mysqli_warning_message()
163 MYSQLI_WARNING *w; in mysqli_warning_sqlstate() local
173 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_sqlstate()
174 ZVAL_COPY(retval, &w->sqlstate); in mysqli_warning_sqlstate()
183 MYSQLI_WARNING *w; in mysqli_warning_errno() local
193 w = (MYSQLI_WARNING *)((MYSQLI_RESOURCE *)(obj->ptr))->ptr; in mysqli_warning_errno()
194 ZVAL_LONG(retval, w->errorno); in mysqli_warning_errno()