Arquivos
hhvm/hphp/test/quick/rename_dyn_function.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

23 linhas
336 B
PHP

<?php
function a() {
echo "Hello from a\n";
}
function b() {
echo "I am b\n";
}
function callfns($name, $name2) {
echo "Calling $name\n";
$name();
echo "Calling $name2\n";
$name2();
}
callfns('a', 'b');
fb_rename_function('a', 'old_a');
fb_rename_function('b', 'a');
fb_rename_function('old_a', 'b');
callfns('a', 'b');