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