How to fix mysql_connect crashing Apache on 12.04?

view full story

http://askubuntu.com – after updating to Ubuntu 12.04, the php function mysql_connect crashes the current Apache thread. echo 'A'; mysql_connect('localhost', 'user', 'pass'); echo 'B'; This code only print A. It does not matter whether host, username and password are correct or not. access.log contains an entry with status code 500, but error log does not contain any details. How do I get some useful information to either fix the problem or make a bug report? (HowTos)