ID: 37438 Updated by: [EMAIL PROTECTED] Reported By: indeyets at gmail dot com -Status: Analyzed +Status: Feedback Bug Type: PDO related Operating System: FreeBSD PHP Version: 5.1.4 & 5.1.6 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2006-09-22 15:49:34] [EMAIL PROTECTED] Bug still exists in 5.1.6 ------------------------------------------------------------------------ [2006-09-22 15:48:47] [EMAIL PROTECTED] This appears to be a bug related to the Primary Key. I experienced the issue with a table that had an integer primary key (non auto inc) and PHP would segfault if the table had a row who's PK == 0. Deleting the row solved the problem ------------------------------------------------------------------------ [2006-05-15 10:04:52] [EMAIL PROTECTED] See #37445 for more info. ------------------------------------------------------------------------ [2006-05-14 16:22:19] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2006-05-14 16:15:40] indeyets at gmail dot com Description: ------------ After upgrading from 5.1.2 to 5.1.4 apache childs began to segfault at some requests. Backtrace showed, that the problem lies inside of PDO_MySQL. The issue was originally mentioned here: http://pecl.php.net/bugs/bug.php?id=7433 reverting this patch solves the issue: http://cvs.php.net/viewcvs.cgi/php-src/ext/pdo_mysql/mysql_statement.c?r1=1.48.2.12&r2=1.48.2.13 Actual result: -------------- #0 0x2908180a in mysql_more_results () from /usr/local/lib/mysql/libmysqlclient.so.15 #1 0x29064c4c in pdo_mysql_stmt_dtor (stmt=0x8743124) at /usr/ports/lang/php5/work/php-5.1.4/ext/pdo_mysql/mysql_statement.c:79 #2 0x29022bee in free_statement (stmt=0x8743124) at /usr/ports/lang/php5/work/php-5.1.4/ext/pdo/pdo_stmt.c:2200 #3 0x29022c63 in pdo_dbstmt_free_storage (stmt=0x8743124) at /usr/ports/lang/php5/work/php-5.1.4/ext/pdo/pdo_stmt.c:2245 #4 0x28740a46 in ?? () from /usr/local/libexec/apache22/libphp5.so ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37438&edit=1