#23490 [Fbk->NoF]: mysql_fetch_field causes segfault

From: Date: Wed, 14 May 2003 16:02:38 +0000
Subject: #23490 [Fbk->NoF]: mysql_fetch_field causes segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39642@lists.php.net to get a copy of this message
 ID:               23490
 Updated by:       sniper@php.net
 Reported By:      michi102 at gmx dot de
-Status:           Feedback
+Status:           No Feedback
 Bug Type:         MySQL related
 Operating System: SuSE 7.3
 PHP Version:      4.3.1
 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.




Previous Comments:
------------------------------------------------------------------------

[2003-05-05 08:10:21] derick@php.net

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.

------------------------------------------------------------------------

[2003-05-05 07:52:16] michi102 at gmx dot de

Server conf: apache 1.3.27, php 4.3.1, MySQL 4.0.12, phpMyAdmin 2.4.0

Whenever I try to use mysql_fetch_field, I'll get a segmentation fault.
I recognized this first when using phpMyAdmin to query the database via
"Browse". Then I tried using mysql_fetch_field in own scripts - same
result.
Example:
$result = mysql_query("select * from admin";$db);
while ($field = mysql_fetch_field($result)) {
                $fields_meta[] = $field;
            }

It doesn't matter what I do inside the while loop - the result is
always the same: segfault.

My php config string:
'./configure' '--with-apxs=/usr/local/httpd/bin/apxs'
'--bindir=/usr/bin' '--libdir=/usr/lib' '--with-config-file-path=/etc'
'--with-exec-dir=%{libdir}/php/bin' '--with-open-ssl'
'--enable-sockets' '--with-mysql=/usr' '--enable-bcmath'
'--enable-calendar' '--with-ftp' '--enable-wddx'
'--with-zlib'
'--with-zlib-dir=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr'
'--with-gd' '--with-freetype-dir=/usr' '--enable-gd-native-ttf'
'--with-imap=/usr' '--with-imap-ssl=/usr' '--with-xpm-dir=/usr/X11R6'
'--with-tiff-dir=/usr' '--enable-exif' '--enable-ctype'
'--enable-dba'
'--with-mcrypt' '--disable-rpath' '--enable-shmop'
'--enable-sysvsem'
'--enable-sysvshm' '--enable-track-vars' '--enable-sysvmsg'
'--enable-track-vars' '--enable-magic-quotes' '--enable-versioning'
'--enable-sigchild' '--disable-debug' '--enable-trans-sid'
'--enable-pcntl' '--enable-memory-limit' '--enable-force-cgi-redirect'
'--enable-discard-path' '--enable-sigchild'

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23490&edit=1



Thread (10 messages)

« previous php.bugs (#39642) next »