An exponential family distribution $p$ in the canonical form can be written as
$p(x|\theta) = h(x)\exp(\theta^\top T(x) - A(\theta))$
where $A(\theta)$ is the log partition function, $T(x)$ is the sufficient statistics, and $h(x)$ is the base measure (according to this Wikipedia page). For simplicity, let us consider a one dimensional $x$.
What is the restriction of the form of $h(x)$ ? My intuition tells me that $h(x)$ cannot be arbitrary because otherwise we can set $T(x)=0$, and leave all the "work" to $h(x)$.
For example, I understand that a Student's t is not in the exponential family. Let $t(x)$ be the density of a t distribution. If we set $T(x)=0$ and $h(x) = t(x)$, then
$A(\theta) = \log \int h(x)\exp(\theta^\top 0) \,dx = \log 1 = 0$,
and $p(x|\theta) = h(x) = t(x)$ implying that the t is in the exponential family.
What did I miss here ?