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/bug27303_1.phpt ('Bug #27303 (OCIBindByName binds numeric PHP values as characters)')

Script

1: <?php
2:
3:
require(dirname(__FILE__).'/connect.inc');
4:     
5:
$stmtarray = array(
6:     
"drop sequence myseq",
7:     
"drop table mytab",
8:     
"create sequence myseq",
9:     
"create table mytab (mydata varchar2(20), seqcol number)"
10:
);
11:
12:
oci8_test_sql_execute($c$stmtarray);
13:
14:
define('MYLIMIT'200);
15:
16:
$stmt "insert into mytab (mydata, seqcol) values ('Some data', myseq.nextval) returning seqcol into :mybv";
17:
18:
$stid OCIParse($c$stmt);
19: if (!
$stid) { echo "Parse error"; die; }
20:
21:
$r OCIBindByName($stid':MYBV'$mybv);
22: if (!
$r) { echo "Bind error"; die; }
23:
24: for (
$i 1$i MYLIMIT$i++) {
25:     
$r OCIExecute($stidOCI_DEFAULT);
26:     if (!
$r) { echo "Execute error"; die; }
27:     
var_dump($mybv);
28: }
29:
30:
OCICommit($c);
31:
32:
$stmtarray = array(
33:     
"drop sequence myseq",
34:     
"drop table mytab"
35:
);
36:
37:
oci8_test_sql_execute($c$stmtarray);
38:
39: echo 
"Done\n";
40:
?>
41:

Expected

