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/bug74625.phpt ('Bug #74625 (Integer overflow in oci_bind_array_by_name)')

Script

1: <?php
2:
require(dirname(__FILE__).'/connect.inc');
3:
4:
// Initialization
5:
6:
$stmtarray = array(
7:         
"CREATE TABLE bug74625_tab (NAME NUMBER)",
8:         
"CREATE OR REPLACE PACKAGE PKG74625 AS
9:           TYPE ARRTYPE IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
10:           PROCEDURE iobind(c1 IN OUT ARRTYPE);
11:          END PKG74625;"
,
12:         
"CREATE OR REPLACE PACKAGE BODY PKG74625 AS
13:           PROCEDURE iobind(c1 IN OUT ARRTYPE) IS
14:           BEGIN
15:            FOR i IN 1..5 LOOP
16:             c1(i) := c1(i) * 2;
17:            END LOOP;
18:           END iobind;
19:          END PKG74625;"
20:
);
21:
22:
oci8_test_sql_execute($c$stmtarray);
23:
24:
$statement oci_parse($c"BEGIN pkg74625.iobind(:c1); END;");
25:
26:
$array = Array(-1,-2,-3,-4,-5);
27:
28:
oci_bind_array_by_name($statement":c1"$array5, -1SQLT_INT);
29:
30:
oci_execute($statement);
31:
32:
var_dump($array);
33:
34:
// Cleanup
35:
$stmtarray = array(
36:     
"DROP TABLE bug74625_tab",
37:     
"DROP PACKAGE PKG74625"
38:
);
39:
40:
oci8_test_sql_execute($c$stmtarray);
41:
42:
?>
43:
===DONE===
44:

Expected

array(5) {
  [0]=>
  int(-2)
  [1]=>
  int(-4)
  [2]=>
  int(-6)
  [3]=>
  int(-8)
  [4]=>
  int(-10)
}
===DONE===

Output

***********************************************************************
Fatal NI connect error 12541, connecting to:
 (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=XE)(CID=(PROGRAM=php)(HOST=nex2.php.net)(USER=nlopess)))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))

  VERSION INFORMATION:
	TNS for Linux: Version 11.2.0.2.0 - Beta
	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
  Time: 17-JUN-2018 05:08:49
  Tracing not turned on.
  Tns error struct:
    ns main err code: 12541
    TNS-12541: TNS:no listener
    ns secondary err code: 12560
    nt main err code: 511
    TNS-00511: No listener

Fatal error: connect.inc: Failed to connect as 'system' to 'localhost/XE': ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/connect.inc on line 14
    nt secondary err code: 111
    nt OS err code: 0

Diff

001+ ***********************************************************************
002+ Fatal NI connect error 12541, connecting to:
003+  (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=XE)(CID=(PROGRAM=php)(HOST=nex2.php.net)(USER=nlopess)))(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521)))
004+ 
005+   VERSION INFORMATION:
006+ 	TNS for Linux: Version 11.2.0.2.0 - Beta
007+ 	TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.2.0 - Beta
008+   Time: 17-JUN-2018 05:08:49
009+   Tracing not turned on.
010+   Tns error struct:
011+     ns main err code: 12541
012+     TNS-12541: TNS:no listener
013+     ns secondary err code: 12560
001- array(5) {
002-   [0]=>
003-   int(-2)
004-   [1]=>
005-   int(-4)
006-   [2]=>
007-   int(-6)
008-   [3]=>
009-   int(-8)
010-   [4]=>
011-   int(-10)
012- }
013- ===DONE===
014+     nt main err code: 511
015+     TNS-00511: No listener
016+ 
017+ Fatal error: connect.inc: Failed to connect as 'system' to 'localhost/XE': ORA-12541: TNS:no listener in /var/php_gcov/PHP_HEAD/ext/oci8/tests/connect.inc on line 14
018+     nt secondary err code: 111
019+     nt OS err code: 0

 

Generated at Mon, 18 Jun 2018 17:33:50 +0000 (20 hours ago)

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