#10628 [Com]: request_config is bogus
| From: | n-sync591 at hotmail dot com | Date: | Tue, 20 Jul 2004 15:02:10 +0000 |
| Subject: | #10628 [Com]: request_config is bogus | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62834@lists.php.net to get a copy of this message | ||
ID: 10628
Comment by: n-sync591 at hotmail dot com
Reported By: emile at iris-advies dot com
Status: Bogus
Bug Type: Apache related
Operating System: Linux (Debian Sid)
PHP Version: 4.0.5
New Comment:
<a href=http://3-d-bukkake-blow-mp.da.ru>sync
n</a>
Previous Comments:
------------------------------------------------------------------------
[2001-05-28 02:19:50] emile at iris-advies dot com
The problem is that the extension we write needs to access
request_config and when we dereference it it segfaults, since it is
always the bogus value 0x10000
------------------------------------------------------------------------
[2001-05-27 23:58:45] sniper@php.net
No idea what this report is about. Please submit a new
bug report with the PROBLEM described.
--Jani
------------------------------------------------------------------------
[2001-05-03 04:01:53] emile at iris-advies dot com
Forgot: need to edit config.m4 to comment out the enable
stuff of course.
------------------------------------------------------------------------
[2001-05-03 03:56:59] emile at iris-advies dot com
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 this bug report at http://bugs.php.net/?id=10628&edit=1