string(1) "1"
string(1) "2"
string(1) "3"
string(1) "4"
string(1) "5"
string(1) "6"
string(1) "7"
string(1) "8"
string(1) "9"
string(2) "10"
string(2) "11"
string(2) "12"
string(2) "13"
string(2) "14"
string(2) "15"
string(2) "16"
string(2) "17"
string(2) "18"
string(2) "19"
string(2) "20"
string(2) "21"
string(2) "22"
string(2) "23"
string(2) "24"
string(2) "25"
string(2) "26"
string(2) "27"
string(2) "28"
string(2) "29"
string(2) "30"
string(2) "31"
string(2) "32"
string(2) "33"
string(2) "34"
string(2) "35"
string(2) "36"
string(2) "37"
string(2) "38"
string(2) "39"
string(2) "40"
string(2) "41"
string(2) "42"
string(2) "43"
string(2) "44"
string(2) "45"
string(2) "46"
string(2) "47"
string(2) "48"
string(2) "49"
string(2) "50"
string(2) "51"
string(2) "52"
string(2) "53"
string(2) "54"
string(2) "55"
string(2) "56"
string(2) "57"
string(2) "58"
string(2) "59"
string(2) "60"
string(2) "61"
string(2) "62"
string(2) "63"
string(2) "64"
string(2) "65"
string(2) "66"
string(2) "67"
string(2) "68"
string(2) "69"
string(2) "70"
string(2) "71"
string(2) "72"
string(2) "73"
string(2) "74"
string(2) "75"
string(2) "76"
string(2) "77"
string(2) "78"
string(2) "79"
string(2) "80"
string(2) "81"
string(2) "82"
string(2) "83"
string(2) "84"
string(2) "85"
string(2) "86"
string(2) "87"
string(2) "88"
string(2) "89"
string(2) "90"
string(2) "91"
string(2) "92"
string(2) "93"
string(2) "94"
string(2) "95"
string(2) "96"
string(2) "97"
string(2) "98"
string(2) "99"
string(3) "100"
string(3) "101"
string(3) "102"
string(3) "103"
string(3) "104"
string(3) "105"
string(3) "106"
string(3) "107"
string(3) "108"
string(3) "109"
string(3) "110"
string(3) "111"
string(3) "112"
string(3) "113"
string(3) "114"
string(3) "115"
string(3) "116"
string(3) "117"
string(3) "118"
string(3) "119"
string(3) "120"
string(3) "121"
string(3) "122"
string(3) "123"
string(3) "124"
string(3) "125"
string(3) "126"
string(3) "127"
string(3) "128"
string(3) "129"
string(3) "130"
string(3) "131"
string(3) "132"
string(3) "133"
string(3) "134"
string(3) "135"
string(3) "136"
string(3) "137"
string(3) "138"
string(3) "139"
string(3) "140"
string(3) "141"
string(3) "142"
string(3) "143"
string(3) "144"
string(3) "145"
string(3) "146"
string(3) "147"
string(3) "148"
string(3) "149"
string(3) "150"
string(3) "151"
string(3) "152"
string(3) "153"
string(3) "154"
string(3) "155"
string(3) "156"
string(3) "157"
string(3) "158"
string(3) "159"
string(3) "160"
string(3) "161"
string(3) "162"
string(3) "163"
string(3) "164"
string(3) "165"
string(3) "166"
string(3) "167"
string(3) "168"
string(3) "169"
string(3) "170"
string(3) "171"
string(3) "172"
string(3) "173"
string(3) "174"
string(3) "175"
string(3) "176"
string(3) "177"
string(3) "178"
string(3) "179"
string(3) "180"
string(3) "181"
string(3) "182"
string(3) "183"
string(3) "184"
string(3) "185"
string(3) "186"
string(3) "187"
string(3) "188"
string(3) "189"
string(3) "190"
string(3) "191"
string(3) "192"
string(3) "193"
string(3) "194"
string(3) "195"
string(3) "196"
string(3) "197"
string(3) "198"
string(3) "199"
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 04:57:55
  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 04:57:55
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
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
001- string(1) "1"
002- string(1) "2"
003- string(1) "3"
004- string(1) "4"
005- string(1) "5"
006- string(1) "6"
007- string(1) "7"
008- string(1) "8"
009- string(1) "9"
010- string(2) "10"
011- string(2) "11"
012- string(2) "12"
013- string(2) "13"
014- string(2) "14"
015- string(2) "15"
016- string(2) "16"
017- string(2) "17"
018- string(2) "18"
019- string(2) "19"
020- string(2) "20"
021- string(2) "21"
022- string(2) "22"
023- string(2) "23"
024- string(2) "24"
025- string(2) "25"
026- string(2) "26"
027- string(2) "27"
028- string(2) "28"
029- string(2) "29"
030- string(2) "30"
031- string(2) "31"
032- string(2) "32"
033- string(2) "33"
034- string(2) "34"
035- string(2) "35"
036- string(2) "36"
037- string(2) "37"
038- string(2) "38"
039- string(2) "39"
040- string(2) "40"
041- string(2) "41"
042- string(2) "42"
043- string(2) "43"
044- string(2) "44"
045- string(2) "45"
046- string(2) "46"
047- string(2) "47"
048- string(2) "48"
049- string(2) "49"
050- string(2) "50"
051- string(2) "51"
052- string(2) "52"
053- string(2) "53"
054- string(2) "54"
055- string(2) "55"
056- string(2) "56"
057- string(2) "57"
058- string(2) "58"
059- string(2) "59"
060- string(2) "60"
061- string(2) "61"
062- string(2) "62"
063- string(2) "63"
064- string(2) "64"
065- string(2) "65"
066- string(2) "66"
067- string(2) "67"
068- string(2) "68"
069- string(2) "69"
070- string(2) "70"
071- string(2) "71"
072- string(2) "72"
073- string(2) "73"
074- string(2) "74"
075- string(2) "75"
076- string(2) "76"
077- string(2) "77"
078- string(2) "78"
079- string(2) "79"
080- string(2) "80"
081- string(2) "81"
082- string(2) "82"
083- string(2) "83"
084- string(2) "84"
085- string(2) "85"
086- string(2) "86"
087- string(2) "87"
088- string(2) "88"
089- string(2) "89"
090- string(2) "90"
091- string(2) "91"
092- string(2) "92"
093- string(2) "93"
094- string(2) "94"
095- string(2) "95"
096- string(2) "96"
097- string(2) "97"
098- string(2) "98"
099- string(2) "99"
100- string(3) "100"
101- string(3) "101"
102- string(3) "102"
103- string(3) "103"
104- string(3) "104"
105- string(3) "105"
106- string(3) "106"
107- string(3) "107"
108- string(3) "108"
109- string(3) "109"
110- string(3) "110"
111- string(3) "111"
112- string(3) "112"
113- string(3) "113"
114- string(3) "114"
115- string(3) "115"
116- string(3) "116"
117- string(3) "117"
118- string(3) "118"
119- string(3) "119"
120- string(3) "120"
121- string(3) "121"
122- string(3) "122"
123- string(3) "123"
124- string(3) "124"
125- string(3) "125"
126- string(3) "126"
127- string(3) "127"
128- string(3) "128"
129- string(3) "129"
130- string(3) "130"
131- string(3) "131"
132- string(3) "132"
133- string(3) "133"
134- string(3) "134"
135- string(3) "135"
136- string(3) "136"
137- string(3) "137"
138- string(3) "138"
139- string(3) "139"
140- string(3) "140"
141- string(3) "141"
142- string(3) "142"
143- string(3) "143"
144- string(3) "144"
145- string(3) "145"
146- string(3) "146"
147- string(3) "147"
148- string(3) "148"
149- string(3) "149"
150- string(3) "150"
151- string(3) "151"
152- string(3) "152"
153- string(3) "153"
154- string(3) "154"
155- string(3) "155"
156- string(3) "156"
157- string(3) "157"
158- string(3) "158"
159- string(3) "159"
160- string(3) "160"
161- string(3) "161"
162- string(3) "162"
163- string(3) "163"
164- string(3) "164"
165- string(3) "165"
166- string(3) "166"
167- string(3) "167"
168- string(3) "168"
169- string(3) "169"
170- string(3) "170"
171- string(3) "171"
172- string(3) "172"
173- string(3) "173"
174- string(3) "174"
175- string(3) "175"
176- string(3) "176"
177- string(3) "177"
178- string(3) "178"
179- string(3) "179"
180- string(3) "180"
181- string(3) "181"
182- string(3) "182"
183- string(3) "183"
184- string(3) "184"
185- string(3) "185"
186- string(3) "186"
187- string(3) "187"
188- string(3) "188"
189- string(3) "189"
190- string(3) "190"
191- string(3) "191"
192- string(3) "192"
193- string(3) "193"
194- string(3) "194"
195- string(3) "195"
196- string(3) "196"
197- string(3) "197"
198- string(3) "198"
199- string(3) "199"
200- Done

 

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

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