mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Replace function die (alias) by exit.
Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
parent
9b6b258fed
commit
1acc60b04c
6 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
;<?php die() ?>
|
||||
;<?php exit() ?>
|
||||
; SVN FILE: $Id$
|
||||
;/**
|
||||
; * Short description for file.
|
||||
|
|
|
@ -66,7 +66,7 @@ if (!class_exists('File')) {
|
|||
}
|
||||
|
||||
if (preg_match('|\.\.|', $url) || !preg_match('|^ccss/(.+)$|i', $url, $regs)) {
|
||||
die('Wrong file name.');
|
||||
exit('Wrong file name.');
|
||||
}
|
||||
|
||||
$filename = 'css/' . $regs[1];
|
||||
|
@ -74,7 +74,7 @@ if (!class_exists('File')) {
|
|||
$cachepath = CACHE . 'css' . DS . str_replace(array('/','\\'), '-', $regs[1]);
|
||||
|
||||
if (!file_exists($filepath)) {
|
||||
die('Wrong file name.');
|
||||
exit('Wrong file name.');
|
||||
}
|
||||
|
||||
if (file_exists($cachepath)) {
|
||||
|
|
|
@ -95,7 +95,7 @@ if (isset($corePath[0])) {
|
|||
require_once CAKE_TESTS_LIB . 'test_manager.php';
|
||||
|
||||
if (Configure::read('debug') < 1) {
|
||||
die(__('Debug setting does not allow access to this url.', true));
|
||||
exit(__('Debug setting does not allow access to this url.', true));
|
||||
}
|
||||
|
||||
if (!isset($_SERVER['SERVER_NAME'])) {
|
||||
|
|
|
@ -218,7 +218,7 @@ class Debugger extends Object {
|
|||
}
|
||||
|
||||
if ($error == 'Fatal Error') {
|
||||
die();
|
||||
exit();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ class DboOdbc extends DboSource {
|
|||
$connect = 'odbc_connect';
|
||||
}
|
||||
if (!function_exists($connect)) {
|
||||
die('no odbc?');
|
||||
exit('no odbc?');
|
||||
}
|
||||
$this->connected = false;
|
||||
$this->connection = $connect($config['database'], $config['login'], $config['password'], SQL_CUR_USE_ODBC);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
;<?php die() ?>
|
||||
;<?php exit() ?>
|
||||
; SVN FILE: $Id$
|
||||
;/**
|
||||
; * Test App Ini Based Acl Config File
|
||||
|
|
Loading…
Reference in a new issue