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

Test Failure Report for ext/oci8/tests/lob_015.phpt ('various tests with wrong param count')

Script

1: <?php
2:
3:
require dirname(__FILE__).'/connect.inc';
4: require 
dirname(__FILE__).'/create_table.inc';
5:
6:
$ora_sql "INSERT INTO
7:                        "
.$schema.$table_name." (blob)
8:                       VALUES (empty_blob())
9:                       RETURNING
10:                                blob
11:                       INTO :v_blob "
;
12:
13:
$statement oci_parse($c,$ora_sql);
14:
$blob oci_new_descriptor($c,OCI_D_LOB,1,2,3);
15:
$blob oci_new_descriptor($c);
16:
$int 1;
17:
oci_bind_by_name($statement,":v_blob"$blob,-1,OCI_B_BLOB,4);
18:
oci_bind_by_name($statement,":v_blob"$blob,-1,OCI_B_BLOB,4,5);
19:
oci_bind_by_name($statement,":v_blob"$int,-1);
20:
oci_bind_by_name($statement,":v_blob"$int);
21:
oci_bind_by_name($statement,":v_blob");
22:
oci_bind_by_name($statement);
23:
oci_execute($statementOCI_DEFAULT);
24:
25:
var_dump($blob);
26:
27: require 
dirname(__FILE__).'/drop_table.inc';
28:
29: echo 
"Done\n";
30:
31:
?>
32:

Expected

Warning: oci_new_descriptor() expects at most 2 parameters, 5 given in %s on line %d

Warning: oci_bind_by_name() expects at most 5 parameters, 6 given in %s on line %d

Warning: oci_bind_by_name() expects at most 5 parameters, 7 given in %s on line %d

Warning: oci_bind_by_name() expects at least 3 parameters, 2 given in %s on line %d

Warning: oci_bind_by_name() expects at least 3 parameters, 1 given in %s on line %d
object(OCI-Lob)#%d (1) {
  ["descriptor"]=>
  resource(%d) of type (oci8 descriptor)
}
Done

Output

Warning: oci_new_descriptor() expects at most 2 parameters, 5 given in /var/php_gcov/PHP_7_3/ext/oci8/tests/lob_015.php on line 14

Warning: oci_bind_by_name() expects at most 5 parameters, 6 given in /var/php_gcov/PHP_7_3/ext/oci8/tests/lob_015.php on line 17

Warning: oci_bind_by_name() expects at most 5 parameters, 7 given in /var/php_gcov/PHP_7_3/ext/oci8/tests/lob_015.php on line 18

Warning: oci_bind_by_name() expects at least 3 parameters, 2 given in /var/php_gcov/PHP_7_3/ext/oci8/tests/lob_015.php on line 21

Warning: oci_bind_by_name() expects at least 3 parameters, 1 given in /var/php_gcov/PHP_7_3/ext/oci8/tests/lob_015.php on line 22

Warning: oci_execute(): ORA-00932: inconsistent datatypes: expected NUMBER got BLOB in /var/php_gcov/PHP_7_3/ext/oci8/tests/lob_015.php on line 23
object(OCI-Lob)#1 (1) {
  ["descriptor"]=>
  resource(11) of type (oci8 descriptor)
}
Done

Diff

010+ 
011+ Warning: oci_execute(): ORA-00932: inconsistent datatypes: expected NUMBER got BLOB in /var/php_gcov/PHP_7_3/ext/oci8/tests/lob_015.php on line 23

 

Generated at Thu, 14 Nov 2019 02:24:20 +0000 (10 hours ago)

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