Edit report at http://bugs.php.net/bug.php?id=51601&edit=1
ID: 51601 Updated by: [email protected] Reported by: pcarter at jhu dot edu Summary: Segmentation fault when using the 2-argument form of mysql_fetch_array Status: Assigned Type: Bug Package: MySQL related Operating System: FreeBSD 6.2-RELEASE PHP Version: 5.3.2 Assigned To: kalle Block user comment: N New Comment: I'm sorry, but it on Windows (which is where i roam the most) mysqlnd is default enabled and we can disable it with --without-mysqlnd to build against libmysql. But yeah, what I mean is, if it works against libmysql with the specifications (server version, etc.) as from when you reported it, then I think we're all good and can close this report :) Previous Comments: ------------------------------------------------------------------------ [2010-08-20 17:38:29] pcarter at jhu dot edu Not quite sure what you mean as '--without-mysqlnd' isn't a recognized configure option. (And to the best of my understanding '--with-mysql' links against libmysql in the absence of further specification). Just to be clear I tested both snapshots with both of the following configure lines (which is I think what you were asking): './configure' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--program-prefix=' '--enable-session' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--enable-dom' '--enable-json' '--enable-simplexml' '--enable-soap' '--with-openssl' '--with-pgsql' '--with-mysql' '--enable-tokenizer' '--enable-xml' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local' '--enable-cli' '--enable-zip' './configure' '--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all' '--enable-libxml' '--program-prefix=' '--enable-session' '--with-apxs2=/usr/local/sbin/apxs' '--with-regex=php' '--with-zend-vm=CALL' '--prefix=/usr/local' '--enable-dom' '--enable-json' '--enable-simplexml' '--enable-soap' '--with-openssl' '--with-pgsql' '--with-mysql=mysqlnd' '--enable-tokenizer' '--enable-xml' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local' '--enable-cli' '--enable-zip' Let me know if I'm confused about something. =) ------------------------------------------------------------------------ [2010-08-20 17:29:31] [email protected] Also if you build against libmysql (--without-mysqlnd)? But great news! :) ------------------------------------------------------------------------ [2010-08-20 16:46:41] pcarter at jhu dot edu Tested with both php5.2-201008201230 and php5.3-201008201230 snapshots using both '--with-mysql' and '--with-mysql=mysqlnd'. The test script executes as expected, no segfault. It appears the problem is solved (at least in those branches). Let me know if there are any other tests or snapshots you'd like me to run. ------------------------------------------------------------------------ [2010-08-20 12:23:06] [email protected] Does it still persist with latest snapshot? ------------------------------------------------------------------------ [2010-08-19 20:52:53] [email protected] +sorry i meant svn versions/snapshots, not trunk :) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/bug.php?id=51601 -- Edit this bug report at http://bugs.php.net/bug.php?id=51601&edit=1
