[phpa] Re: Info on MySQL Driver/PHP 4.1.2 crash resolution
- From: "Matthew Mullenweg" <matt@xxxxxxxxxxxxx>
- To: <phpa@xxxxxxxxxxxxx>
- Date: Fri, 12 Apr 2002 09:43:35 -0500
I use 4.01-alpha with PHP 4.1.2 and I still get the segmentation faults.
--Matt
> -----Original Message-----
> From: phpa-bounce@xxxxxxxxxxxxx [mailto:phpa-bounce@xxxxxxxxxxxxx] On
> Behalf Of GameCrash (Webmail)
> Sent: Friday, April 12, 2002 2:41 AM
> To: phpa@xxxxxxxxxxxxx
> Subject: [phpa] Re: Info on MySQL Driver/PHP 4.1.2 crash resolution
>=20
> Yes, it seems I have this problem, too... would a new mySQL version
help?
> atm I'm using the standard one of SuSE 7.2 (but a self compiled php
4.1.2,
> apache and so on...
>=20
> CU=A0GameCrash
> The following message was sent by "Nick Lindridge" <nick@php-
> accelerator.co.uk> on Thu, 11 Apr 2002 11:55:16 +0100 (BST).
>=20
> >
> > All,
> >
> > I received an email from someone concerning the PHP / MySQL Driver
> crashes.
> >
> > It's quite possible that the MySQL driver causes memory corruption
in
> the
> >
> > second example below, and anything in your server that causes memory
> > corruption could ultimately corrupt the memory used by PHPA and
cause a
> >
> > malfunction.
> >
> > nick
> >
> > From the email:
> >
> > About the crashing, I found a workaround to the MySQL driver
> > segfaulting: after saying php to use a specific mysql connection,
> > instead of the default one, crashes disappeared. So
> >
> > $conn =3D mysql_pconnect("host","username","pass");
> > mysql_select_db("db1",$conn);
> > $query =3D mysql_query("SELECT * FROM xxx",$conn)
> > while ($row =3D mysql_fetch_array($query)) do_stuff();
> >
> > worked, while
> >
> > $conn =3D mysql_pconnect("host","username","pass");
> > mysql_select_db("db1");
> > $query =3D mysql_query("SELECT * FROM xxx")
> > while ($row =3D mysql_fetch_array($query)) do_stuff();
> >
> > randomly crashed.
> >
> >
> >
------------------------------------------------------------------------
> > www.php-accelerator.co.uk Home of the free PHP
Accelerator
> >
> > To post, send email to phpa@xxxxxxxxxxxxx
> > To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject
> unsubscribe
> >
> >
> >
> >
>
------------------------------------------------------------------------
> www.php-accelerator.co.uk Home of the free PHP Accelerator
>=20
> To post, send email to phpa@xxxxxxxxxxxxx
> To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject
unsubscribe
>=20
>=20
------------------------------------------------------------------------
www.php-accelerator.co.uk Home of the free PHP Accelerator
To post, send email to phpa@xxxxxxxxxxxxx
To unsubscribe, email phpa-request@xxxxxxxxxxxxx with subject unsubscribe
- References:
- [phpa] Re: Info on MySQL Driver/PHP 4.1.2 crash resolution
- From: GameCrash (Webmail)
Other related posts:
- » [phpa] Info on MySQL Driver/PHP 4.1.2 crash resolution
- » [phpa] Re: Info on MySQL Driver/PHP 4.1.2 crash resolution
- » [phpa] Re: Info on MySQL Driver/PHP 4.1.2 crash resolution
- » [phpa] Re: Info on MySQL Driver/PHP 4.1.2 crash resolution
- [phpa] Re: Info on MySQL Driver/PHP 4.1.2 crash resolution
- From: GameCrash (Webmail)