From: paolo at ahead dot it Operating system: linux i386 PHP version: 5.0.3 PHP Bug Type: ODBC related Bug description: mysql & iodbc support
Description: ------------ on my linux box fedora core2 with kernel 2.6.5-1.358 i have a segmentation fault on code reported if i compile php with mysql support. if i remove mysql support with --without-mysql all work correctly. on windows 2003 work with both mysql & iodbc support. this is my configuration: ./configure --with-mysql=/dati/inetpub/mysql --prefix=/dati/inetpub/php --with-gd --enable-gd-native-ttf --enable-sockets --enable-pcntl --without-pear --with-zlib --with-jpeg-dir=/dati/inetpub/src/jpeg-6b --with-curl --with-ttf --with-freetype-dir --with-imap=/dati/inetpub/src/imap-2004a --with-iodbc=/dati/inetpub/iodbc --with-kerberos Reproduce code: --------------- <? putenv("ODBCINI=/etc/odbc.ini"); $db = odbc_connect("myodbc3","root",""); $rec = odbc_exec($db,"select 1"); while(odbc_fetch_row($rec)) echo odbc_result($rec, "1") ."\n"; ?> Expected result: ---------------- 1 Actual result: -------------- Segmentation fault -- Edit bug report at http://bugs.php.net/?id=32216&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32216&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32216&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32216&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32216&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32216&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32216&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32216&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32216&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32216&r=support Expected behavior: http://bugs.php.net/fix.php?id=32216&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32216&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32216&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32216&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32216&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32216&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32216&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32216&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32216&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32216&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32216&r=mysqlcfg