Ubuntu keeps separate copies of the php.ini file for each type of PHP installation.
I'm not familiar with the dotdeb release, but I'd guess it'd be in /etc/php5/apache2/php.ini
Edit:
Since this is apparently not the case, try restarting Apache. PHP won't pick up changed settings until you do.