You may get unexpected errors or warnings when running PHP scripts on the command-line. This usually doesn't happen if PHP is distributed natively with the system (eg with Ubuntu or Debian Linux), but it can commonly happen on systems that use an add-on *AMP stack (such as MAMP, WAMP, or XAMPP).
OS X and MAMP
Determine which version is used in your command-line, run:
The "/usr/bin/php" is the default copy provided by OS X – which is usually not as good as the version provided with MAMP. To locate the version provided by MAMP, run:
Pick the version which is compatible with CiviCRM (at time of writing, 5.3.x) and then add it to ~/.bash_profile or ~/.bashrc, e.g.:
To make sure the change takes effect, you should