summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/bug30967.phpt
blob: 9e68a0caec9e01cbc7fab8b360842ce7bec7e1a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
Bug #30967 (problems with properties declared in the class extending the class extending MySQLi)
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
    require_once("connect.inc");

    class mysql1 extends mysqli {
    }

    class mysql2 extends mysql1 {
    }

    $mysql = new mysql2($host, $user, $passwd, $db, $port, $socket);

    $mysql->query("THIS DOES NOT WORK");
    printf("%d\n", $mysql->errno);

    $mysql->close();
?>
--EXPECT--
1064