svn: web/php-bugs/trunk/ rpc.php

From: Date: Tue, 21 Jul 2009 05:37:58 +0000
Subject: svn: web/php-bugs/trunk/ rpc.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-5461@lists.php.net to get a copy of this message
gwynne Tue, 21 Jul 2009 05:37:58 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=284460 Log: Thanks for the heads-up, bjori. Use mysql_set_charset() in preference to a raw SET NAMES. This is probably important in case bugsweb were ever to use a PHP running mysqlnd, yet at the same time not having been rewritten to use something newer than PHP/FI 2... Changed paths: U web/php-bugs/trunk/rpc.php Modified: web/php-bugs/trunk/rpc.php =================================================================== --- web/php-bugs/trunk/rpc.php 2009-07-20 23:29:23 UTC (rev 284459) +++ web/php-bugs/trunk/rpc.php 2009-07-21 05:37:58 UTC (rev 284460) @@ -22,7 +22,7 @@ @mysql_connect("localhost","nobody","") or die("Unable to connect to SQL server."); @mysql_select_db("phpbugdb"); -@mysql_query("SET NAMES utf8"); +@mysql_set_charset('utf8'); # fetch info about the bug into $bug $query = "SELECT id,bug_type,email,sdesc,ldesc,php_version,php_os,status,ts1,ts2,assign,"

« previous php.webmaster (#5461) next »