forked from tropo/tropo-webapi-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compatibilty.php
31 lines (24 loc) · 839 Bytes
/
compatibilty.php
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";
?>