We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8dfa23a + a89db04 commit a4f8920Copy full SHA for a4f8920
application/libraries/REST_Controller.php
@@ -381,13 +381,13 @@ public function __construct($config = 'rest')
381
if (is_php('5.4') === FALSE)
382
{
383
// CodeIgniter 3 is recommended for v5.4 or above
384
- exit('Using PHP v' . PHP_VERSION . ', though PHP v5.4 or greater is required');
+ throw new Exception('Using PHP v' . PHP_VERSION . ', though PHP v5.4 or greater is required');
385
}
386
387
// Check to see if this is CI 3.x
388
if (explode('.', CI_VERSION, 2)[0] < 3)
389
390
- exit('REST Server requires CodeIgniter 3.x');
+ throw new Exception('REST Server requires CodeIgniter 3.x');
391
392
393
// Set the default value of global xss filtering. Same approach as CodeIgniter 3
0 commit comments