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 */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php