summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/bug36802.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/bug36802.phpt')
-rw-r--r--ext/mysqli/tests/bug36802.phpt40
1 files changed, 20 insertions, 20 deletions
diff --git a/ext/mysqli/tests/bug36802.phpt b/ext/mysqli/tests/bug36802.phpt
index 387d73338e..1189115837 100644
--- a/ext/mysqli/tests/bug36802.phpt
+++ b/ext/mysqli/tests/bug36802.phpt
@@ -4,39 +4,39 @@ Bug #36802 (crashes with with mysqli_set_charset())
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
- class really_my_mysqli extends mysqli {
- function __construct()
- {
- }
- }
+ class really_my_mysqli extends mysqli {
+ function __construct()
+ {
+ }
+ }
- require_once("connect.inc");
- $mysql = mysqli_init();
+ require_once("connect.inc");
+ $mysql = mysqli_init();
- /* following operations should not work */
- if (method_exists($mysql, 'set_charset')) {
- try {
- $mysql->set_charset('utf8');
+ /* following operations should not work */
+ if (method_exists($mysql, 'set_charset')) {
+ try {
+ $mysql->set_charset('utf8');
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
- } else {
- $x[0] = false;
- }
+ } else {
+ $x[0] = false;
+ }
- try {
+ try {
$mysql->query("SELECT 'foo' FROM DUAL");
} catch (Error $exception) {
echo $exception->getMessage() . "\n";
}
- /* following operations should work */
- $x[1] = ($mysql->client_version > 0);
- $x[2] = $mysql->errno;
+ /* following operations should work */
+ $x[1] = ($mysql->client_version > 0);
+ $x[2] = $mysql->errno;
- $mysql->close();
+ $mysql->close();
- var_dump($x);
+ var_dump($x);
?>
--EXPECT--
mysqli object is not fully initialized