issues while installing Opencv library for PHP-Record and share programming errors

I have tried to install the php build for Opencv provided by mgdm OpenCV-for-PHP

I have tried

sudo phpize
sudo ./configure
sudo make

Build complete.
Don't forget to run 'make test'.

Then I have tried to run make test as per the instruction, and I got the following, and the PHP script is not working correctly.

PHP Deprecated:  Comments starting with '#' are deprecated in
/home/dev001/projects/openCV/OpenCV/tmp-php.ini on line 1849 in Unknown on line 0
PHP Deprecated:  Comments starting with '#' are deprecated in  
/home/dev001/projects/openCV/OpenCV/tmp-php.ini on line 1849 in Unknown on line 0
/usr/bin/php: symbol lookup error:/home/dev001/projects/openCV/OpenCV/modules/opencv.so:
undefined symbol: cvSetErrMode
PHP Deprecated:  Comments starting with '#' are deprecated in 
home/dev001/projects/openCV/OpenCV/tmp-php.ini on line 1849 in Unknown on line 0  
/usr/bin/php: symbol lookup error:/home/dev001/projects/openCV/OpenCV/modules/opencv.so:   
undefined symbol: cvSetErrMode

=====================================================================
PHP         : /usr/bin/php  
CWD         : /home/dev001/projects/openCV/OpenCV
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
TIME START 2012-08-06 04:45:14
=====================================================================
FAIL Check for opencv presence [tests/001.phpt] 
=====================================================================
TIME END 2012-08-06 04:45:14

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :    0
Exts tested     :    1
---------------------------------------------------------------------

Number of tests :    1                 1
Tests skipped   :    0 (  0.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :    1 (100.0%) (100.0%)
Expected fail   :    0 (  0.0%) (  0.0%)
Tests passed    :    0 (  0.0%) (  0.0%)
---------------------------------------------------------------------
Time taken      :    0 seconds
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Check for opencv presence [tests/001.phpt]
=====================================================================

You may have found a problem in PHP.
We would like to send this report automatically to the
PHP QA team, to give us a better understanding of how
the test cases are doing. If you don't want to send it
immediately, you can choose "s" to save the report to
a file that you can send us later.

Originally posted 2013-11-02 00:44:03.