slides/internals/replacing-functions.xml
Replacing functions
20/28
Opcode overloading
Streams
  • • Replaces a function pointer in the symbol table with a new one
  • • You can also use it for methods
  • • Xdebug uses it to replace var_dump with xdebug_var_dump
  • • You can only replace internal functions (unless you're runkit/classkit)