PDO seems to work.

Checked: install YOURLS, add/remove/edit link, stats.