Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is override_function coming back as an undefined function

Tags:

php

I run:

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

and I get this error:

PHP Fatal error: Call to undefined function override_function()

I am using php 5.3.26

like image 689
mgbellaire Avatar asked Aug 12 '13 13:08

mgbellaire


1 Answers

Function override_function is part of PECL Extension.

Configure PECL Here.

like image 95
Shankar Narayana Damodaran Avatar answered Nov 14 '22 23:11

Shankar Narayana Damodaran