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