Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 74f4b772aa
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (21 sloc) 0.461 kb
--TEST--
runkit_function_rename() function on internal functions
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--INI--
runkit.internal_override=On
--FILE--
<?php
$a = 1;
var_dump($a);
runkit_function_rename('var_dump','qwerty');
if (function_exists('var_dump')) {
echo "Old function name still exists!\n";
}
qwerty($a);
var_dump($a);
?>
--EXPECTF--
int(1)
int(1)
Fatal error: %s var_dump() in %s on line %d
Jump to Line
Something went wrong with that request. Please try again.