we can simply override a default php function by using the following code :
namespace blarg;
function time() {
echo "test !";
}
time();
but ! is it possible to override the "eval" functon ?
namespace blarg;
function eval() {
echo "test !";
}
eval();
?
thanks in advance
According to the answeres :
- eval() is a language construct and not a function, we can't override it
2.Im not really overriding the time() function in my example. I'm just creating a blarg\time() function
I understood
BUT
Actually i'm writtin sumting like a debugger and i need to change the default behaviour of php functons or some language construct (e.g eval)
Is there anyway to do this ?
Is it possible to change the php source and compile it ? (Is there any specific file to edit ?)