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

From: Date: Mon, 05 May 2003 13:10:21 +0000
Subject: #23490 [Opn->Fbk]: mysql_fetch_field causes segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39072@lists.php.net to get a copy of this message
ID: 23490 Updated by: derick@php.net Reported By: michi102 at gmx dot de -Status: Open +Status: Feedback Bug Type: MySQL related Operating System: SuSE 7.3 PHP Version: 4.3.1 New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#39072) next »