Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Recently I have upgraded my PHP on Ubuntu 10.04 to the lastest 5.5.3 version, and XHProf profiler stops working.

I have compliled last version of xhprof PHP extension (either from official pecl site or from facebook's github repo), and receive the following message when running php --version:

PHP Warning:  PHP Startup: xhprof: Unable to initialize module
Module compiled with build ID=API20121212,NTS,debug
PHP    compiled with build ID=API20121212,NTS
These options need to match

So, how to resolve this mismatch?

I have tried --disable-debug or --without-debug configure options, but configure does not understand them.

It is also interesting that phpinfo shows the following values:

Zend Extension Build     - API220121212,NTS,debug 
PHP Extension Build      - API20121212,NTS,debug 
Debug Build              - yes 

That is my PHP configure command:

./configure --enable-opcache --prefix=/opt/php --with-apxs2=/usr/bin/apxs2 --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pgsql=/usr --with-tidy=/usr --with-curl=/usr/bin --with-openssl --with-zlib-dir=/usr --with-xpm-dir=/usr --with-pdo-pgsql=/usr --with-pdo-mysql=mysqlnd --with-xsl=/usr --with-ldap --with-xmlrpc --with-iconv-dir=/usr --with-snmp=/usr --enable-exif --enable-calendar --with-bz2=/usr --with-mcrypt=/usr --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-freetype-dir=/usr --enable-mbstring --enable-zip --with-pear --with-libdir=lib --with-config-file-path=/opt --enable-fpm --with-fpm-user=fpm --with-fpm-group=fpm --enable-debug

share|improve this question
    
The options do not match. One has ,debug the other does not. Have you tried compiling XHProf without the ,debug? –  Brad F Jacobs Sep 9 '13 at 16:33
    
@BradFJacobs I have tried --disable-debug or --without-debug configure options, but without success. It is also interesting that in phpinfo there are the following values: Zend Extension Build - API220121212,NTS,debug PHP Extension Build - API20121212,NTS,debug Debug Build - yes –  zavg Sep 9 '13 at 16:35

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.