1--TEST--
2PDO_Firebird: Bug 72931 Insert returning fails on Firebird 3
3--SKIPIF--
4<?php if (!extension_loaded('interbase') || !extension_loaded('pdo_firebird')) die('skip'); ?>
5--FILE--
6<?php
7require 'testdb.inc';
8$C = new PDO('firebird:dbname='.$test_base, $user, $password) or die;
9$C->exec('create table tablea (id integer)');
10$S = $C->prepare('insert into tablea (id) values (1) returning id');
11$S->execute();
12$D = $S->fetch(PDO::FETCH_NUM);
13echo $D[0];
14unset($S);
15unset($C);
16?>
17--CLEAN--
18<?php
19require 'testdb.inc';
20$C = new PDO('firebird:dbname='.$test_base, $user, $password) or die;
21$C->exec('drop table tablea');
22?>
23--EXPECT--
241
25