-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfunctions.php
More file actions
32 lines (28 loc) · 826 Bytes
/
functions.php
File metadata and controls
32 lines (28 loc) · 826 Bytes
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
32
<?php
namespace tourze\Server\Patch {
use tourze\Base\Base;
if ( ! function_exists('tourze\Server\Patch\header'))
{
/**
* header函数的补丁
*
* @param string $string
* @param bool|true $replace
* @param null $httpResponseCode
*/
function header($string, $replace = true, $httpResponseCode = null)
{
Base::getHttp()->header($string, $replace, $httpResponseCode);
}
}
if ( ! function_exists('tourze\Server\Patch\register_shutdown_function'))
{
/**
* 自定义register_shutdown_function
*/
function register_shutdown_function()
{
call_user_func_array('\tourze\Server\Patch::registerShutdownFunction', func_get_args());
}
}
}