Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-01-08 12:53:18 +0300
committerMichal Čihař <michal@cihar.com>2017-01-08 12:58:19 +0300
commit8633f44db08fba25edfc75409819741feae8c5eb (patch)
treee2b9f57774be55fdf4b11d826848c5c6d1d90d76 /test/bootstrap-dist.php
parent3c2867c02a95ac23c44c19245aa4f0b33d7f3c51 (diff)
Remove code for PMA_TEST_HEADERS
It's no longer necessary. Issue #12079 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'test/bootstrap-dist.php')
-rw-r--r--test/bootstrap-dist.php40
1 files changed, 0 insertions, 40 deletions
diff --git a/test/bootstrap-dist.php b/test/bootstrap-dist.php
index 7bae285f48..9a8bb186c4 100644
--- a/test/bootstrap-dist.php
+++ b/test/bootstrap-dist.php
@@ -98,34 +98,6 @@ $GLOBALS['runkit_internal_override'] = ini_get('runkit.internal_override');
/**
- * Function to emulate headers() function by storing headers in GLOBAL array
- *
- * @param string $string header string
- * @param boolean $replace .
- * @param integer $http_response_code .
- *
- * @return void
- */
-function test_header($string, $replace = true, $http_response_code = 200)
-{
- if (! isset($GLOBALS['header'])) {
- $GLOBALS['header'] = array();
- }
-
- $GLOBALS['header'][] = $string;
-}
-
-/**
- * Function to emulate headers_send.
- *
- * @return boolean false
- */
-function test_headers_sent()
-{
- return false;
-}
-
-/**
* Function to emulate date() function
*
* @param string $date_format arg
@@ -137,18 +109,6 @@ function test_date($date_format)
return '0000-00-00 00:00:00';
}
-if (PMA_HAS_RUNKIT && $GLOBALS['runkit_internal_override']) {
- echo "Enabling headers testing using runkit...\n";
- runkit_function_rename('header', 'test_header_override');
- runkit_function_rename('headers_sent', 'test_headers_sent_override');
- runkit_function_rename('test_header', 'header');
- runkit_function_rename('test_headers_sent', 'headers_sent');
- define('PMA_TEST_HEADERS', true);
-} else {
- echo "No headers testing.\n";
- echo "Please install runkit and enable runkit.internal_override!\n";
-}
-
/**
* Overrides date function
*