FreeBSD Port: php5-mysqli-5.0.4_1

Uzi Klein uzi at bmby.com
Sun May 1 04:44:40 PDT 2005


Oliver Schonrock wrote:
...
> Hi
> 
> We run 4 FreeBSD servers now and have just built first FBSD server on 
> AMD64. Everything went quite smoothly using the amd64 version of freebsd.
> 
> until...
> 
> I tried to use the mysqli extension in php5.0.4 on apache 1.3.33 
> connecting to mysql-server-4.1.11 (all built from cvsup'd ports tree).
> 
> in php mysql_connect() works ok, but the mysql_fetch_array() segfaults.
> 
> this simple php script produces the error every time (via apache or with 
> command line binary):
> 
> <?php
> 
> $db = new mysqli('localhost', 'root', 'mysqlrootpw', 'mysql');
> 
> $result = $db->query('select * from user;');
> 
> while ($row = $result->fetch_array(MYSQLI_ASSOC))
> {
>   print_r($row);
> }
> 
> ?>
> 
> => Segmentation fault (core dumped)
> 

I have seen mysql 4.1x dies with queries that runs fine under 4.0x. 
Could it be that?
What application gives you the sig 11? is it apache or mysql?

Please attach relevant log files etc.



-- 
Uzi Klein
B.M.B.Y Software Systems LTD.
http://www.bmby.com



More information about the freebsd-ports mailing list