https://bugzilla.wikimedia.org/show_bug.cgi?id=16937


John Doyle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]




--- Comment #34 from John Doyle <[email protected]>  2009-05-11 10:06:11 
UTC ---
Hi All

I reported the php bug noted above. My issue is that PHP misreports the version
of Postgresql that I have installed. I'm running Mediawiki 1.14.0 and I can't
create new pages and searching doesn't work which I believe is related. I've
got the latest versions of PHP (5.2.9) and Postgresql (8.3.7) installed. In
DatabasePostgres.php in Mediawiki 1.14.0 the pg_version('server_version')
function is used to obtain the version of PostgreSQL. The code:

<?php
  $dbconn = pg_connect("my db connection")
     or die("Could not connect");

  $v = pg_version($dbconn);

  print_r($v);
?>

produces the array:
Array
(
    [client] => 8.3.1
)

for PostgreSQL 8.3.7 thus I reported a bug to PHP. Mediawiki 1.13.2 doesn't
have this problem as the getServerVersion() function uses the line:
$version = pg_fetch_result($this->doQuery("SELECT version()"),0,0);
to get the server version. I'm not sure why it was changed but could the change
be reverted as Mediawiki 1.14.0 currently doesn't work with PostgreSQL because
of it? Also I believe if PHP did fix the problem of pg_version reporting the
wrong version of Postgresql then Mediawiki would still be broken as I think PHP
would return the server version with the identifier 'server' and not
'server_version'.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to