Doctrine Command Line Tool Error : warning unexpected character in input ‘\’ ascii 92

January 16, 2011 § Leave a comment

warning unexpected character in input ‘\’ ascii 92 will only appear if PHP version is under 5.3

So please do confirm you are under PHP 5.3 environment.

My XAMPP / MAMP is running PHP 5.3 still cannot get this error away

Answer: Because you are still using PHP 5.2, why? It is because Terminal may take its own PHP version instead of your PHP version.

1. Check your phpinfo by creating a testing script

2. In terminal, type ‘php test.php’, it should show PHP version from the top

3. If it is 5.2, then please type “export PATH=/Applications/XAMPP/xamppfiles/bin/php:$PATH”
“export PATH=/Applications/XAMPP/xamppfiles/bin:$PATH”
(using XAMPP as example)

After these steps should ensure you got the right environment to work on. Cheers~

Advertisements

Where Am I?

You are currently browsing entries tagged with php version at Nick Wan L.K..