Matthew
Matthew

Reputation: 33

How to replace internal PHP method?

I am messing a little bit with PHP and I want to replace method from internal class. I can do it easy with function (just change function handler in EG(function_table)), but doing so for classes (EG(class_table)) doesn't work. EG(class_table)->function_table looks like is not initialized correctly. Is there a way to do it?

Upvotes: 0

Views: 131

Answers (1)

Jay Blanchard
Jay Blanchard

Reputation: 34426

You'll want to use the override_function() method.

Upvotes: 1

Related Questions