#3487 [Opn->]: get_browser() segfaults
| From: | hholzgra@php.net | Date: | Tue, 01 Oct 2002 19:41:58 +0000 |
| Subject: | #3487 [Opn->]: get_browser() segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21090@lists.php.net to get a copy of this message | ||
ID: 3487
Updated by: hholzgra@php.net
Reported By: eric@emergencypuffjacket.com
-Status: Open
+Status: Won\'t fix
Bug Type: Reproducible Crash
Operating System: BSD/OS 3.1
PHP Version: 3.0.12
New Comment:
We are sorry, but can not support PHP 3 related problems anymore.
Momentum is gathering for PHP 5, and we think supporting PHP 3 will
lead to a waste of resources which we want to put into getting PHP 5
ready. Ofcourse PHP 4 will will continue to be supported for the
forseeable future.
actualy believed to be fixed even for php3
Previous Comments:
------------------------------------------------------------------------
[2000-02-15 18:11:17] eric@emergencypuffjacket.com
I am using mod_php3-3.0.12-module-mysql-imap-gd.so with Apache 1.2.6
If I call get_browser() I get a segfault error logged to the apache
error log.
I do not actually get a core file, and if I turn on php-logging I get
nothing there as well.
I am setting my php config vars via the apache httpd.conf file like
this:
php3_browscap /usr/local/etc/httpd/browscap.ini
and I am using the latest file from cyscape.
One interesting note: if I comment out the browscap config variable
get_browser() returns an empty array. If I put it in the segfaults
every time.
I won't add a code listing since his bug is the virtually identical to
bugs 970, 2348, 3016 and 3481.
I would urge someone to look at this one; this bug crosses all
platforms and is reported as early as 3.0.5.
Parsing a file isn't really a brain-buster. Perhaps the browser.ini
should be converted to XML and a quick parser library put in place?
Just a suggestion.
If I was a C coder I would do it myself... if only it were Java.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=3487&edit=1