forked from php/doc-en
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
language-snippets.ent
4494 lines (3919 loc) · 228 KB
/
language-snippets.ent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!ENTITY installation.enabled.disable 'This extension is enabled by default. It may be disabled by using the following option at compile time: '>
<!-- Not used in EN anymore -->
<!ENTITY changelog.randomseed '<row xmlns="http://docbook.org/ns/docbook"><entry>4.2.0</entry><entry>The random
number generator is seeded automatically.</entry></row>'>
<!ENTITY warn.deprecated.feature-5-3-0.removed-6-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 5.3.0. Relying on this feature is
highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-5-3-0.removed-6-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 5.3.0. Relying on this feature is
highly discouraged.</simpara></warning>'>
<!-- Cautions -->
<!ENTITY caution.cryptographically-insecure '<caution xmlns="http://docbook.org/ns/docbook">
<para>
This function does not generate cryptographically secure values, and <emphasis>must not</emphasis>
be used for cryptographic purposes, or purposes that require returned values to be unguessable.
</para>
<para>
If cryptographically secure randomness is required, the <classname>Random\Randomizer</classname> may be
used with the <classname>Random\Engine\Secure</classname> engine. For simple use cases, the <function>random_int</function>
and <function>random_bytes</function> functions provide a convenient and secure <acronym>API</acronym> that is backed by
the operating system’s <acronym>CSPRNG</acronym>.
</para>
</caution>'>
<!ENTITY caution.mt19937-tiny-seed '<caution xmlns="http://docbook.org/ns/docbook">
<para>
Because the Mt19937 (“Mersenne Twister”) engine accepts only a single 32 bit integer as the
seed, the number of possible random sequences is limited to just 2<superscript>32</superscript>
(i.e. 4,294,967,296), despite Mt19937’s huge period of 2<superscript>19937</superscript>-1.
</para>
<para>
When relying on either implicit or explicit random seeding, duplications will appear
much earlier. Duplicated seeds are expected with 50% probability after less than
80,000 randomly generated seeds according to the birthday problem. A 10% probability
of a duplicated seed happens after randomly generating roughly 30,000 seeds.
</para>
<para>
This makes Mt19937 unsuitable for applications where duplicated sequences must not happen with
more than a negligible probability. If reproducible seeding is required, both the
<classname>Random\Engine\Xoshiro256StarStar</classname> and <classname>Random\Engine\PcgOneseq128XslRr64</classname>
engines support much larger seeds that are unlikely to collide randomly. If reproducibility
is not required, the <classname>Random\Engine\Secure</classname> engine provides cryptographically
secure randomness.
</para>
</caution>'>
<!-- Notes -->
<!ENTITY note.bin-safe '<note xmlns="http://docbook.org/ns/docbook"><simpara>This function is
binary-safe.</simpara></note>'>
<!ENTITY note.clearstatcache '<note xmlns="http://docbook.org/ns/docbook"><simpara>The results of this
function are cached. See <function>clearstatcache</function> for
more details.</simpara></note>'>
<!ENTITY note.context-support '<para xmlns="http://docbook.org/ns/docbook">A <link linkend="stream.contexts">context stream</link>
<type>resource</type>.</para>'>
<!ENTITY note.exec-bg '<note xmlns="http://docbook.org/ns/docbook"><para>If a program is started with this function,
in order for it to continue running in the background, the output of the
program must be redirected to a file or another output stream. Failing to do so
will cause PHP to hang until the execution of the program ends.</para></note>'>
<!ENTITY note.exec-bypass-shell '<note xmlns="http://docbook.org/ns/docbook"><para>On Windows <function>exec</function>
will first start cmd.exe to launch the command. If you want to start an external program without starting cmd.exe
use <function>proc_open</function> with the <parameter>bypass_shell</parameter> option set.</para></note>'>
<!ENTITY note.extractto-windows '<note xmlns="http://docbook.org/ns/docbook"><para>Windows NTFS file systems
do not support some characters in filenames, namely <literal><|>*?":</literal>. Filenames with a trailing dot
are not supported either. Contrary to some extraction tools, this method does not replace these characters with
an underscore, but instead fails to extract such files.</para></note>'>
<!ENTITY note.func-callback '<note xmlns="http://docbook.org/ns/docbook"><simpara>Instead of a function name, an
array containing an object reference and a method name can also be
supplied.</simpara></note>'>
<!ENTITY note.func-callback-exceptions '<note xmlns="http://docbook.org/ns/docbook"><para>Callbacks registered
with functions such as <function>call_user_func</function> and <function>call_user_func_array</function> will not be
called if there is an uncaught exception thrown in a previous callback.</para></note>'>
<!ENTITY note.funcbyref '<note xmlns="http://docbook.org/ns/docbook"><para>If the arguments are passed by reference,
any changes to the arguments will be reflected in the values returned by this function. As of PHP 7
the current values will also be returned if the arguments are passed by value.</para></note>'>
<!ENTITY note.funcnoparam '<note xmlns="http://docbook.org/ns/docbook"><para>Because this function depends on the
current scope to determine parameter details, it cannot be used as a
function parameter in versions prior to 5.3.0. If this value must be passed, the results should be assigned
to a variable, and that variable should be passed.</para></note>'>
<!ENTITY note.func-named-params '<note xmlns="http://docbook.org/ns/docbook"><para>As of PHP 8.0.0, the func_*() family of
functions is intended to be mostly transparent with regard to named arguments,
by treating the arguments as if they were all passed positionally,
and missing arguments are replaced with their defaults.
This function ignores the collection of unknown named variadic arguments.
Unknown named arguments which are collected can only be accessed through the variadic parameter.</para></note>'>
<!ENTITY note.line-endings '<note xmlns="http://docbook.org/ns/docbook"><simpara>If PHP is not properly recognizing
the line endings when reading files either on or created by a Macintosh
computer, enabling the
<link linkend="ini.auto-detect-line-endings">auto_detect_line_endings</link>
run-time configuration option may help resolve the problem.</simpara></note>'>
<!ENTITY note.no-remote '<note xmlns="http://docbook.org/ns/docbook"><simpara>This function will not work on
<link linkend="features.remote-files">remote files</link> as the file to
be examined must be accessible via the server's filesystem.</simpara></note>'>
<!ENTITY note.not-bin-safe '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This function
is not (yet) binary safe!</simpara></warning>'>
<!ENTITY note.no-key-association '<note xmlns="http://docbook.org/ns/docbook"><simpara>This function
assigns new keys to the elements in <parameter>array</parameter>.
It will remove any existing keys that may have been assigned, rather
than just reordering the keys.</simpara></note>'>
<!ENTITY note.no-windows '<note xmlns="http://docbook.org/ns/docbook"><simpara>This function is not
implemented on Windows platforms.</simpara></note>'>
<!ENTITY note.no-windows.extension '<note xmlns="http://docbook.org/ns/docbook"><simpara>This extension is not
available on Windows platforms.</simpara></note>'>
<!ENTITY note.no-zts '<note xmlns="http://docbook.org/ns/docbook"><simpara>This function is not
available in PHP interpreters built with ZTS (Zend Thread Safety) enabled. To check whether your copy of PHP was built with ZTS enabled, use <command>php -i</command> or test the built-in constant <constant>PHP_ZTS</constant>.</simpara></note>'>
<!ENTITY note.randomseed '<note xmlns="http://docbook.org/ns/docbook"><simpara>There is no need
to seed the random number generator with <function>srand</function> or
<function>mt_srand</function> as this is done automatically.
</simpara></note>'>
<!ENTITY note.is-superglobal "<note xmlns='http://docbook.org/ns/docbook'><para>This is a 'superglobal', or
automatic global, variable. This simply means that it is available in
all scopes throughout a script. There is no need to do
<command>global $variable;</command> to access it within functions or methods.
</para></note>">
<!ENTITY note.uses-ob '<note xmlns="http://docbook.org/ns/docbook"><para>When the <parameter>return</parameter> parameter
is used, this function uses internal output buffering so it cannot be used inside an
<function>ob_start</function> callback function.</para></note>'>
<!ENTITY note.uses-ob-php70 '<note xmlns="http://docbook.org/ns/docbook"><para>When the <parameter>return</parameter> parameter
is used, this function uses internal output buffering prior to PHP 7.1.0, so it cannot be used inside an
<function>ob_start</function> callback function.</para></note>'>
<!ENTITY note.filesystem-time-res '<note xmlns="http://docbook.org/ns/docbook"><para>Note that time resolution may differ
from one file system to another.</para></note>'>
<!ENTITY note.uses-autoload '<note xmlns="http://docbook.org/ns/docbook">
<para>Using this function will use any registered
<link linkend="language.oop5.autoload">autoloaders</link> if the class is not already known.</para></note>'>
<!ENTITY note.network.header.sapi '<note xmlns="http://docbook.org/ns/docbook">
<para>
Headers will only be accessible and output when a SAPI that supports them
is in use.
</para>
</note>
'>
<!ENTITY note.sigchild '<note xmlns="http://docbook.org/ns/docbook">
<para>
If PHP has been compiled with --enable-sigchild, the return value of this function is undefined.
</para>
</note>
'>
<!ENTITY note.sort-unstable '<note xmlns="http://docbook.org/ns/docbook">
<para>
If two members compare as equal, they retain their original order.
Prior to PHP 8.0.0, their relative order in the sorted array was undefined.
</para>
</note>
'>
<!ENTITY note.reset-index "<note xmlns='http://docbook.org/ns/docbook'>
<para>
Resets array's internal pointer to the first element.
</para>
</note>
">
<!ENTITY note.resource-migration-8.0-dead-function '<note xmlns="http://docbook.org/ns/docbook">
<para>
This function has no effect. Prior to PHP 8.0.0, this function was used to close the resource.
</para>
</note>
'>
<!-- Tips -->
<!ENTITY tip.fopen-wrapper '<tip xmlns="http://docbook.org/ns/docbook"><simpara>A URL can be used as a
filename with this function if the <link linkend="ini.allow-url-fopen"
>fopen wrappers</link> have been enabled.
See <function>fopen</function> for more details on how to specify the
filename. See the <xref linkend="wrappers"/> for links to information
about what abilities the various wrappers have, notes on their usage,
and information on any predefined variables they may
provide.</simpara></tip>'>
<!ENTITY tip.fopen-wrapper.stat '<tip xmlns="http://docbook.org/ns/docbook"><simpara>As of PHP 5.0.0, this function
can also be used with <emphasis>some</emphasis> URL wrappers. Refer to
<xref linkend="wrappers"/> to determine which wrappers support
<function>stat</function> family of functionality.</simpara></tip>'>
<!ENTITY tip.ob-capture '<tip xmlns="http://docbook.org/ns/docbook"><simpara>As with anything that outputs
its result directly to the browser, the <link
linkend="book.outcontrol">output-control functions</link> can be used to capture
the output of this function, and save it in a
<type>string</type> (for example).</simpara></tip>'>
<!ENTITY tip.userlandnaming '<tip xmlns="http://docbook.org/ns/docbook"><simpara>See also the
<xref linkend="userlandnaming" />.</simpara></tip>'>
<!-- Warnings -->
<!ENTITY warn.escapeshell '<warning xmlns="http://docbook.org/ns/docbook"><para>When allowing user-supplied data to be
passed to this function, use
<function>escapeshellarg</function> or <function>escapeshellcmd</function>
to ensure that users cannot trick the system into executing arbitrary
commands.</para></warning>'>
<!ENTITY warn.experimental '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This extension is
<emphasis>EXPERIMENTAL</emphasis>. The behaviour of this extension including
the names of its functions and any other documentation surrounding this
extension may change without notice in a future release of PHP.
This extension should be used at your own risk.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-5-3-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 5.3.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-5-3-0.removed-5-4-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 5.3.0 and <emphasis>REMOVED</emphasis>
as of PHP 5.4.0.</simpara></warning>'>
<!ENTITY warn.deprecated.function-5-3-0.removed-5-4-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 5.3.0 and <emphasis>REMOVED</emphasis> as of PHP 5.4.0.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-5-5-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 5.5.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-5-6-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 5.6.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-7-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.0.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-7-1-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.1.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-1-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.1.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-0-0.removed-8-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.0.0 and
<emphasis>REMOVED</emphasis> as of PHP 8.0.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-1-0.removed-7-2-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.1.0 and
<emphasis>REMOVED</emphasis> as of PHP 7.2.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-7-2-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.2.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-7-2-0.removed-8-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.2.0, and <emphasis>REMOVED</emphasis> as of PHP 8.0.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-2-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.2.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-2-0.removed-8-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.2.0, and <emphasis>REMOVED</emphasis> as of PHP 8.0.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-7-3-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.3.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-3-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.3.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-3-0.removed-8-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.3.0, and <emphasis>REMOVED</emphasis> as of PHP 8.0.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-7-4-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.4.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-4-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.4.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-7-4-0.removed-8-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 7.4.0, and <emphasis>REMOVED</emphasis> as of PHP 8.0.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.feature.removed-8-0-0 '<warning xmlns="http://docbook.org/ns/docbook">
<simpara>This feature was <emphasis>REMOVED</emphasis> as of PHP 8.0.0.</simpara>
</warning>'>
<!ENTITY warn.deprecated.function-8-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 8.0.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-8-1-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 8.1.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-8-2-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 8.2.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-8-3-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature has been
<emphasis>DEPRECATED</emphasis> as of PHP 8.3.0. Relying on this feature
is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.function-8-3-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 8.3.0. Relying on this function
is highly discouraged.</simpara></warning>'>
<!ENTITY removed.php.future 'This deprecated feature <emphasis xmlns="http://docbook.org/ns/docbook">will</emphasis>
certainly be <emphasis xmlns="http://docbook.org/ns/docbook">removed</emphasis> in the future.'>
<!ENTITY warn.deprecated.function.removed-5-3-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> and <emphasis>REMOVED</emphasis> as of PHP 5.3.0.</simpara></warning>'>
<!ENTITY warn.deprecated.function.removed-5-5-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> and <emphasis>REMOVED</emphasis> as of PHP 5.5.0.</simpara></warning>'>
<!ENTITY warn.deprecated.alias-5-3-0 '<warning xmlns="http://docbook.org/ns/docbook">
<simpara>This alias has been <emphasis>DEPRECATED</emphasis> as of PHP 5.3.0. Relying
on this alias is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.func-5-4-0 '<warning xmlns="http://docbook.org/ns/docbook">
<simpara>This function has been <emphasis>DEPRECATED</emphasis> as of PHP 5.4.0. Relying
on this function is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.alias-5-4-0 '<warning xmlns="http://docbook.org/ns/docbook">
<simpara>This alias has been <emphasis>DEPRECATED</emphasis> as of PHP 5.4.0. Relying
on this alias is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.func-5-5-0 '<warning xmlns="http://docbook.org/ns/docbook">
<simpara>This function has been <emphasis>DEPRECATED</emphasis> as of PHP 5.5.0. Relying
on this function is highly discouraged.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-5-5-0.removed-7-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature was
<emphasis>DEPRECATED</emphasis> in PHP 5.5.0, and <emphasis>REMOVED</emphasis> as of PHP 7.0.0.</simpara></warning>'>
<!ENTITY warn.deprecated.function-5-5-0.removed-7-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function was
<emphasis>DEPRECATED</emphasis> in PHP 5.5.0, and <emphasis>REMOVED</emphasis> as of PHP 7.0.0.</simpara></warning>'>
<!ENTITY warn.deprecated.function-4-1-0.removed-7-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function was
<emphasis>DEPRECATED</emphasis> in PHP 4.1.0, and <emphasis>REMOVED</emphasis> as of PHP 7.0.0.</simpara></warning>'>
<!ENTITY warn.deprecated.function-5-3-0.removed-7-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function was
<emphasis>DEPRECATED</emphasis> in PHP 5.3.0, and <emphasis>REMOVED</emphasis> as of PHP 7.0.0.</simpara></warning>'>
<!ENTITY warn.deprecated.alias-5-3-0.removed-7-0-0 '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This alias was
<emphasis>DEPRECATED</emphasis> in PHP 5.3.0, and <emphasis>REMOVED</emphasis> as of PHP 7.0.0.</simpara></warning>'>
<!ENTITY warn.deprecated.feature-5-6-0.removed-7-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This feature was
<emphasis>DEPRECATED</emphasis> in PHP 5.6.0, and
<emphasis>REMOVED</emphasis> as of PHP 7.0.0.</simpara></warning>'>
<!ENTITY warn.removed.function-7-0-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function was
<emphasis>REMOVED</emphasis> in PHP 7.0.0.</simpara></warning>'>
<!ENTITY warn.removed.function-7-4-0 '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function was
<emphasis>REMOVED</emphasis> in PHP 7.4.0.</simpara></warning>'>
<!ENTITY warn.deprecated.alias-7-2-0.removed-8-0-0 '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This alias was
<emphasis>DEPRECATED</emphasis> in PHP 7.2.0, and <emphasis>REMOVED</emphasis> as of PHP 8.0.0.</simpara></warning>'>
<!ENTITY warn.deprecated.alias-7-4-0.removed-8-0-0 '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This alias was
<emphasis>DEPRECATED</emphasis> in PHP 7.4.0, and <emphasis>REMOVED</emphasis> as of PHP 8.0.0.</simpara></warning>'>
<!ENTITY warn.deprecated.alias-8-0-0 '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This alias is
<emphasis>DEPRECATED</emphasis> as of PHP 8.0.0.</simpara></warning>'>
<!ENTITY warn.removed.alias-8-0-0 '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This alias is
<emphasis>REMOVED</emphasis> as of PHP 8.0.0.</simpara></warning>'>
<!ENTITY warn.experimental.func '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This function is
<emphasis>EXPERIMENTAL</emphasis>. The behaviour of this function, its name, and
surrounding documentation may change without notice in a future release of PHP.
This function should be used at your own risk.
</simpara></warning>'>
<!ENTITY warn.imaprecodeyaz '<warning xmlns="http://docbook.org/ns/docbook"><simpara>The <link
linkend="book.imap">IMAP</link>, <link linkend="book.recode">recode</link> and
<link linkend="book.yaz">YAZ</link>
extensions cannot be used in conjunction, because they
share the same internal symbols. Note: Yaz 2.0 and above does not suffer from this problem.</simpara></warning>'>
<!ENTITY warn.install.cgi '<warning xmlns="http://docbook.org/ns/docbook"><para>A server deployed in CGI mode is open
to several possible vulnerabilities. Please read our
<link linkend="security.cgi-bin">CGI security section</link> to learn how to
defend yourself from such attacks.</para></warning>'>
<!ENTITY warn.passwordhashing '
<warning xmlns="http://docbook.org/ns/docbook">
<para>
It is not recommended to use this function to secure passwords,
due to the fast nature of this hashing algorithm. See the
<link linkend="faq.passwords.fasthash">Password Hashing FAQ</link>
for details and best practices.
</para>
</warning>
'>
<!ENTITY warn.ssl-non-standard '<warning xmlns="http://docbook.org/ns/docbook"><para>When using SSL, Microsoft IIS
will violate the protocol by closing the connection without sending a
<literal>close_notify</literal> indicator. PHP will report this as "SSL: Fatal
Protocol Error" when you reach the end of the data. To work around this, the
value of <link linkend="ini.error-reporting">error_reporting</link> should be
lowered to a level that does not include warnings.
PHP can detect buggy IIS server software when you open
the stream using the <literal>https://</literal> wrapper and will suppress the
warning. When using <function>fsockopen</function> to create an
<literal>ssl://</literal> socket, the developer is responsible for detecting
and suppressing this warning.</para></warning>'>
<!ENTITY warn.undocumented.class '
<warning xmlns="http://docbook.org/ns/docbook">
<simpara>
This class is currently undocumented; only a list of its properties and
methods is available.
</simpara>
</warning>
'>
<!ENTITY warn.undocumented.func '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This function is
currently not documented; only its argument list is available.
</simpara></warning>'>
<!-- Deprecation and removal warnings designed for use with a list of
alternatives. See en/reference/regex/functions/ereg.xml and
en/reference/regex/reference.xml for examples of these in action. -->
<!ENTITY warn.deprecated.function.4-1-0.removed.7-0-0.alternatives '
<para xmlns="http://docbook.org/ns/docbook">
This function was <emphasis>DEPRECATED</emphasis> in PHP 4.1.0, and
<emphasis>REMOVED</emphasis> in PHP 7.0.0.
</para>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this function include:
</para>
'>
<!ENTITY warn.deprecated.feature.5-3-0.removed.7-0-0.alternatives '
<para xmlns="http://docbook.org/ns/docbook">
This feature was <emphasis>DEPRECATED</emphasis> in PHP 5.3.0, and
<emphasis>REMOVED</emphasis> in PHP 7.0.0.
</para>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this feature include:
</para>
'>
<!ENTITY warn.deprecated.function.5-3-0.removed.7-0-0.alternatives '
<para xmlns="http://docbook.org/ns/docbook">
This function was <emphasis>DEPRECATED</emphasis> in PHP 5.3.0, and
<emphasis>REMOVED</emphasis> in PHP 7.0.0.
</para>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this function include:
</para>
'>
<!ENTITY warn.deprecated.function.5-5-0.removed.7-0-0.alternatives '
<para xmlns="http://docbook.org/ns/docbook">
This function was <emphasis>DEPRECATED</emphasis> in PHP 5.5.0, and
<emphasis>REMOVED</emphasis> in PHP 7.0.0.
</para>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this function include:
</para>
'>
<!ENTITY warn.removed.feature.7-0-0.alternatives '
<para xmlns="http://docbook.org/ns/docbook">
This feature was <emphasis>REMOVED</emphasis> in PHP 7.0.0.
</para>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this feature include:
</para>
'>
<!ENTITY warn.removed.function.7-0-0.alternatives '
<para xmlns="http://docbook.org/ns/docbook">
This function was <emphasis>REMOVED</emphasis> in PHP 7.0.0.
</para>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this function include:
</para>
'>
<!ENTITY warn.deprecated.feature.7-1-0.removed.7-2-0.alternatives '
<para xmlns="http://docbook.org/ns/docbook">
This feature was <emphasis>DEPRECATED</emphasis> in PHP 7.1.0, and
<emphasis>REMOVED</emphasis> in PHP 7.2.0.
</para>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this feature include:
</para>
'>
<!ENTITY warn.deprecated.function.7-1-0.removed.7-2-0.alternatives '
<para xmlns="http://docbook.org/ns/docbook">
This function was <emphasis>DEPRECATED</emphasis> in PHP 7.1.0, and
<emphasis>REMOVED</emphasis> in PHP 7.2.0.
</para>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this function include:
</para>
'>
<!ENTITY warn.deprecated.function-8-1-0.alternatives '<warning
xmlns="http://docbook.org/ns/docbook"><simpara>This function has been
<emphasis>DEPRECATED</emphasis> as of PHP 8.1.0. Relying on this function
is highly discouraged.</simpara></warning>
<para xmlns="http://docbook.org/ns/docbook">
Alternatives to this function include:
</para>
'>
<!-- Misc -->
<!ENTITY version.exists.asof 'This exists as of PHP '>
<!ENTITY version.trunk.changelog 'Future'>
<!ENTITY no.function.parameters '<para xmlns="http://docbook.org/ns/docbook">This function has no parameters.</para>'>
<!ENTITY example.outputs '<para xmlns="http://docbook.org/ns/docbook">The above example will output:</para>'>
<!ENTITY example.outputs.5 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 5:</para>'>
<!ENTITY example.outputs.53 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 5.3:</para>'>
<!ENTITY example.outputs.54 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 5.4:</para>'>
<!ENTITY example.outputs.55 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 5.5:</para>'>
<!ENTITY example.outputs.56 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 5.6:</para>'>
<!ENTITY example.outputs.7 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 7:</para>'>
<!ENTITY example.outputs.70 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 7.0:</para>'>
<!ENTITY example.outputs.71 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 7.1:</para>'>
<!ENTITY example.outputs.72 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 7.2:</para>'>
<!ENTITY example.outputs.73 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 7.3:</para>'>
<!ENTITY example.outputs.8 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 8:</para>'>
<!ENTITY example.outputs.8.similar '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 8 is similar to:</para>'>
<!ENTITY example.outputs.80 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 8.0:</para>'>
<!ENTITY example.outputs.81 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 8.1:</para>'>
<!ENTITY example.outputs.82 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 8.2:</para>'>
<!ENTITY example.outputs.82.similar '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 8.2 is similar to:</para>'>
<!ENTITY example.outputs.83 '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 8.3:</para>'>
<!ENTITY example.outputs.83.similar '<para xmlns="http://docbook.org/ns/docbook">Output of the above example in PHP 8.3 is similar to:</para>'>
<!ENTITY example.outputs.32bit '<para xmlns="http://docbook.org/ns/docbook">Output of the above example on 32 bit machines:</para>'>
<!ENTITY example.outputs.64bit '<para xmlns="http://docbook.org/ns/docbook">Output of the above example on 64 bit machines:</para>'>
<!ENTITY example.outputs.similar '<para xmlns="http://docbook.org/ns/docbook">The above example will output
something similar to:</para>'>
<!ENTITY examples.outputs '<para xmlns="http://docbook.org/ns/docbook">The above examples will output:</para>'>
<!ENTITY examples.outputs.32bit '<para xmlns="http://docbook.org/ns/docbook">Output of the above examples on 32 bit machines:</para>'>
<!ENTITY examples.outputs.64bit '<para xmlns="http://docbook.org/ns/docbook">Output of the above examples on 64 bit machines:</para>'>
<!ENTITY examples.outputs.similar '<para xmlns="http://docbook.org/ns/docbook">The above examples will output
something similar to:</para>'>
<!ENTITY array.resetspointer '<note xmlns="http://docbook.org/ns/docbook"><simpara>This function will
<function>reset</function> the <type>array</type> pointer of the input array after
use.</simpara></note>'>
<!ENTITY array.changelog.by-ref '<row xmlns="http://docbook.org/ns/docbook">
<entry>8.0.0</entry>
<entry>
If <parameter>callback</parameter> expects a parameter to be passed
by reference, this function will now emit an <constant>E_WARNING</constant>.
</entry>
</row>'>
<!ENTITY array.changelog.require-only-one '<row xmlns="http://docbook.org/ns/docbook">
<entry>8.0.0</entry>
<entry>
This function can now be called with only one parameter.
Formerly, at least two parameters have been required.
</entry>
</row>'>
<!ENTITY seealso.array.sorting 'The <link xmlns="http://docbook.org/ns/docbook" linkend="array.sorting">comparison of array sorting functions</link>'>
<!ENTITY sort.flags.parameter '<varlistentry xmlns="http://docbook.org/ns/docbook">
<term><parameter>flags</parameter></term>
<listitem>
<para>
The optional second parameter <parameter>flags</parameter>
may be used to modify the sorting behavior using these values:
</para>
<para>
Sorting type flags:
<itemizedlist>
<listitem>
<simpara><constant>SORT_REGULAR</constant> - compare items normally;
the details are described in the <link linkend="language.operators.comparison">comparison operators</link> section</simpara>
</listitem>
<listitem>
<simpara><constant>SORT_NUMERIC</constant> - compare items numerically</simpara>
</listitem>
<listitem>
<simpara><constant>SORT_STRING</constant> - compare items as strings</simpara>
</listitem>
<listitem>
<simpara>
<constant>SORT_LOCALE_STRING</constant> - compare items as
strings, based on the current locale. It uses the locale,
which can be changed using <function>setlocale</function>
</simpara>
</listitem>
<listitem>
<simpara>
<constant>SORT_NATURAL</constant> - compare items as strings
using "natural ordering" like <function>natsort</function>
</simpara>
</listitem>
<listitem>
<simpara>
<constant>SORT_FLAG_CASE</constant> - can be combined
(bitwise OR) with
<constant>SORT_STRING</constant> or
<constant>SORT_NATURAL</constant> to sort strings case-insensitively
</simpara>
</listitem>
</itemizedlist>
</para>
</listitem>
</varlistentry>
'>
<!ENTITY sort.callback.description '<para xmlns="http://docbook.org/ns/docbook">
&return.callbacksort;
</para>
&callback.cmp;
<caution xmlns="http://docbook.org/ns/docbook">
<para>
Returning <emphasis>non-integer</emphasis> values from the comparison
function, such as <type>float</type>, will result in an internal cast to
<type>int</type> of the callback's return value. So values such as
<literal>0.99</literal> and <literal>0.1</literal> will both be cast to an
integer value of <literal>0</literal>, which will compare such values as equal.
</para>
</caution>'>
<!ENTITY sort.callback.description.presort '<caution xmlns="http://docbook.org/ns/docbook">
<para>
The sorting callback must handle any value from any array in any order,
regardless of the order they were originally provided.
This is because each individual array is first sorted before being compared against other arrays.
For example:
<programlisting role="php">
<![CDATA[
<?php
$arrayA = ["string", 1];
$arrayB = [["value" => 1]];
// $item1 and $item2 can be any of "string", 1 or ["value" => 1]
$compareFunc = static function ($item1, $item2) {
$value1 = is_string($item1) ? strlen($item1) : (is_array($item1) ? $item1["value"] : $item1);
$value2 = is_string($item2) ? strlen($item2) : (is_array($item2) ? $item2["value"] : $item2);
return $value1 <=> $value2;
};
?>
]]>
</programlisting>
</para>
</caution>'>
<!ENTITY ini.shorthandbytes '<simpara xmlns="http://docbook.org/ns/docbook">When an <type>int</type> is used, the
value is measured in bytes. Shorthand notation, as described
in <link linkend="faq.using.shorthandbytes">this FAQ</link>, may also be used.
</simpara>'>
<!ENTITY info.deprecated.alias 'For backward compatibility, the following
deprecated alias may be used: '>
<!ENTITY info.function.alias 'This function is an alias of: '>
<!ENTITY info.method.alias 'This method is an alias of: '>
<!ENTITY info.function.alias.deprecated '<simpara xmlns="http://docbook.org/ns/docbook">This function alias is
deprecated and only exists for backwards compatibility reasons. The use of this
function is not recommended, as it may be removed from PHP in the future.
</simpara>'>
<!ENTITY ext.windows.path.dll 'In order for this extension to work, there are
<acronym xmlns="http://docbook.org/ns/docbook">DLL</acronym> files that must be available to the Windows
system <envar xmlns="http://docbook.org/ns/docbook">PATH</envar>. For information on how to do this, see the
<acronym xmlns="http://docbook.org/ns/docbook">FAQ</acronym> entitled "<link
xmlns="http://docbook.org/ns/docbook" linkend="faq.installation.addtopath">How do I add my PHP directory to the PATH
on Windows</link>". Although copying DLL
files from the PHP folder into the Windows system directory also works
(because the system directory is by default in the system's
<envar xmlns="http://docbook.org/ns/docbook">PATH</envar>), this is not recommended.
<emphasis xmlns="http://docbook.org/ns/docbook">This extension requires the following files to be in the
<envar>PATH</envar>:</emphasis> '>
<!ENTITY manual.migration.seealso 'See also the migration guides for PHP versions'>
<!ENTITY style.oop 'Object-oriented style'>
<!ENTITY style.procedural 'Procedural style'>
<!ENTITY resource '<link xmlns="http://docbook.org/ns/docbook" linkend="language.types.resource">resource</link>'>
<!ENTITY foreach '<link xmlns="http://docbook.org/ns/docbook" linkend="control-structures.foreach">foreach</link>'>
<!ENTITY match '<link xmlns="http://docbook.org/ns/docbook" linkend="control-structures.match">match</link>'>
<!ENTITY yield '<link xmlns="http://docbook.org/ns/docbook" linkend="control-structures.yield">yield</link>'>
<!ENTITY parameter.context 'Refer to the <link xmlns="http://docbook.org/ns/docbook" linkend="context">context</link>
section of the manual for a description of <literal xmlns="http://docbook.org/ns/docbook">contexts</literal>.'>
<!ENTITY parameter.use_include_path 'When set to &true;, the filename is also
searched for within the <link xmlns="http://docbook.org/ns/docbook" linkend="ini.include-path">include_path</link>'>
<!-- Returns -->
<!ENTITY return.type.true '<row xmlns="http://docbook.org/ns/docbook">
<entry>8.2.0</entry>
<entry>
The return type is &true; now; previously, it was <type>bool</type>.
</entry>
</row>'>
<!ENTITY return.falseforfailure ' or &false; on failure'>
<!ENTITY return.falseforfailure.style.procedural '&style.procedural; returns &false; on failure.'>
<!ENTITY return.success 'Returns &true; on success&return.falseforfailure;.'>
<!ENTITY return.nullorfalse 'Returns &null; on success&return.falseforfailure;.'>
<!ENTITY return.void 'No value is returned.'>
<!ENTITY return.true.always 'Always returns &true;.'>
<!ENTITY return.callbacksort 'The comparison function must return an integer less than, equal to, or greater than zero if the first argument is considered to be respectively less than, equal to, or greater than the second.'>
<!ENTITY return.falseproblem '<warning xmlns="http://docbook.org/ns/docbook"><simpara>This function may
return Boolean &false;, but may also return a non-Boolean value which
evaluates to &false;. Please read the section on <link
linkend="language.types.boolean">Booleans</link> for more
information. Use <link linkend="language.operators.comparison">the ===
operator</link> for testing the return value of this
function.</simpara></warning>'>
<!-- Standard -->
<!ENTITY standard.changelog.calling-on-objects '<row xmlns="http://docbook.org/ns/docbook">
<entry>8.1.0</entry>
<entry>
Calling this function on &object;s is deprecated.
Either convert the &object; to an &array; using <function>get_mangled_object_vars</function> first, or use the methods
provided by a class that implements <interfacename>Iterator</interfacename>, such as <classname>ArrayIterator</classname>, instead.
</entry>
</row>
<row xmlns="http://docbook.org/ns/docbook">
<entry>7.4.0</entry>
<entry>
Instances of <link xmlns="http://docbook.org/ns/docbook" linkend="book.spl">SPL</link> classes are now treated like empty objects that have no properties instead of calling the <interfacename>Iterator</interfacename> method with the same name as this function.
</entry>
</row>
'>
<!ENTITY standard.changelog.binary-safe-string-comparison '<row xmlns="http://docbook.org/ns/docbook">
<entry>8.2.0</entry>
<entry>
This function now returns <literal>-1</literal> or <literal>1</literal>,
where it previously returned a negative or positive number.
</entry>
</row>
'>
<!-- FileInfo -->
<!ENTITY fileinfo.parameters.finfo '<para xmlns="http://docbook.org/ns/docbook">An <classname>finfo</classname> instance, returned by <function>finfo_open</function>.</para>'>
<!ENTITY fileinfo.changelog.finfo-object '<row xmlns="http://docbook.org/ns/docbook">
<entry>8.1.0</entry>
<entry>
The <parameter>finfo</parameter> parameter expects an <classname>finfo</classname>
instance now; previously, a &resource; was expected.
</entry>
</row>'>
<!-- OpenSSL -->
<!ENTITY openssl.param.x509 '<varlistentry xmlns="http://docbook.org/ns/docbook">
<term><parameter>x509</parameter></term>
<listitem>
<para>
See <link linkend="openssl.certparams">Key/Certificate parameters</link> for a list of valid values.
</para>
</listitem>
</varlistentry>'>
<!ENTITY openssl.param.csr '<varlistentry xmlns="http://docbook.org/ns/docbook">
<term><parameter>csr</parameter></term>
<listitem>
<para>
See <link linkend="openssl.certparams">CSR parameters</link> for a list of valid values.
</para>
</listitem>
</varlistentry>'>
<!ENTITY openssl.param.key '<varlistentry xmlns="http://docbook.org/ns/docbook">
<term><parameter>key</parameter></term>
<listitem>
<para>
See <link linkend="openssl.certparams">Public/Private Key parameters</link> for a list of valid values.
</para>
</listitem>
</varlistentry>'>
<!-- Image (GD) Notes -->
<!ENTITY note.config.t1lib '<note xmlns="http://docbook.org/ns/docbook"><simpara>This function is only available
if PHP is compiled using <option role="configure">--with-t1lib[=DIR]</option>.
</simpara></note>'>
<!ENTITY note.freetype '<note xmlns="http://docbook.org/ns/docbook"><simpara>This function is only available if
PHP is compiled with freetype support (<option role="configure">--with-freetype-dir=DIR</option>)
</simpara></note>'>
<!ENTITY note.gd.notrequired '<note xmlns="http://docbook.org/ns/docbook"><para>This function does not require the GD image library.</para></note>'>
<!ENTITY note.gd.interpolation '<note xmlns="http://docbook.org/ns/docbook"><para>This function is affected by the interpolation method set by <function>imagesetinterpolation</function>.</para></note>'>
<!ENTITY gd.image.description '<varlistentry xmlns="http://docbook.org/ns/docbook"><term>
<parameter>image</parameter></term><listitem><para>A <classname>GdImage</classname> object, returned by one of the image creation functions,
such as <function>imagecreatetruecolor</function>.</para></listitem></varlistentry>'>
<!ENTITY gd.font.description '<varlistentry xmlns="http://docbook.org/ns/docbook"><term>
<parameter>font</parameter></term><listitem><para>Can be 1, 2, 3, 4, 5 for built-in
fonts in latin2 encoding (where higher numbers corresponding to larger fonts) or <classname>GdFont</classname> instance,
returned by <function>imageloadfont</function>.</para></listitem></varlistentry>'>
<!ENTITY gd.changelog.gdfont-instance '<row xmlns="http://docbook.org/ns/docbook">
<entry>8.1.0</entry>
<entry>
The <parameter>font</parameter> parameter now accepts both an <classname>GdFont</classname> instance
and an &integer;; previously only &integer; was accepted.
</entry>
</row>'>
<!ENTITY gd.ttf.fontfile "
<varlistentry xmlns='http://docbook.org/ns/docbook'>
<term><parameter>fontfile</parameter></term>
<listitem>
<para>
The path to the TrueType font you wish to use.
</para>
<para>
Depending on which version of the GD library PHP is using, <emphasis>when
<parameter>fontfile</parameter> does not begin with a leading
<literal>/</literal> then <literal>.ttf</literal> will be appended</emphasis>
to the filename and the library will attempt to search for that
filename along a library-defined font path.
</para>
<para>
When using versions of the GD library lower than 2.0.18, a <literal>space</literal> character,
rather than a semicolon, was used as the 'path separator' for different font files.
Unintentional use of this feature will result in the warning message:
<literal>Warning: Could not find/open font</literal>. For these affected versions, the
only solution is moving the font to a path which does not contain spaces.
</para>
<para>
In many cases where a font resides in the same directory as the script using it
the following trick will alleviate any include problems.
<programlisting role='php'>
<![CDATA[
<?php
// Set the environment variable for GD
putenv('GDFONTPATH=' . realpath('.'));
// Name the font to be used (note the lack of the .ttf extension)
$font = 'SomeFont';
?>
]]>
</programlisting>
</para>
<note>
<para>
Note that <link linkend='ini.open-basedir'>open_basedir</link> does
<emphasis>not</emphasis> apply to <parameter>fontfile</parameter>.
</para>
</note>
</listitem>
</varlistentry>
">
<!ENTITY gd.return.identifier 'Returns an image object on success, &false; on errors.'>
<!ENTITY gd.return.trueonerror '<caution xmlns="http://docbook.org/ns/docbook"><simpara>However, if libgd fails to output the image, this function returns &true;.</simpara></caution>'>
<!ENTITY gd.identifier.color "A color identifier created with <function xmlns='http://docbook.org/ns/docbook'>imagecolorallocate</function>.">
<!ENTITY gd.value.red 'Value of red component.'>
<!ENTITY gd.value.green 'Value of green component.'>
<!ENTITY gd.value.blue 'Value of blue component.'>
<!ENTITY gd.source.height 'Source height.'>
<!ENTITY gd.source.width 'Source width.'>
<!ENTITY gd.image.path 'The path or an open stream resource (which is automatically closed after this function returns) to save the file to. If not set or &null;, the raw image stream will be output directly.'>
<!ENTITY gd.image.new 'Create a new image from file or URL'>
<!ENTITY gd.image.source 'Source image resource.'>
<!ENTITY gd.image.destination 'Destination image resource.'>
<!ENTITY gd.image.output 'Output image to browser or file'>
<!ENTITY gd.image.colors 'If you created the image from a file, only colors used in the image are resolved. Colors present only in the palette are not resolved.'>
<!ENTITY gd.font.size 'The font size in points.'>
<!ENTITY gd.constants.types '<simpara xmlns="http://docbook.org/ns/docbook">
Used as a return value by <function>imagetypes</function>