[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problems with PHP4 & MySQL Packages



I don't know about the dying process bug. What I see is that var_dump
returns only garbage content. This bug made me discover the print_r php
function that does more that var_dump and my custom displayArray()
function.

Concerning the dying process, I don't see this behavior. I am mostly
uptodate concerning LAMP:

~$ apt-cache policy apache mysql-server php4
apache:
  Installés : 1.3.27.0-1
  Candidat : 1.3.27.0-1
 Table de version :
 *** 1.3.27.0-1 0
        500 http://ftp.us.debian.org sid/main Packages
        100 /var/lib/dpkg/status
mysql-server:
  Installés : 4.0.13-1
  Candidat : 4.0.13-2
 Table de version :
     4.0.13-2 0
        500 http://ftp.us.debian.org sid/main Packages
 *** 4.0.13-1 0
        100 /var/lib/dpkg/status
php4:
  Installés : 4:4.2.3-14
  Candidat : 4:4.2.3-14
 Table de version :
 *** 4:4.2.3-14 0
        500 http://ftp.us.debian.org sid/main Packages
        100 /var/lib/dpkg/status

Christophe

On Mon, Jun 23, 2003 at 12:21:31PM -0700, Eric Pretorious wrote:
> Hello, All:
> 
> To respond to Christophe's report that var_dump() is broken: If you replace 
> the var_dump() line with...
> 
> <?php
> // Replace var_dump() with...
> start_session();
> $_SESSION = $row;
> ?>
> 
> ...apache/mysql/php exhibits the same behavior: All of apache's children 
> processes die. i.e., The problem not only seems to be with var_dump() but 
> *also* with...
> 
> A. The array returned by mysql_fetch_array(), or
> B. The process of copying that array into the $_SESSION array.
> 
> (The technique of copying the entire record into the $_SESSION variable has 
> worked in the past on different architectures...)
> 
> Eric P.
> Sunnyvale, CA
> 
> 
> >From: christophe barbe <christophe@cattlegrid.net>
> >Subject: Re: Problems with PHP4 & MySQL Packages
> >Date: Mon, 23 Jun 2003 09:32:48 -0400
> >
> >var_dump is broken.
> >print_r is a nice alternative:
> >  http://us2.php.net/manual/en/function.print-r.php
> >
> >Christophe
> >
> >On Sun, Jun 22, 2003 at 09:53:58PM -0700, Eric Pretorious wrote:
> >> Hello, All:
> >>
> >> I'm stumped: I'm using Debian 3.0 (Woody) on a PowerBook Lombard and 
> >can't
> >> get the PHP package  (php4 4.1.2-6 and php4-mysql 4.1.2-6) and the MySQL
> >> package (mysql-server 3.23.49-8) to play nicely together. This script...
> >>
> >> <?php
> >> $connect = mysql_pconnect('localhost','sample_user','sample_passwd');
> >> mysql_select_db('sample_db',$connect);
> >> $sql = 'SELECT * FROM names WHERE userid = ' . $somenumber;
> >> $result = mysql_query($sql, $connect);
> >>
> >> var_dump($row);
> >> ?>
> >>
> >> ...causes apache to die. (i.e., nothing is returned to the browser.)
> >> /var/log/apache/error.log contains "[notice] child pid [#####] exit 
> >signal
> >> Segmentation fault (11)" for _every_ active apache child process where
> >> ##### is the pid for the apache process.
> >>
> >> Why is this happening?
> >>
> >> Eric P.
> >> Sunnyvale, CA
> 
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online  
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-powerpc-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact 
> listmaster@lists.debian.org

-- 
Christophe Barbé <christophe.barbe@ufies.org>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8  F67A 8F45 2F1E D72C B41E

Cats seem go on the principle that it never does any harm to ask for
what you want. --Joseph Wood Krutch



Reply to: