1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00
Files
archived-php-src/ext/interbase/tests/ibase_num_fields_001.phpt
Gabriel Caruso ce1d69a1f6 Use int instead of integer in type errors
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00

26 lines
493 B
PHP

--TEST--
ibase_num_fields(): Basic test
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
require("interbase.inc");
$x = ibase_connect($test_base);
var_dump(ibase_num_fields(ibase_query('SELECT * FROM test1')));
var_dump(ibase_num_fields(1));
var_dump(ibase_num_fields());
?>
--EXPECTF--
int(2)
Warning: ibase_num_fields() expects parameter 1 to be resource, int given in %s on line %d
NULL
Warning: ibase_num_fields() expects exactly 1 parameter, 0 given in %s on line %d
NULL