Seemed easier than trying to figure out how to force the prompt to accept the unknown IP (perhaps not possible at all as it is part of SSH?). `yes` didn't work, unfortunately.
28 lines
611 B
PHP
Executable file
28 lines
611 B
PHP
Executable file
--TEST--
|
|
rename_function() and internal functions
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('test_helpers')) die('skip test_helpers extension not loaded');
|
|
?>
|
|
--XFAIL--
|
|
Not yet implemented
|
|
--FILE--
|
|
<?php
|
|
$headers = array();
|
|
|
|
function my_header($header)
|
|
{
|
|
$GLOBALS['headers'][] = $header;
|
|
}
|
|
|
|
rename_function('header', 'internal_header');
|
|
rename_function('my_header', 'header');
|
|
header('Location: http://www.example.com/');
|
|
rename_function('header', 'my_header');
|
|
rename_function('internal_header', 'header');
|
|
var_dump($headers);
|
|
--EXPECT--
|
|
array(1) {
|
|
[0]=>
|
|
string(33) "Location: http://www.example.com/"
|
|
}
|