Why the override_function function returns as an undefined function

I run:

override_function ('test_func', '$ a, $ b', 'print_r ("new");');

and I get this error:

PHP Fatal error: function call undefined override_function ()

I am using php 5.3.26

+4
source share
1 answer

The override_function is part of the PECL extension.

Set up PECL here.

+6
source

Source: https://habr.com/ru/post/1496591/


All Articles