I have PHP 5.3.2 on Ubuntu 10.04 LTS
$ php -v
PHP 5.3.2-1ubuntu4.30 with Suhosin-Patch (cli) (built: Apr 17 2015 15:01:29)
and I would like to upgrade PHP to at least 5.3.3 (5.4 would be better), so I read about it here and here and did the following steps:
$ sudo apt-get update
$ sudo apt-get install python-software-properties
$ sudo add-apt-repository ppa:ondrej/php5-oldstable
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade php5
$ sudo apt-get install php5
But it will not update any packages and the PHP version is still the same.
I also tried with
$ sudo add-apt-repository ppa:ondrej/php5