PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/interbase/tests/ibase_drop_db_001.phpt ('ibase_drop_db(): Basic test')

Script

1: <?php
2:
3:
require("interbase.inc");
4:
5:
unlink($file tempnam('/tmp',"php_ibase_test"));
6:
7:
8:
$db ibase_query(IBASE_CREATE,
9:         
sprintf("CREATE SCHEMA '%s' USER '%s' PASSWORD '%s' DEFAULT CHARACTER SET %s",$file,
10:         
$user$password, ($charset ini_get('ibase.default_charset')) ? $charset 'NONE'));
11:
12:
var_dump($db);
13:
var_dump(ibase_drop_db($db));
14:
var_dump(ibase_drop_db(1));
15:
var_dump(ibase_drop_db(NULL));
16:
17:
?>
18:

Expected

resource(%d) of type (Firebird/InterBase link)
bool(true)

Warning: ibase_drop_db() expects parameter 1 to be resource, int given in %s on line %d
NULL

Warning: ibase_drop_db() expects parameter 1 to be resource, null given in %s on line %d
NULL

Output

resource(8) of type (Firebird/InterBase link)
bool(true)

Fatal error: Uncaught TypeError: ibase_drop_db() expects parameter 1 to be resource, int given in /var/php_gcov/PHP_HEAD/ext/interbase/tests/ibase_drop_db_001.php:14
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/interbase/tests/ibase_drop_db_001.php(14): ibase_drop_db(1)
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/interbase/tests/ibase_drop_db_001.php on line 14

Warning: ibase_drop_db(): lock time-out on wait transaction object /tmp/php_ibase_testGRcy43 is in use  in /var/php_gcov/PHP_HEAD/ext/interbase/tests/interbase.inc on line 33

Diff

004+ Fatal error: Uncaught TypeError: ibase_drop_db() expects parameter 1 to be resource, int given in /var/php_gcov/PHP_HEAD/ext/interbase/tests/ibase_drop_db_001.php:14
005+ Stack trace:
006+ #0 /var/php_gcov/PHP_HEAD/ext/interbase/tests/ibase_drop_db_001.php(14): ibase_drop_db(1)
007+ #1 {main}
008+   thrown in /var/php_gcov/PHP_HEAD/ext/interbase/tests/ibase_drop_db_001.php on line 14
004- Warning: ibase_drop_db() expects parameter 1 to be resource, int given in %s on line %d
005- NULL
007- Warning: ibase_drop_db() expects parameter 1 to be resource, null given in %s on line %d
010+ Warning: ibase_drop_db(): lock time-out on wait transaction object /tmp/php_ibase_testGRcy43 is in use  in /var/php_gcov/PHP_HEAD/ext/interbase/tests/interbase.inc on line 33
008- NULL

 

Generated at Tue, 19 Mar 2019 00:18:08 +0000 (4 days ago)

Copyright © 2005-2019 The PHP Group
All rights reserved.