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

Tagged: , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

What’s this?

You are currently reading Doctrine Command Line Tool Error : warning unexpected character in input ‘\’ ascii 92 at Nick Wan L.K..

meta

%d bloggers like this: