cvs: pearweb /public_html/bugs search.php

From: Date: Mon, 18 Sep 2006 15:44:01 +0000
Subject: cvs: pearweb /public_html/bugs search.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4943@lists.php.net to get a copy of this message
cellog Mon Sep 18 15:44:01 2006 UTC Modified files: /pearweb/public_html/bugs search.php Log: mysql/mysqli fix http://cvs.php.net/viewvc.cgi/pearweb/public_html/bugs/search.php?r1=1.71&r2=1.72&diff_format=u Index: pearweb/public_html/bugs/search.php diff -u pearweb/public_html/bugs/search.php:1.71 pearweb/public_html/bugs/search.php:1.72 --- pearweb/public_html/bugs/search.php:1.71 Sun Jan 29 05:05:54 2006 +++ pearweb/public_html/bugs/search.php Mon Sep 18 15:44:01 2006 @@ -15,7 +15,7 @@ * @package Bugs * @copyright Copyright (c) 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License - * @version $Id: search.php,v 1.71 2006/01/29 05:05:54 cellog Exp $ + * @version $Id: search.php,v 1.72 2006/09/18 15:44:01 cellog Exp $ */ /** @@ -67,7 +67,13 @@ /* * need to move this to DB eventually... */ - $mysql4 = version_compare(mysql_get_server_info(), '4.0.0', 'ge'); + $mysql4 = false; + if (function_exists('mysql_get_server_info')) { + $mysql4 = version_compare(mysql_get_server_info(), '4.0.0', 'ge'); + } elseif (function_exists('mysqli_get_server_version')) { + $mysql4 = version_compare(mysqli_get_server_version($dbh->connection), '4.0.0', 'ge'); + + } if ($mysql4) { $query = 'SELECT SQL_CALC_FOUND_ROWS';

« previous php.pear.core (#4943) next »