PHP 4.0 Bug #8175 Updated: reproducable core with everything: <?phpinfo()?>
| From: | sniper@php.net | Date: | Mon, 11 Dec 2000 15:57:35 +0000 |
| Subject: | PHP 4.0 Bug #8175 Updated: reproducable core with everything: <?phpinfo()?> | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40849@lists.php.net to get a copy of this message | ||
ID: 8175
Updated by: sniper
Reported By: marco.walther@eng.sun.com
Old-Status: Open
Status: Feedback
Bug Type: Reproduceable crash
Assigned To:
Comments:
Please try the latest snapshot from http://snaps.php.net/
I have used php within same system and apache
without any problems. Compiled with same version of gcc.
If you still get this crash with the latest snapshot,
please include a gdb backtrace of it. Remember to configure
php with --enable-debug to get useful backtrace.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-12-08 14:43:13] marco.walther@eng.sun.com
[ Solaris 8 , gcc-2.95.2, Apache-1.3.14, dynamic modules]
I basically could not run the dynamic php4 at all. Everything crashed on
me. I've looked at the backtrace and ended up in
send_php()[mod_php4.c]
My problem was that
mod_php4.c[451]:
per_dir_conf = (HashTable *)
get_module_config(r->per_dir_config,&php4_module);
tried to load from `NULL[26]':-(
I believe this works fine on Linux but it will crash on Solaris! (There is a workaround to preload a
special library, but I don't know if that's the right way!)
Ok, I've modified this one place in the style of mod_perl (Checking for NULL before calling the
get_module_config() macro.) So I was able to get <?phpinfo()?> working. But I don't know
how common the assumption is within php4 that a program can read from NULL!
I've looked all over FAQ & Documentation but I could not find any place mention the need of
0@0.so or something similar.
Maybe somebody can enlighten me a little bit.
Thanks,
-- Marco
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8175