Hi there Adam,

On 30 Mar 2005, at 04:31, Adam Conrad wrote:
Philipp Kern said:
Apache still segfaults when mysql_fetch_field() is called from within
PHPMyAdmin:
[notice] child pid 31234 exit signal Segmentation fault (11)
Can you reduce this to a useful testcase?  I've tried to reproduce this
bug, and have failed miserably.  mysql_fetch_field() always works just
fine for me.

I did a 1:1 copy from the PHPMyAdmin code to reproduce this, and indeed it works:

<?php
  mysql_connect(<server>, <user>, <pass>);
  $result = mysql_query("SELECT * FROM mysql.user");
  $fields = array();
  $num_fields = mysql_num_fields($result);
  for($i = 0; $i < $num_fields; $i++) {
    $fields[] = mysql_fetch_field($result, $i);
  }
?>

Regards,
Philipp Kern
Debian Developer

Attachment: PGP.sig
Description: This is a digitally signed message part



Reply via email to