reference/pdo/constants.xml
a8863b0123dc5348c91e67198b995222878a7e65
a8863b0123dc5348c91e67198b995222878a7e65
...
...
@@ -4,17 +4,11 @@
4
4
<appendix xml:id="pdo.constants" xmlns="http://docbook.org/ns/docbook">
5
5
&reftitle.constants;
6
6
&extension.constants;
7
-
<warning>
8
-
<para>
9
-
PDO uses class constants since PHP 5.1. Prior releases use global constants
10
-
in the form <constant>PDO_PARAM_BOOL</constant>.
11
-
</para>
12
-
</warning>
13
7
<variablelist>
14
8
<varlistentry xml:id="pdo.constants.param-bool">
15
9
<term>
16
10
<constant>PDO::PARAM_BOOL</constant>
17
-
(<type>integer</type>)
11
+
(<type>int</type>)
18
12
</term>
19
13
<listitem>
20
14
<simpara>
...
...
@@ -25,7 +19,7 @@
25
19
<varlistentry xml:id="pdo.constants.param-null">
26
20
<term>
27
21
<constant>PDO::PARAM_NULL</constant>
28
-
(<type>integer</type>)
22
+
(<type>int</type>)
29
23
</term>
30
24
<listitem>
31
25
<simpara>
...
...
@@ -36,7 +30,7 @@
36
30
<varlistentry xml:id="pdo.constants.param-int">
37
31
<term>
38
32
<constant>PDO::PARAM_INT</constant>
39
-
(<type>integer</type>)
33
+
(<type>int</type>)
40
34
</term>
41
35
<listitem>
42
36
<simpara>
...
...
@@ -47,7 +41,7 @@
47
41
<varlistentry xml:id="pdo.constants.param-str">
48
42
<term>
49
43
<constant>PDO::PARAM_STR</constant>
50
-
(<type>integer</type>)
44
+
(<type>int</type>)
51
45
</term>
52
46
<listitem>
53
47
<simpara>
...
...
@@ -58,7 +52,7 @@
58
52
<varlistentry xml:id="pdo.constants.param-str-natl">
59
53
<term>
60
54
<constant>PDO::PARAM_STR_NATL</constant>
61
-
(<type>integer</type>)
55
+
(<type>int</type>)
62
56
</term>
63
57
<listitem>
64
58
<simpara>
...
...
@@ -72,7 +66,7 @@
72
66
<varlistentry xml:id="pdo.constants.param-str-char">
73
67
<term>
74
68
<constant>PDO::PARAM_STR_CHAR</constant>
75
-
(<type>integer</type>)
69
+
(<type>int</type>)
76
70
</term>
77
71
<listitem>
78
72
<simpara>
...
...
@@ -86,7 +80,7 @@
86
80
<varlistentry xml:id="pdo.constants.param-lob">
87
81
<term>
88
82
<constant>PDO::PARAM_LOB</constant>
89
-
(<type>integer</type>)
83
+
(<type>int</type>)
90
84
</term>
91
85
<listitem>
92
86
<simpara>
...
...
@@ -97,7 +91,7 @@
97
91
<varlistentry xml:id="pdo.constants.param-stmt">
98
92
<term>
99
93
<constant>PDO::PARAM_STMT</constant>
100
-
(<type>integer</type>)
94
+
(<type>int</type>)
101
95
</term>
102
96
<listitem>
103
97
<simpara>
...
...
@@ -108,7 +102,7 @@
108
102
<varlistentry xml:id="pdo.constants.param-input-output">
109
103
<term>
110
104
<constant>PDO::PARAM_INPUT_OUTPUT</constant>
111
-
(<type>integer</type>)
105
+
(<type>int</type>)
112
106
</term>
113
107
<listitem>
114
108
<simpara>
...
...
@@ -118,24 +112,37 @@
118
112
</simpara>
119
113
</listitem>
120
114
</varlistentry>
115
+
<varlistentry xml:id="pdo.constants.fetch-default">
116
+
<term>
117
+
<constant>PDO::FETCH_DEFAULT</constant>
118
+
(<type>int</type>)
119
+
</term>
120
+
<listitem>
121
+
<simpara>
122
+
Specifies that the default fetch mode shall be used. Available as of PHP 8.0.7.
123
+
</simpara>
124
+
</listitem>
125
+
</varlistentry>
121
126
<varlistentry xml:id="pdo.constants.fetch-lazy">
122
127
<term>
123
128
<constant>PDO::FETCH_LAZY</constant>
124
-
(<type>integer</type>)
129
+
(<type>int</type>)
125
130
</term>
126
131
<listitem>
127
132
<simpara>
128
133
Specifies that the fetch method shall return each row as an object with
129
-
variable names that correspond to the column names returned in the result
130
-
set. <constant>PDO::FETCH_LAZY</constant> creates the object variable names as they are accessed.
131
-
Not valid inside <function>PDOStatement::fetchAll</function>.
134
+
property names that correspond to the column names returned in the result set.
135
+
<constant>PDO::FETCH_LAZY</constant> returns
136
+
a <classname>PDORow</classname> object
137
+
which creates the object property names as they are accessed.
138
+
Not valid inside <methodname>PDOStatement::fetchAll</methodname>.
132
139
</simpara>
133
140
</listitem>
134
141
</varlistentry>
135
142
<varlistentry xml:id="pdo.constants.fetch-assoc">
136
143
<term>
137
144
<constant>PDO::FETCH_ASSOC</constant>
138
-
(<type>integer</type>)
145
+
(<type>int</type>)
139
146
</term>
140
147
<listitem>
141
148
<simpara>
...
...
@@ -150,7 +157,7 @@
150
157
<varlistentry xml:id="pdo.constants.fetch-named">
151
158
<term>
152
159
<constant>PDO::FETCH_NAMED</constant>
153
-
(<type>integer</type>)
160
+
(<type>int</type>)
154
161
</term>
155
162
<listitem>
156
163
<simpara>
...
...
@@ -165,7 +172,7 @@
165
172
<varlistentry xml:id="pdo.constants.fetch-num">
166
173
<term>
167
174
<constant>PDO::FETCH_NUM</constant>
168
-
(<type>integer</type>)
175
+
(<type>int</type>)
169
176
</term>
170
177
<listitem>
171
178
<simpara>
...
...
@@ -178,7 +185,7 @@
178
185
<varlistentry xml:id="pdo.constants.fetch-both">
179
186
<term>
180
187
<constant>PDO::FETCH_BOTH</constant>
181
-
(<type>integer</type>)
188
+
(<type>int</type>)
182
189
</term>
183
190
<listitem>
184
191
<simpara>
...
...
@@ -191,7 +198,7 @@
191
198
<varlistentry xml:id="pdo.constants.fetch-obj">
192
199
<term>
193
200
<constant>PDO::FETCH_OBJ</constant>
194
-
(<type>integer</type>)
201
+
(<type>int</type>)
195
202
</term>
196
203
<listitem>
197
204
<simpara>
...
...
@@ -204,21 +211,21 @@
204
211
<varlistentry xml:id="pdo.constants.fetch-bound">
205
212
<term>
206
213
<constant>PDO::FETCH_BOUND</constant>
207
-
(<type>integer</type>)
214
+
(<type>int</type>)
208
215
</term>
209
216
<listitem>
210
217
<simpara>
211
218
Specifies that the fetch method shall return TRUE and assign the values of
212
219
the columns in the result set to the PHP variables to which they were
213
-
bound with the <function>PDOStatement::bindParam</function> or
214
-
<function>PDOStatement::bindColumn</function> methods.
220
+
bound with the <methodname>PDOStatement::bindParam</methodname> or
221
+
<methodname>PDOStatement::bindColumn</methodname> methods.
215
222
</simpara>
216
223
</listitem>
217
224
</varlistentry>
218
225
<varlistentry xml:id="pdo.constants.fetch-column">
219
226
<term>
220
227
<constant>PDO::FETCH_COLUMN</constant>
221
-
(<type>integer</type>)
228
+
(<type>int</type>)
222
229
</term>
223
230
<listitem>
224
231
<simpara>
...
...
@@ -230,18 +237,25 @@
230
237
<varlistentry xml:id="pdo.constants.fetch-class">
231
238
<term>
232
239
<constant>PDO::FETCH_CLASS</constant>
233
-
(<type>integer</type>)
240
+
(<type>int</type>)
234
241
</term>
235
242
<listitem>
236
243
<simpara>
237
244
Specifies that the fetch method shall return a new instance of the
238
-
requested class, mapping the columns to named properties in the class.
245
+
requested class.
239
246
</simpara>
240
247
<note>
241
248
<simpara>
242
-
The magic
243
-
<link linkend="language.oop5.overloading.members"><methodname>__set</methodname></link>
244
-
method is called if the property doesn't exist in the requested class
249
+
The object is initialized by mapping the columns from the result set to
250
+
properties in the class. This process occurs before the constructor is
251
+
called, allowing the population of properties regardless of their
252
+
visibility or whether they are marked as <literal>readonly</literal>. If
253
+
a property does not exist in the class, the magic
254
+
<link linkend="object.set">__set()</link>
255
+
method will be invoked if it exists; otherwise, a dynamic public property
256
+
will be created. However, when <constant>PDO::FETCH_PROPS_LATE</constant>
257
+
is also given, the constructor is called <emphasis>before</emphasis> the
258
+
properties are populated.
245
259
</simpara>
246
260
</note>
247
261
</listitem>
...
...
@@ -249,7 +263,7 @@
249
263
<varlistentry xml:id="pdo.constants.fetch-into">
250
264
<term>
251
265
<constant>PDO::FETCH_INTO</constant>
252
-
(<type>integer</type>)
266
+
(<type>int</type>)
253
267
</term>
254
268
<listitem>
255
269
<simpara>
...
...
@@ -261,19 +275,19 @@
261
275
<varlistentry xml:id="pdo.constants.fetch-func">
262
276
<term>
263
277
<constant>PDO::FETCH_FUNC</constant>
264
-
(<type>integer</type>)
278
+
(<type>int</type>)
265
279
</term>
266
280
<listitem>
267
281
<simpara>
268
282
Allows completely customize the way data is treated on the fly (only
269
-
valid inside <function>PDOStatement::fetchAll</function>).
283
+
valid inside <methodname>PDOStatement::fetchAll</methodname>).
270
284
</simpara>
271
285
</listitem>
272
286
</varlistentry>
273
287
<varlistentry xml:id="pdo.constants.fetch-group">
274
288
<term>
275
289
<constant>PDO::FETCH_GROUP</constant>
276
-
(<type>integer</type>)
290
+
(<type>int</type>)
277
291
</term>
278
292
<listitem>
279
293
<simpara>
...
...
@@ -286,7 +300,7 @@
286
300
<varlistentry xml:id="pdo.constants.fetch-unique">
287
301
<term>
288
302
<constant>PDO::FETCH_UNIQUE</constant>
289
-
(<type>integer</type>)
303
+
(<type>int</type>)
290
304
</term>
291
305
<listitem>
292
306
<simpara>
...
...
@@ -298,12 +312,12 @@
298
312
<varlistentry xml:id="pdo.constants.fetch-key-pair">
299
313
<term>
300
314
<constant>PDO::FETCH_KEY_PAIR</constant>
301
-
(<type>integer</type>)
315
+
(<type>int</type>)
302
316
</term>
303
317
<listitem>
304
318
<simpara>
305
319
Fetch a two-column result into an array where the first column is a key and the second column
306
-
is the value. Available since PHP 5.2.3.
320
+
is the value.
307
321
</simpara>
308
322
</listitem>
309
323
</varlistentry>
...
...
@@ -311,7 +325,7 @@
311
325
<varlistentry xml:id="pdo.constants.fetch-classtype">
312
326
<term>
313
327
<constant>PDO::FETCH_CLASSTYPE</constant>
314
-
(<type>integer</type>)
328
+
(<type>int</type>)
315
329
</term>
316
330
<listitem>
317
331
<simpara>
...
...
@@ -322,31 +336,31 @@
322
336
<varlistentry xml:id="pdo.constants.fetch-serialize">
323
337
<term>
324
338
<constant>PDO::FETCH_SERIALIZE</constant>
325
-
(<type>integer</type>)
339
+
(<type>int</type>)
326
340
</term>
327
341
<listitem>
328
342
<simpara>
329
343
As <constant>PDO::FETCH_INTO</constant> but object is provided as a serialized string.
330
-
Available since PHP 5.1.0. Since PHP 5.3.0 the class constructor is never called if this
331
-
flag is set.
344
+
The class constructor is never called if this flag is set.
345
+
Deprecated as of PHP 8.1.0.
332
346
</simpara>
333
347
</listitem>
334
348
</varlistentry>
335
349
<varlistentry xml:id="pdo.constants.fetch-props-late">
336
350
<term>
337
351
<constant>PDO::FETCH_PROPS_LATE</constant>
338
-
(<type>integer</type>)
352
+
(<type>int</type>)
339
353
</term>
340
354
<listitem>
341
355
<simpara>
342
-
Call the constructor before setting properties. Available since PHP 5.2.0.
356
+
Call the constructor before setting properties.
343
357
</simpara>
344
358
</listitem>
345
359
</varlistentry>
346
360
<varlistentry xml:id="pdo.constants.attr-autocommit">
347
361
<term>
348
362
<constant>PDO::ATTR_AUTOCOMMIT</constant>
349
-
(<type>integer</type>)
363
+
(<type>int</type>)
350
364
</term>
351
365
<listitem>
352
366
<simpara>
...
...
@@ -358,7 +372,7 @@
358
372
<varlistentry xml:id="pdo.constants.attr-prefetch">
359
373
<term>
360
374
<constant>PDO::ATTR_PREFETCH</constant>
361
-
(<type>integer</type>)
375
+
(<type>int</type>)
362
376
</term>
363
377
<listitem>
364
378
<simpara>
...
...
@@ -372,7 +386,7 @@
372
386
<varlistentry xml:id="pdo.constants.attr-timeout">
373
387
<term>
374
388
<constant>PDO::ATTR_TIMEOUT</constant>
375
-
(<type>integer</type>)
389
+
(<type>int</type>)
376
390
</term>
377
391
<listitem>
378
392
<simpara>
...
...
@@ -383,7 +397,7 @@
383
397
<varlistentry xml:id="pdo.constants.attr-errmode">
384
398
<term>
385
399
<constant>PDO::ATTR_ERRMODE</constant>
386
-
(<type>integer</type>)
400
+
(<type>int</type>)
387
401
</term>
388
402
<listitem>
389
403
<simpara>
...
...
@@ -395,7 +409,7 @@
395
409
<varlistentry xml:id="pdo.constants.attr-server-version">
396
410
<term>
397
411
<constant>PDO::ATTR_SERVER_VERSION</constant>
398
-
(<type>integer</type>)
412
+
(<type>int</type>)
399
413
</term>
400
414
<listitem>
401
415
<simpara>
...
...
@@ -407,7 +421,7 @@
407
421
<varlistentry xml:id="pdo.constants.attr-client-version">
408
422
<term>
409
423
<constant>PDO::ATTR_CLIENT_VERSION</constant>
410
-
(<type>integer</type>)
424
+
(<type>int</type>)
411
425
</term>
412
426
<listitem>
413
427
<simpara>
...
...
@@ -419,7 +433,7 @@
419
433
<varlistentry xml:id="pdo.constants.attr-server-info">
420
434
<term>
421
435
<constant>PDO::ATTR_SERVER_INFO</constant>
422
-
(<type>integer</type>)
436
+
(<type>int</type>)
423
437
</term>
424
438
<listitem>
425
439
<simpara>
...
...
@@ -431,7 +445,7 @@
431
445
<varlistentry xml:id="pdo.constants.attr-connection-status">
432
446
<term>
433
447
<constant>PDO::ATTR_CONNECTION_STATUS</constant>
434
-
(<type>integer</type>)
448
+
(<type>int</type>)
435
449
</term>
436
450
<listitem>
437
451
<simpara>
...
...
@@ -442,7 +456,7 @@
442
456
<varlistentry xml:id="pdo.constants.attr-case">
443
457
<term>
444
458
<constant>PDO::ATTR_CASE</constant>
445
-
(<type>integer</type>)
459
+
(<type>int</type>)
446
460
</term>
447
461
<listitem>
448
462
<simpara>
...
...
@@ -454,7 +468,7 @@
454
468
<varlistentry xml:id="pdo.constants.attr-cursor-name">
455
469
<term>
456
470
<constant>PDO::ATTR_CURSOR_NAME</constant>
457
-
(<type>integer</type>)
471
+
(<type>int</type>)
458
472
</term>
459
473
<listitem>
460
474
<simpara>
...
...
@@ -466,7 +480,7 @@
466
480
<varlistentry xml:id="pdo.constants.attr-cursor">
467
481
<term>
468
482
<constant>PDO::ATTR_CURSOR</constant>
469
-
(<type>integer</type>)
483
+
(<type>int</type>)
470
484
</term>
471
485
<listitem>
472
486
<simpara>
...
...
@@ -482,7 +496,7 @@
482
496
<varlistentry xml:id="pdo.constants.attr-driver-name">
483
497
<term>
484
498
<constant>PDO::ATTR_DRIVER_NAME</constant>
485
-
(<type>string</type>)
499
+
(<type>int</type>)
486
500
</term>
487
501
<listitem>
488
502
<simpara>
...
...
@@ -506,7 +520,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
506
520
<varlistentry xml:id="pdo.constants.attr-oracle-nulls">
507
521
<term>
508
522
<constant>PDO::ATTR_ORACLE_NULLS</constant>
509
-
(<type>integer</type>)
523
+
(<type>int</type>)
510
524
</term>
511
525
<listitem>
512
526
<simpara>
...
...
@@ -517,7 +531,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
517
531
<varlistentry xml:id="pdo.constants.attr-persistent">
518
532
<term>
519
533
<constant>PDO::ATTR_PERSISTENT</constant>
520
-
(<type>integer</type>)
534
+
(<type>int</type>)
521
535
</term>
522
536
<listitem>
523
537
<simpara>
...
...
@@ -530,7 +544,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
530
544
<varlistentry xml:id="pdo.constants.attr-statement-class">
531
545
<term>
532
546
<constant>PDO::ATTR_STATEMENT_CLASS</constant>
533
-
(<type>integer</type>)
547
+
(<type>int</type>)
534
548
</term>
535
549
<listitem>
536
550
<simpara>
...
...
@@ -541,7 +555,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
541
555
<varlistentry xml:id="pdo.constants.attr-fetch-catalog-names">
542
556
<term>
543
557
<constant>PDO::ATTR_FETCH_CATALOG_NAMES</constant>
544
-
(<type>integer</type>)
558
+
(<type>int</type>)
545
559
</term>
546
560
<listitem>
547
561
<simpara>
...
...
@@ -555,7 +569,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
555
569
<varlistentry xml:id="pdo.constants.attr-fetch-table-names">
556
570
<term>
557
571
<constant>PDO::ATTR_FETCH_TABLE_NAMES</constant>
558
-
(<type>integer</type>)
572
+
(<type>int</type>)
559
573
</term>
560
574
<listitem>
561
575
<simpara>
...
...
@@ -569,18 +583,20 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
569
583
<varlistentry xml:id="pdo.constants.attr-stringify-fetches">
570
584
<term>
571
585
<constant>PDO::ATTR_STRINGIFY_FETCHES</constant>
572
-
(<type>integer</type>)
586
+
(<type>int</type>)
573
587
</term>
574
588
<listitem>
575
589
<simpara>
576
-
Forces all values fetched to be treated as strings.
590
+
Forces all fetched values (except &null;) to be treated as strings.
591
+
&null; values remain unchanged unless <constant>PDO::ATTR_ORACLE_NULLS</constant>
592
+
is set to <constant>PDO::NULL_TO_STRING</constant>.
577
593
</simpara>
578
594
</listitem>
579
595
</varlistentry>
580
596
<varlistentry xml:id="pdo.constants.attr-max-column-len">
581
597
<term>
582
598
<constant>PDO::ATTR_MAX_COLUMN_LEN</constant>
583
-
(<type>integer</type>)
599
+
(<type>int</type>)
584
600
</term>
585
601
<listitem>
586
602
<simpara>
...
...
@@ -591,29 +607,29 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
591
607
<varlistentry xml:id="pdo.constants.attr-default-fetch-mode">
592
608
<term>
593
609
<constant>PDO::ATTR_DEFAULT_FETCH_MODE</constant>
594
-
(<type>integer</type>)
610
+
(<type>int</type>)
595
611
</term>
596
612
<listitem>
597
613
<simpara>
598
-
Available since PHP 5.2.0
614
+
599
615
</simpara>
600
616
</listitem>
601
617
</varlistentry>
602
618
<varlistentry xml:id="pdo.constants.attr-emulate-prepares">
603
619
<term>
604
620
<constant>PDO::ATTR_EMULATE_PREPARES</constant>
605
-
(<type>integer</type>)
621
+
(<type>int</type>)
606
622
</term>
607
623
<listitem>
608
624
<simpara>
609
-
Available since PHP 5.1.3.
625
+
610
626
</simpara>
611
627
</listitem>
612
628
</varlistentry>
613
629
<varlistentry xml:id="pdo.constants.attr-default-str-param">
614
630
<term>
615
631
<constant>PDO::ATTR_DEFAULT_STR_PARAM</constant>
616
-
(<type>integer</type>)
632
+
(<type>int</type>)
617
633
</term>
618
634
<listitem>
619
635
<simpara>
...
...
@@ -628,7 +644,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
628
644
<varlistentry xml:id="pdo.constants.errmode-silent">
629
645
<term>
630
646
<constant>PDO::ERRMODE_SILENT</constant>
631
-
(<type>integer</type>)
647
+
(<type>int</type>)
632
648
</term>
633
649
<listitem>
634
650
<simpara>
...
...
@@ -642,7 +658,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
642
658
<varlistentry xml:id="pdo.constants.errmode-warning">
643
659
<term>
644
660
<constant>PDO::ERRMODE_WARNING</constant>
645
-
(<type>integer</type>)
661
+
(<type>int</type>)
646
662
</term>
647
663
<listitem>
648
664
<simpara>
...
...
@@ -655,7 +671,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
655
671
<varlistentry xml:id="pdo.constants.errmode-exception">
656
672
<term>
657
673
<constant>PDO::ERRMODE_EXCEPTION</constant>
658
-
(<type>integer</type>)
674
+
(<type>int</type>)
659
675
</term>
660
676
<listitem>
661
677
<simpara>
...
...
@@ -668,7 +684,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
668
684
<varlistentry xml:id="pdo.constants.case-natural">
669
685
<term>
670
686
<constant>PDO::CASE_NATURAL</constant>
671
-
(<type>integer</type>)
687
+
(<type>int</type>)
672
688
</term>
673
689
<listitem>
674
690
<simpara>
...
...
@@ -679,7 +695,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
679
695
<varlistentry xml:id="pdo.constants.case-lower">
680
696
<term>
681
697
<constant>PDO::CASE_LOWER</constant>
682
-
(<type>integer</type>)
698
+
(<type>int</type>)
683
699
</term>
684
700
<listitem>
685
701
<simpara>
...
...
@@ -690,7 +706,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
690
706
<varlistentry xml:id="pdo.constants.case-upper">
691
707
<term>
692
708
<constant>PDO::CASE_UPPER</constant>
693
-
(<type>integer</type>)
709
+
(<type>int</type>)
694
710
</term>
695
711
<listitem>
696
712
<simpara>
...
...
@@ -701,7 +717,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
701
717
<varlistentry xml:id="pdo.constants.null-natural">
702
718
<term>
703
719
<constant>PDO::NULL_NATURAL</constant>
704
-
(<type>integer</type>)
720
+
(<type>int</type>)
705
721
</term>
706
722
<listitem>
707
723
<simpara>
...
...
@@ -712,7 +728,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
712
728
<varlistentry xml:id="pdo.constants.null-empty-string">
713
729
<term>
714
730
<constant>PDO::NULL_EMPTY_STRING</constant>
715
-
(<type>integer</type>)
731
+
(<type>int</type>)
716
732
</term>
717
733
<listitem>
718
734
<simpara>
...
...
@@ -723,7 +739,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
723
739
<varlistentry xml:id="pdo.constants.null-to-string">
724
740
<term>
725
741
<constant>PDO::NULL_TO_STRING</constant>
726
-
(<type>integer</type>)
742
+
(<type>int</type>)
727
743
</term>
728
744
<listitem>
729
745
<simpara>
...
...
@@ -734,7 +750,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
734
750
<varlistentry xml:id="pdo.constants.fetch-ori-next">
735
751
<term>
736
752
<constant>PDO::FETCH_ORI_NEXT</constant>
737
-
(<type>integer</type>)
753
+
(<type>int</type>)
738
754
</term>
739
755
<listitem>
740
756
<simpara>
...
...
@@ -745,7 +761,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
745
761
<varlistentry xml:id="pdo.constants.fetch-ori-prior">
746
762
<term>
747
763
<constant>PDO::FETCH_ORI_PRIOR</constant>
748
-
(<type>integer</type>)
764
+
(<type>int</type>)
749
765
</term>
750
766
<listitem>
751
767
<simpara>
...
...
@@ -757,7 +773,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
757
773
<varlistentry xml:id="pdo.constants.fetch-ori-first">
758
774
<term>
759
775
<constant>PDO::FETCH_ORI_FIRST</constant>
760
-
(<type>integer</type>)
776
+
(<type>int</type>)
761
777
</term>
762
778
<listitem>
763
779
<simpara>
...
...
@@ -768,7 +784,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
768
784
<varlistentry xml:id="pdo.constants.fetch-ori-last">
769
785
<term>
770
786
<constant>PDO::FETCH_ORI_LAST</constant>
771
-
(<type>integer</type>)
787
+
(<type>int</type>)
772
788
</term>
773
789
<listitem>
774
790
<simpara>
...
...
@@ -779,7 +795,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
779
795
<varlistentry xml:id="pdo.constants.fetch-ori-abs">
780
796
<term>
781
797
<constant>PDO::FETCH_ORI_ABS</constant>
782
-
(<type>integer</type>)
798
+
(<type>int</type>)
783
799
</term>
784
800
<listitem>
785
801
<simpara>
...
...
@@ -791,7 +807,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
791
807
<varlistentry xml:id="pdo.constants.fetch-ori-rel">
792
808
<term>
793
809
<constant>PDO::FETCH_ORI_REL</constant>
794
-
(<type>integer</type>)
810
+
(<type>int</type>)
795
811
</term>
796
812
<listitem>
797
813
<simpara>
...
...
@@ -803,7 +819,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
803
819
<varlistentry xml:id="pdo.constants.cursor-fwdonly">
804
820
<term>
805
821
<constant>PDO::CURSOR_FWDONLY</constant>
806
-
(<type>integer</type>)
822
+
(<type>int</type>)
807
823
</term>
808
824
<listitem>
809
825
<simpara>
...
...
@@ -816,7 +832,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
816
832
<varlistentry xml:id="pdo.constants.cursor-scroll">
817
833
<term>
818
834
<constant>PDO::CURSOR_SCROLL</constant>
819
-
(<type>integer</type>)
835
+
(<type>int</type>)
820
836
</term>
821
837
<listitem>
822
838
<simpara>
...
...
@@ -828,14 +844,14 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
828
844
<varlistentry xml:id="pdo.constants.err-none">
829
845
<term>
830
846
<constant>PDO::ERR_NONE</constant>
831
-
(<type>string</type>)
847
+
(<type>string</type>)
832
848
</term>
833
849
<listitem>
834
850
<simpara>
835
851
Corresponds to SQLSTATE '00000', meaning that the SQL statement was
836
852
successfully issued with no errors or warnings. This constant is for
837
-
your convenience when checking <function>PDO::errorCode</function> or
838
-
<function>PDOStatement::errorCode</function> to determine if an error
853
+
your convenience when checking <methodname>PDO::errorCode</methodname> or
854
+
<methodname>PDOStatement::errorCode</methodname> to determine if an error
839
855
occurred. You will usually know if this is the case by examining the
840
856
return code from the method that raised the error condition anyway.
841
857
</simpara>
...
...
@@ -844,7 +860,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
844
860
<varlistentry xml:id="pdo.constants.param-evt-alloc">
845
861
<term>
846
862
<constant>PDO::PARAM_EVT_ALLOC</constant>
847
-
(<type>integer</type>)
863
+
(<type>int</type>)
848
864
</term>
849
865
<listitem>
850
866
<simpara>
...
...
@@ -855,7 +871,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
855
871
<varlistentry xml:id="pdo.constants.param-evt-free">
856
872
<term>
857
873
<constant>PDO::PARAM_EVT_FREE</constant>
858
-
(<type>integer</type>)
874
+
(<type>int</type>)
859
875
</term>
860
876
<listitem>
861
877
<simpara>
...
...
@@ -866,7 +882,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
866
882
<varlistentry xml:id="pdo.constants.param-evt-exec-pre">
867
883
<term>
868
884
<constant>PDO::PARAM_EVT_EXEC_PRE</constant>
869
-
(<type>integer</type>)
885
+
(<type>int</type>)
870
886
</term>
871
887
<listitem>
872
888
<simpara>
...
...
@@ -877,7 +893,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
877
893
<varlistentry xml:id="pdo.constants.param-evt-exec-post">
878
894
<term>
879
895
<constant>PDO::PARAM_EVT_EXEC_POST</constant>
880
-
(<type>integer</type>)
896
+
(<type>int</type>)
881
897
</term>
882
898
<listitem>
883
899
<simpara>
...
...
@@ -888,7 +904,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
888
904
<varlistentry xml:id="pdo.constants.param-evt-fetch-pre">
889
905
<term>
890
906
<constant>PDO::PARAM_EVT_FETCH_PRE</constant>
891
-
(<type>integer</type>)
907
+
(<type>int</type>)
892
908
</term>
893
909
<listitem>
894
910
<simpara>
...
...
@@ -899,7 +915,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
899
915
<varlistentry xml:id="pdo.constants.param-evt-fetch-post">
900
916
<term>
901
917
<constant>PDO::PARAM_EVT_FETCH_POST</constant>
902
-
(<type>integer</type>)
918
+
(<type>int</type>)
903
919
</term>
904
920
<listitem>
905
921
<simpara>
...
...
@@ -910,7 +926,7 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
910
926
<varlistentry xml:id="pdo.constants.param-evt-normalize">
911
927
<term>
912
928
<constant>PDO::PARAM_EVT_NORMALIZE</constant>
913
-
(<type>integer</type>)
929
+
(<type>int</type>)
914
930
</term>
915
931
<listitem>
916
932
<simpara>
...
...
@@ -919,14 +935,14 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
919
935
</simpara>
920
936
</listitem>
921
937
</varlistentry>
922
-
<varlistentry xml:id="pdo.constants.sqlite_deterministic">
938
+
<varlistentry xml:id="pdo.constants.sqlite-deterministic">
923
939
<term>
924
940
<constant>PDO::SQLITE_DETERMINISTIC</constant>
925
-
(<type>integer</type>)
941
+
(<type>int</type>)
926
942
</term>
927
943
<listitem>
928
944
<simpara>
929
-
Specifies that a function created with <function>PDO::sqliteCreateFunction</function>
945
+
Specifies that a function created with <methodname>PDO::sqliteCreateFunction</methodname>
930
946
is deterministic, i.e. it always returns the same result given the same inputs within
931
947
a single SQL statement. (Available as of PHP 7.1.4.)
932
948
</simpara>
...
...
@@ -934,7 +950,6 @@ if ($db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'mysql') {
934
950
</varlistentry>
935
951
</variablelist>
936
952
</appendix>
937
-
938
953
<!-- Keep this comment at the end of the file
939
954
Local variables:
940
955
mode: sgml
941
956