Fixed the mysqli can't initialize bug.
Merge with master.