Bug #11494 Updated: mysql_db_query causes apache to "exit signal Segmentation fault (11)"
| From: | plamendp at bgstore dot com | Date: | Fri, 15 Jun 2001 07:16:52 +0000 |
| Subject: | Bug #11494 Updated: mysql_db_query causes apache to "exit signal Segmentation fault (11)" | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-57157@lists.php.net to get a copy of this message | ||
ID: 11494
User Update by: plamendp@bgstore.com
Status: Closed
Bug Type: MySQL related
Operating system: FreeBSD 4.3 RELEASE
PHP Version: 4.0.5
Description: mysql_db_query causes apache to "exit signal Segmentation fault (11)"
I forgot to mention that this happens *only* when connection to MySQL *IS* 'persistent',
i.e. mysql_db_query makes this sqgfault to happen after
mysql_pconnect()
Using
mysql_connect()
is OK ! No segfault ! Zero problem !
p.s. I thought this is a MySQL related problem ? Why PostgreSQL was involved here ?
Previous Comments:
---------------------------------------------------------------------------
[2001-06-14 17:14:58] sniper@php.net
Reopen if this happens with the 4.0.6.
---------------------------------------------------------------------------
[2001-06-14 17:14:36] sniper@php.net
I guess this is the PostGreSQL bug that is fixed in
CVS and in PHP 4.0.6RCx:
http://www.php.net/~andi/php-4.0.6RC3.tar.gz
(if above url doesn't work, change the RC3 to RC4)
--Jani
---------------------------------------------------------------------------
[2001-06-14 15:49:16] plamendp@bgstore.com
Apache 1.3.20
PHP 4.0.5
mysql 3.23.38
pgsql 7.1.2
"--with-apxs=/usr/local/sbin/apxs"
"--with-config-file-path=/usr/local/etc"
"--with-system-regex"
"--enable-debug"
"--enable-track-vars"
"--without-gd"
"--disable-pear"
"--with-zlib"
"--with-imap=/usr/local"
"--with-mysql=/usr/local"
"--with-pgsql=/usr/local"
"--with-xml=/usr/local"
"--enable-ftp"
"--with-gettext=/usr/local"
"--enable-sockets"
"--enable-sysvsem"
"--enable-sysvshm"
"--prefix=/usr/local"
"i386--freebsd4.3"
<?php
$id = mysql_pconnect("myhost","mydatabase","mypass");
$result = mysql_db_query("SELECT blah-blah-bla");
?>
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=11494