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

Test Failure Report for ext/pdo_firebird/tests/bug_38253.phpt ('FIREBIRD PDO Common: Bug #38253 (PDO produces segfault with default fetch mode)')

Script

1: <?php
2:
if (getenv('REDIR_TEST_DIR') === falseputenv('REDIR_TEST_DIR='.dirname(__FILE__) . '/../../pdo/tests/');
3: require_once 
getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
4:
$pdo PDOTest::factory();
5:
6:
$pdo->exec ("create table test (id integer primary key, n varchar(255))");
7:
$pdo->exec ("INSERT INTO test (id, n) VALUES (1, 'hi')");
8:
9:
$pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODEPDO::FETCH_CLASS);
10:
$stmt $pdo->prepare ("SELECT * FROM test");
11:
$stmt->execute();
12:
var_dump($stmt->fetchAll());
13:
14:
$pdo PDOTest::factory();
15:
16: if (
$pdo->getAttribute(PDO::ATTR_DRIVER_NAME) == 'oci') {
17:     
$type "clob";
18: } else{
19:     
$type "text";
20: }
21:
22:
$pdo->exec ("create table test2 (id integer primary key, n $type)");
23:
$pdo->exec ("INSERT INTO test2 (id, n) VALUES (1,'hi')");
24:
25:
$pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODEPDO::FETCH_FUNC);
26:
$stmt $pdo->prepare ("SELECT * FROM test2");
27:
$stmt->execute();
28:
var_dump($stmt->fetchAll());
29:
30:
?>
31:

Expected

Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: No fetch class specified in %s on line %d

Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error%s on line %d
array(0) {
}

Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: No fetch function specified in %s on line %d

Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error%s on line %d
array(0) {
}

Output

Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: No fetch class specified in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 12

Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 12
array(0) {
}

Warning: PDO::exec(): SQLSTATE[HY000]: General error: -607 Dynamic SQL Error SQL error code = -607 Invalid command Specified domain or source column TEXT does not exist  in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 22

Warning: PDO::exec(): SQLSTATE[HY000]: General error: -204 Dynamic SQL Error SQL error code = -204 Table unknown TEST2 At line 1, column 13  in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 23

Warning: PDO::prepare(): SQLSTATE[HY000]: General error: -204 Dynamic SQL Error SQL error code = -204 Table unknown TEST2 At line 1, column 15  in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 26

Fatal error: Call to a member function execute() on a non-object in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 27

Diff

# original source file: ext/pdo/tests/bug_38253.phpt
007+ Warning: PDO::exec(): SQLSTATE[HY000]: General error: -607 Dynamic SQL Error SQL error code = -607 Invalid command Specified domain or source column TEXT does not exist  in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 22
008+ 
009+ Warning: PDO::exec(): SQLSTATE[HY000]: General error: -204 Dynamic SQL Error SQL error code = -204 Table unknown TEST2 At line 1, column 13  in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 23
010+ 
011+ Warning: PDO::prepare(): SQLSTATE[HY000]: General error: -204 Dynamic SQL Error SQL error code = -204 Table unknown TEST2 At line 1, column 15  in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 26
007- Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error: No fetch function specified in %s on line %d
009- Warning: PDOStatement::fetchAll(): SQLSTATE[HY000]: General error%s on line %d
013+ Fatal error: Call to a member function execute() on a non-object in /var/php_gcov/PHP_5_5/ext/pdo_firebird/tests/bug_38253.php on line 27
010- array(0) {
011- }

 

Generated at Mon, 15 Sep 2014 17:22:22 +0000 (6 days ago)

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