#23490 [NEW]: mysql_fetch_field causes segfault
| From: | michi102 at gmx dot de | Date: | Mon, 05 May 2003 12:52:16 +0000 |
| Subject: | #23490 [NEW]: mysql_fetch_field causes segfault | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39069@lists.php.net to get a copy of this message | ||
From: michi102 at gmx dot de
Operating system: SuSE 7.3
PHP version: 4.3.1
PHP Bug Type: MySQL related
Bug description: mysql_fetch_field causes segfault
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 bug report at http://bugs.php.net/?id=23490&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23490&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23490&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23490&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23490&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23490&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23490&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23490&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23490&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23490&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23490&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23490&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23490&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23490&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23490&r=gnused