|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56273 debugging APC
Submitted: 2005-01-20 11:50 UTC Modified: 2005-02-09 10:40 UTC
From: ag at m-cam dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 4.3.10 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
49 - 48 = ?
Subscribe to this entry?

 [2005-01-20 11:50 UTC] ag at m-cam dot com
I am running Debian Serge on Ultra e450 Sparc.

PHP-4.3.11-dev (current stable does not compile with my options).

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gettext --with-xml --with-dom --with-pgsql --with-mcrypt --with-iconv --enable-mbstring
--with-mbstring=all --with-zlib-dir=/usr/include --with-imap --with-openssl --with-ldap --with-kerberos --with-imap-ssl 

gcc version 3.3.5 (Debian 1:3.3.5-5)

On startup I see the following warning in my Apache logs:

PHP Warning:  Unknown(): apc: Unable to initialize module\nModule compiled with module API=20020429, debug=0, thread-safety=0\nPHP compiled with module API=20020429, debug=1, thread-safety=0\nThese options need to match\n in Unknown on line 0 

I build APC after having built PHP with --enable-debug, but there is NO way to enable debugging in APC. And unless APC is loaded, I do not get the segfaults/bus errors for which I can generate a backtrace.

The following are the list of commands I execute to build APC.

%> /usr/local/bin/phpize
%> ./configure --enable-apc --with-gnu-ld --with-php-config=/usr/local/bin/php-config
%> make -j3
%> make install
Installing shared extensions:     /usr/local/lib/php/extensions/debug-non-zts-20020429/ 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-09 02:09 UTC]
Did you do a make install after rebuilding PHP with debug enabled?  The phpize script should have picked up the debug flag and passed it to APC when you ran phpize in the APC directory.  If you are using the old phpize from the non-debug php build, APC will be built non-debug.
 [2005-02-09 10:40 UTC] ag at m-cam dot com
Apparently, one has to manually delete all the installed PHP/PECL directories/files before attempting a new (e.g. debug enabled) installation. My initial thinking was that "make install" would take care of that by overwriting the files from a previous installation. That does not seem to be the case, though. Manually cleaning the installed files solved all the issues.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Thu May 19 09:03:49 2022 UTC