Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

executable file 31 lines (24 sloc) 0.839 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<?php
/*
* Runs checks for common issues that can affect performance of the library.
*/


echo "\n\n======================================================\n";
echo "Begin Tropo WebAPI compatibility check.\n\n";

// Check to essure proper PHP version.
$version = phpversion();
if (strnatcmp($version,'5.3.0') >= 0) {
echo "OK PHP Version: $version\n";
}
else
{
echo "WARNING - PHP Version: This library may not perform as expected wih the version of PHP you are currently running: { $version }.\n";

}

// Check to see if errors/warnings are displayed.
if(ini_get('display_errors') == 0) {
echo "OK Display errors: disabled.\n";
}
else {
echo "WARNING Display errors: Errors are displayed. This may cause issues with how JSON is rendered for Tropo.\n";
}

echo "\n======================================================\n\n";

?>
Something went wrong with that request. Please try again.