Bug #11494 Updated: mysql_db_query causes apache to "exit signal Segmentation fault (11)"
| From: | sniper@php.net | Date: | Tue, 19 Jun 2001 12:24:21 +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-57248@lists.php.net to get a copy of this message | ||
ID: 11494
Updated by: sniper
Reported By: plamendp@bgstore.com
Status: Closed
Bug Type: MySQL related
Operating system:
PHP Version: 4.0.5
Assigned To:
Comments:
Without the GDB backtrace I can't be sure if it was
the same bug. Does it work with the RC3 or not?
Reopen if not.
Previous Comments:
---------------------------------------------------------------------------
[2001-06-15 03:16:52] plamendp@bgstore.com
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 ?
---------------------------------------------------------------------------
[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");
?>
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=11494&edit=2