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/oci8/tests/lob_015.phpt ('various tests with wrong param count')

Script

1: <?php
2:
3:
require __DIR__.'/connect.inc';
4: require 
__DIR__.'/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 
__DIR__.'/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

Fatal error: Uncaught ArgumentCountError: oci_new_descriptor() expects at most 2 parameters, 5 given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/lob_015.php:14
Stack trace:
#0 /var/php_gcov/PHP_HEAD/ext/oci8/tests/lob_015.php(14): oci_new_descriptor(Resource id #6, 50, 1, 2, 3)
#1 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/oci8/tests/lob_015.php on line 14

Diff

001+ Fatal error: Uncaught ArgumentCountError: oci_new_descriptor() expects at most 2 parameters, 5 given in /var/php_gcov/PHP_HEAD/ext/oci8/tests/lob_015.php:14
002+ Stack trace:
003+ #0 /var/php_gcov/PHP_HEAD/ext/oci8/tests/lob_015.php(14): oci_new_descriptor(Resource id #6, 50, 1, 2, 3)
004+ #1 {main}
005+   thrown in /var/php_gcov/PHP_HEAD/ext/oci8/tests/lob_015.php on line 14
001- Warning: oci_new_descriptor() expects at most 2 parameters, 5 given in %s on line %d
002- 
003- Warning: oci_bind_by_name() expects at most 5 parameters, 6 given in %s on line %d
004- 
005- Warning: oci_bind_by_name() expects at most 5 parameters, 7 given in %s on line %d
006- 
007- Warning: oci_bind_by_name() expects at least 3 parameters, 2 given in %s on line %d
008- 
009- Warning: oci_bind_by_name() expects at least 3 parameters, 1 given in %s on line %d
010- object(OCI-Lob)#%d (1) {
011-   ["descriptor"]=>
012-   resource(%d) of type (oci8 descriptor)
013- }
014- Done

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (942 days ago)

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