Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was getting this error on my php script:

Fatal error: Call to undefined function xdiff_file_diff()

I realised that I didn't had the xdiff extension installed. When I tried to install it using the install pecl xdiff command, I got this errors (among other lines):

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP configure: error: Please reinstall the libxdiff distribution

Then I installed re2c and libxdiff:

rpm -ivh re2c_0135_redhat.rpm
rpm -ivh libxdiff-0.7-1.i386

But after that I still get the same errors.

PS: I've Googled a LOT and I found a couple of people with this problem but they didn't get an answer either :(

share|improve this question

migrated from Dec 15 '10 at 23:36

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

This can occur if your are using wrong parameters or installation is file is corrupted.

You can refer to the following URL for more details regarding function xdiff_file_diff():

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.