ID: 32672 Updated by: [EMAIL PROTECTED] Reported By: php at pappert dot biz -Status: Feedback +Status: Bogus Bug Type: MySQLi related Operating System: Debian 3.1 on AMD64 PHP Version: 5.0.4 New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. This is bug 32282, which was just fixed in CVS - try a snapshot from snaps.php.net. Previous Comments: ------------------------------------------------------------------------ [2005-04-11 16:54:43] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [2005-04-11 16:43:19] php at pappert dot biz Description: ------------ System: mysql-4.1.11 apache-2.0.53 debian-3.1 on AMD64 On every DB connect with $oObject = new mysqli('host', 'user', 'pass') the apache child (only the child) will crash and the connection will broke down. You can open any other side on this machine without any trouble, if it doesn't contain mysqli calls (server is still available). Phpinfo() shows the mysql part with the right configuration. And if I start the script in the "code box below" on the cli it is crashing with this message: "Segmentation fault"! The Apache Error_log shows: [XXX XXX XX XXXXX] [notice] child pid 32424 exit signal Segmentation fault (11) The php log is empty, the mysql log also. This is my configure command: ./configure --with-config-file-path=/etc --prefix=/usr/local/php-5.0.4 --with-apxs2=/usr/local/apache-2.0.53/bin/apxs --with-mysqli=/usr/local/mysql/bin/mysql_config Reproduce code: --------------- <?php $o = new mysqli('localhost', 'root', '******', 'mysql'); $r = $o->query('select * from db'); echo $o->error; while($aRow = $r->fetch_array(MYSQLI_ASSOC)) print_r($aRow); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32672&edit=1