mirror of
https://github.com/php/php-src.git
synced 2024-10-19 07:22:40 +00:00
20 lines
301 B
Plaintext
20 lines
301 B
Plaintext
|
--TEST--
|
||
|
extend mysqli
|
||
|
--FILE--
|
||
|
<?php
|
||
|
include "connect.inc";
|
||
|
|
||
|
class foobar extends mysqli {
|
||
|
function test () {
|
||
|
return ("I like MySQL 4.1");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$foo = new foobar();
|
||
|
$foo->connect("localhost", $user, $passwd);
|
||
|
$foo->close();
|
||
|
printf("%s\n", $foo->test());
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
I like MySQL 4.1
|