Bug #10628: request_config is bogus
| From: | emile at iris-advies dot com | Date: | Thu, 03 May 2001 07:57:00 +0000 |
| Subject: | Bug #10628: request_config is bogus | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-53529@lists.php.net to get a copy of this message | ||
From: emile@iris-advies.com
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