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.
17 lines
266 B
PHP
Executable file
17 lines
266 B
PHP
Executable file
--TEST--
|
|
rename_function() and user-defined functions
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('test_helpers')) die('skip test_helpers extension not loaded');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
function foo()
|
|
{
|
|
print 'foo';
|
|
}
|
|
|
|
rename_function('foo', 'bar');
|
|
bar();
|
|
--EXPECT--
|
|
foo
|