Ben C + + veya hatta (zamanında VE derleme zamanı) Obj-c gibi diğer dilde mümkün ama php / remap fonksiyonu yeniden adlandırmak / geçersiz kılmak için bir yol var biliyor musun? Yani demek istediğim, diyelim ki biz mysql_query uygulanmasını değiştirmek istiyorum diyelim edilir. Bu mümkün mü?
SOME_REMAP_FUNCTION(mysql_query, new_mysql_query);
//and then you define your new function
function new_mysql_query(blah...) {
//do something custom here
//then call the original mysql_query
mysql_query(blah...)
}
This way the rest of the code can transparently call the mysql_query function and not know that we inserted some custom code in the middle.