PHP 4.0 Bug #8175: reproducable core with everything: <?phpinfo()?>

From: Date: Fri, 08 Dec 2000 19:43:13 +0000
Subject: PHP 4.0 Bug #8175: reproducable core with everything: <?phpinfo()?>
Groups: php.dev 
Request: Send a blank email to php-dev+get-40588@lists.php.net to get a copy of this message
From: marco.walther@eng.sun.com Operating system: Solaris 8 PHP version: 4.0.3pl1 PHP Bug Type: Reproduceable crash Bug description: reproducable core with everything: &lt;?phpinfo()?&gt; [ 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 -- Edit Bug report at: http://bugs.php.net/?id=8175&edit=1

« previous php.dev (#40588) next »