Bug #3487: get_browser() segfaults

From: Date: Tue, 15 Feb 2000 17:11:17 +0000
Subject: Bug #3487: get_browser() segfaults
Groups: php.dev 
Request: Send a blank email to php-dev+get-15543@lists.php.net to get a copy of this message
From: eric@emergencypuffjacket.com Operating system: BSD/OS 3.1 PHP version: 3.0.12 PHP Bug Type: Reproduceable crash Bug description: get_browser() segfaults 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.

« previous php.dev (#15543) next »