Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 498 Bytes
--TEST--
runkit_function_remove() function
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
function runkitSample() {
echo "Function Exists\n";
}
$name = 'runkitSample';
runkitSample();
runkit_function_remove($name);
if (!function_exists('runkitSample')) {
echo "Function Removed\n";
}
echo $name, "\n";
runkitSample();
?>
--EXPECTF--
Function Exists
Function Removed
runkitSample
Fatal error: %s runkit%sample() in %s on line %d
Jump to Line
Something went wrong with that request. Please try again.