mirror of
https://github.com/php/php-src.git
synced 2024-11-30 21:35:36 +08:00
31c35e5cad
remove ENV tag from the old ones
35 lines
686 B
PHP
35 lines
686 B
PHP
--TEST--
|
|
collection methods
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require dirname(__FILE__)."/connect.inc";
|
|
require dirname(__FILE__)."/create_type.inc";
|
|
|
|
$coll1 = ocinewcollection($c, $type_name);
|
|
|
|
var_dump($coll1->size());
|
|
var_dump($coll1->max());
|
|
var_dump($coll1->trim(3));
|
|
var_dump($coll1->append(1));
|
|
var_dump($coll1->getElem(0));
|
|
var_dump($coll1->assignElem(0,2));
|
|
|
|
echo "Done\n";
|
|
|
|
require dirname(__FILE__)."/drop_type.inc";
|
|
|
|
?>
|
|
--EXPECTF--
|
|
int(0)
|
|
int(0)
|
|
|
|
Warning: OCI-Collection::trim(): OCI-22167: given trim size [3] must be less than or equal to [0] in %s on line %d
|
|
bool(false)
|
|
bool(true)
|
|
float(1)
|
|
bool(true)
|
|
Done
|