cvs: php-src(PHP_5_2) /ext/mysqli/tests bug36802.phpt
| From: | Ilia Alshanetsky | Date: | Thu, 13 Jul 2006 15:42:43 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/mysqli/tests bug36802.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39215@lists.php.net to get a copy of this message | ||
iliaa Thu Jul 13 15:42:43 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/mysqli/tests bug36802.phpt
Log:
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.1.2.1&r2=1.1.2.1.2.1&diff_format=u
Index: php-src/ext/mysqli/tests/bug36802.phpt
diff -u php-src/ext/mysqli/tests/bug36802.phpt:1.1.2.1
php-src/ext/mysqli/tests/bug36802.phpt:1.1.2.1.2.1
--- php-src/ext/mysqli/tests/bug36802.phpt:1.1.2.1 Fri Mar 24 09:32:24 2006
+++ php-src/ext/mysqli/tests/bug36802.phpt Thu Jul 13 15:42:43 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 */