So, you upgraded to Ubuntu 10.04 but suddenly your old applications like Drupal do not work on PHP 5.3 anymore? What the hell?
Without asking why it doesn't work because we would only loose time we want to go back to the version of PHP 5.2 where it does work!
Let us list all existing PHP packages to know what version we are running:
dpkg -l | grep php