xref: /PHP-8.0/ext/mysqli/tests/056.phpt (revision e3e67b72)
1--TEST--
2extend mysqli
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10    require_once("connect.inc");
11
12    class foobar extends mysqli {
13        function test () {
14            return ("I do not like MySQL 4.1");
15        }
16    }
17
18    $foo = new foobar();
19    $foo->connect($host, $user, $passwd, $db, $port, $socket);
20    $foo->close();
21    printf("%s\n", $foo->test());
22?>
23--EXPECT--
24I do not like MySQL 4.1
25