Let $B$ be a connected pointed CW complex, let $E$ and $E'$ be two CW complexes and let $f\colon E\to B$ and $f'\colon E'\to B$ be two Serre fibrations. Let $g\colon E\to E'$ be a continuous map such that
\begin{eqnarray} E &\xrightarrow{f}& B\\ \small{g}\downarrow & &\|\\ E'&\xrightarrow{f'}& B \end{eqnarray}
commutes and suppose that $g$ induces a weak equivalence $g_x\colon E_x\xrightarrow{\cong} E'_x$ when restricted to the fibers $E_x$ and $E_x'$ of $E$ and $E′$ over the basepoint $x$ of $B$.
Is $g$ a weak equivalence?
By the 5-lemma, the only problem is the injectivity of $\pi_0g\colon\pi_0E\to \pi_0E'$. A related question on math.stackexchange does not provide an answer.