|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-04-11 16:54 UTC] tony2001@php.net
[2005-04-11 22:31 UTC] jorton@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 13:00:01 2025 UTC |
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); ?>