Lines Matching refs:stmt

15 	$stmt = new mysqli_stmt($link);
18 var_dump(get_parent_class($stmt));
22 $methods = get_class_methods($stmt);
72 $variables = array_keys(get_class_vars(get_class($stmt)));
78 $variables = array_keys(get_object_vars($stmt));
84 assert(mysqli_stmt_affected_rows($stmt) === $stmt->affected_rows);
85 printf("stmt->affected_rows = '%s'\n", $stmt->affected_rows);
87 if (!$stmt->prepare("INSERT INTO test(id, label) VALUES (100, 'z')") ||
88 !$stmt->execute())
89 printf("[001] [%d] %s\n", $stmt->errno, $stmt->error);
91 assert(mysqli_stmt_affected_rows($stmt) === $stmt->affected_rows);
92 printf("stmt->affected_rows = '%s'\n", $stmt->affected_rows);
94 assert(mysqli_stmt_errno($stmt) === $stmt->errno);
95 printf("stmt->errno = '%s'\n", $stmt->errno);
97 assert(mysqli_stmt_error($stmt) === $stmt->error);
98 printf("stmt->error = '%s'\n", $stmt->error);
100 assert(mysqli_stmt_field_count($stmt) === $stmt->field_count);
101 printf("stmt->field_count = '%s'\n", $stmt->field_count);
103 assert($stmt->id > 0);
104 printf("stmt->id = '%s'\n", $stmt->id);
106 assert(mysqli_stmt_insert_id($stmt) === $stmt->insert_id);
107 printf("stmt->insert_id = '%s'\n", $stmt->insert_id);
109 assert(mysqli_stmt_num_rows($stmt) === $stmt->num_rows);
110 printf("stmt->num_rows = '%s'\n", $stmt->num_rows);
112 assert(mysqli_stmt_param_count($stmt) === $stmt->param_count);
113 printf("stmt->param_count = '%s'\n", $stmt->param_count);
115 assert(mysqli_stmt_sqlstate($stmt) === $stmt->sqlstate);
116 printf("stmt->sqlstate = '%s'\n", $stmt->sqlstate);
119 printf("stmt->unknown = '%s'\n", @$stmt->unknown);
120 @$stmt->unknown = 13;
121 printf("stmt->unknown = '%s'\n", @$stmt->unknown);
124 $stmt = new mysqli_stmt($link, 'SELECT id FROM test ORDER BY id');
125 if (!$stmt->execute())
126 printf("[002] [%d] %s\n", $stmt->errno, $stmt->error);
127 $stmt->close();
130 if (!is_object($stmt = new mysqli_stmt($link, $obj)))
131 printf("[003] Expecting NULL got %s/%s\n", gettype($stmt), $stmt);
172 stmt->affected_rows = ''
173 stmt->affected_rows = '1'
174 stmt->errno = '0'
175 stmt->error = ''
176 stmt->field_count = '0'
177 stmt->id = '%d'
178 stmt->insert_id = '0'
179 stmt->num_rows = '0'
180 stmt->param_count = '0'
181 stmt->sqlstate = '00000'
184 stmt->unknown = ''
185 stmt->unknown = '13'