PHP 4.0 Bug #5165: Consistent crash --with-mysql in getservbyname
| From: | joey at samaritan dot com | Date: | Wed, 21 Jun 2000 04:00:10 +0000 |
| Subject: | PHP 4.0 Bug #5165: Consistent crash --with-mysql in getservbyname | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-22139@lists.php.net to get a copy of this message | ||
From: joey@samaritan.com
Operating system: Linux 2.2
PHP version: 4.0.0 Release
PHP Bug Type: Reproduceable crash
Bug description: Consistent crash --with-mysql in getservbyname
Quoting the INI file:
mysql.default_port
default port number for mysql_connect(). If unset,
mysql_connect() will use the $MYSQL_TCP_PORT, or the mysql-tcp
entry in /etc/services, or the compile-time defined MYSQL_PORT
(in that order).
But IF:
mysql.default_port in the INI file is NULL
AND
MYSQL_PORT is not defined at compile time
AND
mysql-tcp is not in /etc/services
PHP will experience a consistent SIGSEGV.
Only found this to be true on the Apache/SAPI
version. CGI does not appear to have a problem.
Note that this occurs even when I am not actually USING
MySQL on any pages.