Specification for PHP

This specification is intended to provide a complete and concise definition of the syntax and semantics of the PHP language.

Specification for PHP

 

source: http://prog.hu/hirek/3606/Formalis+specifikacioban+rogzitette+a+PHP+nyelv+szabalyait+a+Facebook.html

Upgrade PHP from 5.3 to 5.4 on Ubuntu 12.04

,

I was deploying my Zend Framework 2 project when I got thios error:

Using $this when not in object context in /…./module/Webshop/Module.php on line …

“Upon googling, I found out that PHP 5.3 treats closures differently. This PHP version doesn’t support $this in closures.” (https://github.com/laravelbook/ardent/issues/23)

So I had to update from 5.3 to 5.4

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 install php5

http://running-on-drupal8.co.uk/node/17

Solving Error: Fatal error: Uncaught exception ‘ZendI18nExceptionExtensionNotLoadedException’

,

I got this error after deploying Zend Framework 2 project on my webserver (Ubuntu):

Fatal error: Uncaught exception ‘ZendI18nExceptionExtensionNotLoadedException’ with message ‘ZendI18nTranslator component requires the intl PHP extension’

I had to install PHP Intl extension:

sudo apt-get install php5-intl

Apache Restart:

sudo service apache2 restart

Check what extension compiled:

php -m