mirror of
https://github.com/php/php-src.git
synced 2025-01-06 19:03:31 +08:00
27 lines
574 B
PHP
27 lines
574 B
PHP
--TEST--
|
|
Sybase-CT connection caching
|
|
--SKIPIF--
|
|
<?php require('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
/* This file is part of PHP test framework for ext/sybase_ct
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
require('test.inc');
|
|
|
|
$db1= sybase_connect_ex();
|
|
$db2= sybase_connect_ex();
|
|
$db3= sybase_connect_ex(NULL, NULL, $new= TRUE);
|
|
var_dump($db1, $db2, $db3, (string)$db1 == (string)$db2, (string)$db2 == (string)$db3);
|
|
sybase_close($db1);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
resource(%d) of type (sybase-ct link)
|
|
resource(%d) of type (sybase-ct link)
|
|
resource(%d) of type (sybase-ct link)
|
|
bool(true)
|
|
bool(false)
|