cvs: php-src /ext/mysqli/tests bug36802.phpt
| From: | Ilia Alshanetsky | Date: | Thu, 13 Jul 2006 15:42:55 +0000 |
| Subject: | cvs: php-src /ext/mysqli/tests bug36802.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39216@lists.php.net to get a copy of this message | ||
iliaa Thu Jul 13 15:42:55 2006 UTC
Modified files:
/php-src/ext/mysqli/tests bug36802.phpt
Log:
MFB: Fixed test for systems where set_charset() method is unavailable.
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/bug36802.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/mysqli/tests/bug36802.phpt
diff -u php-src/ext/mysqli/tests/bug36802.phpt:1.2 php-src/ext/mysqli/tests/bug36802.phpt:1.3
--- php-src/ext/mysqli/tests/bug36802.phpt:1.2 Tue May 9 13:53:39 2006
+++ php-src/ext/mysqli/tests/bug36802.phpt Thu Jul 13 15:42:55 2006
@@ -17,7 +17,11 @@
$mysql = mysqli_init();
/* following operations should not work */
- $x[0] = @$mysql->set_charset('utf8');
+ if (method_exists($mysql, 'set_charset')) {
+ $x[0] = @$mysql->set_charset('utf8');
+ } else {
+ $x[0] = NULL;
+ }
$x[1] = @$mysql->query("SELECT 'foo' FROM DUAL");
/* following operations should work */