mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
a4cd950dc8
verbose explanation of changes: - take connection parameter from connect.inc - use proper UEXPECTF - have 'print "done!"' or similar at the end to detect crashes - whitespace changes where needed - take care of portability: PHP 5 vs. PHP 5, MySQL 4.1 - 6.0 - understand return value checking as sometime that makes you type more when you write but makes you happy when you debug
32 lines
493 B
PHP
32 lines
493 B
PHP
--TEST--
|
|
mysqli_driver properties
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
include "connect.inc";
|
|
|
|
var_dump($driver->embedded);
|
|
var_dump($driver->client_version);
|
|
var_dump($driver->client_info);
|
|
var_dump($driver->driver_version);
|
|
var_dump($driver->reconnect);
|
|
var_dump($driver->report_mode);
|
|
print "done!";
|
|
?>
|
|
--EXPECTF--
|
|
bool(%s)
|
|
int(%d)
|
|
string(%d) "%s"
|
|
int(%d)
|
|
bool(%s)
|
|
int(%d)
|
|
done!
|
|
--UEXPECTF--
|
|
bool(%s)
|
|
int(%d)
|
|
unicode(%d) "%s"
|
|
int(%d)
|
|
bool(%s)
|
|
int(%d)
|
|
done!
|