[PHP-DEV] Bug #10628: request_config is bogus From: emile <email protected>
Date: 05/03/01

From: emile <email protected>
Operating system: Linux (Debian Sid)
PHP version: 4.0.5
PHP Bug Type: Apache related
Bug description: request_config is bogus

Using apache 1.3.19-1 and php4.0.4.5rc6-2 (debian packages)

$ ./ext_skel --extname=apdebug

Apply this patch:

diff -ur apdebug.org/apdebug.c apdebug/apdebug.c
--- apdebug.org/apdebug.c Thu May 3 09:44:19 2001
+++ apdebug/apdebug.c Thu May 3 09:45:05 2001
@@ -74,6 +74,9 @@
 /* Remove if there's nothing to do at request start */
 PHP_RINIT_FUNCTION(apdebug)
 {
+ request_rec *r;
+ r = ((request_rec *) SG(server_context));
+ fprintf(stderr, "APDEBUG, request_config=%#lx\n",
r->request_config);
        return SUCCESS;
 }

$ phpize
$ CFLAGS="$CFLAGS -DHAVE_APDEBUG=1 -DCOMPILE_DL_APDEBUG=1"
./configure --enable-apdebug
$ make; make install

add extension=apdebug.so to php.ini

We've had numerous reports (on my own machine, but also on
SuSE, Redhat and others) where request_config would always
be 0x10000, and verifiably have another (sane) value in
other apache modules during the same request. This is the
only dynamic extension loaded, other than the built-in
extensions that the debian php4 package provides.

-- 
Edit Bug report at: http://bugs.php.net/?id=10628&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>