Lines Matching refs:how
788 static bool do_fetch(pdo_stmt_t *stmt, zval *return_value, enum pdo_fetch_type how, enum pdo_fetch_… in do_fetch() argument
796 if (how == PDO_FETCH_USE_DEFAULT) { in do_fetch()
797 how = stmt->default_fetch_type; in do_fetch()
799 flags = how & PDO_FETCH_FLAGS; in do_fetch()
800 how = how & ~PDO_FETCH_FLAGS; in do_fetch()
806 if (how == PDO_FETCH_BOUND) { in do_fetch()
822 if (how == PDO_FETCH_LAZY) { in do_fetch()
829 switch (how) { in do_fetch()
951 how = PDO_FETCH_OBJ; in do_fetch()
972 if (return_all && how != PDO_FETCH_KEY_PAIR) { in do_fetch()
973 if (flags == PDO_FETCH_GROUP && how == PDO_FETCH_COLUMN && stmt->fetch.column > 0) { in do_fetch()
979 if (how == PDO_FETCH_COLUMN) { in do_fetch()
990 switch (how) { in do_fetch()
1100 switch (how) { in do_fetch()
1221 zend_long how = PDO_FETCH_USE_DEFAULT; in PHP_METHOD() local
1227 Z_PARAM_LONG(how) in PHP_METHOD()
1235 if (!pdo_stmt_verify_mode(stmt, how, 1, false)) { in PHP_METHOD()
1239 if (!do_fetch(stmt, return_value, how, ori, off, NULL)) { in PHP_METHOD()
1317 zend_long how = PDO_FETCH_USE_DEFAULT; in PHP_METHOD() local
1327 Z_PARAM_LONG(how) in PHP_METHOD()
1333 if (!pdo_stmt_verify_mode(stmt, how, 1, true)) { in PHP_METHOD()
1345 switch (how & ~PDO_FETCH_FLAGS) { in PHP_METHOD()
1412 stmt->fetch.column = how & PDO_FETCH_GROUP ? -1 : 0; in PHP_METHOD()
1427 flags = how & PDO_FETCH_FLAGS; in PHP_METHOD()
1429 if ((how & ~PDO_FETCH_FLAGS) == PDO_FETCH_USE_DEFAULT) { in PHP_METHOD()
1431 how |= stmt->default_fetch_type & ~PDO_FETCH_FLAGS; in PHP_METHOD()
1435 if ((how & PDO_FETCH_GROUP) || how == PDO_FETCH_KEY_PAIR || in PHP_METHOD()
1436 (how == PDO_FETCH_USE_DEFAULT && stmt->default_fetch_type == PDO_FETCH_KEY_PAIR) in PHP_METHOD()
1441 if (!do_fetch(stmt, &data, how | flags, PDO_FETCH_ORI_NEXT, /* offset */ 0, return_all)) { in PHP_METHOD()
1446 if ((how & PDO_FETCH_GROUP)) { in PHP_METHOD()
1447 while (do_fetch(stmt, &data, how | flags, PDO_FETCH_ORI_NEXT, /* offset */ 0, return_all)); in PHP_METHOD()
1448 …} else if (how == PDO_FETCH_KEY_PAIR || (how == PDO_FETCH_USE_DEFAULT && stmt->default_fetch_type … in PHP_METHOD()
1449 while (do_fetch(stmt, &data, how | flags, PDO_FETCH_ORI_NEXT, /* offset */ 0, return_all)); in PHP_METHOD()
1454 } while (do_fetch(stmt, &data, how | flags, PDO_FETCH_ORI_NEXT, /* offset */ 0, NULL)); in PHP_METHOD()