forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstandard_0.php
1386 lines (1319 loc) · 39.3 KB
/
standard_0.php
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
<?php
// Start of standard v.5.3.2-0.dotdeb.1
class __PHP_Incomplete_Class {
}
class php_user_filter {
public $filtername;
public $params;
/**
* @param $in
* @param $out
* @param $consumed
* @param $closing
*/
public function filter ($in, $out, &$consumed, $closing) {}
public function onCreate () {}
public function onClose () {}
}
/**
* Instances of Directory are created by calling the dir() function, not by the new operator.
*/
class Directory {
/**
* Close directory handle.
* Same as closedir(), only dir_handle defaults to $this.
* @param resource $dir_handle [optional]
* @link http://www.php.net/manual/en/directory.close.php
*/
public function close ( $dir_handle ) {}
/**
* Rewind directory handle.
* Same as rewinddir(), only dir_handle defaults to $this.
* @param resource $dir_handle [optional]
* @link http://www.php.net/manual/en/directory.rewind.php
*/
public function rewind ( $dir_handle ) {}
/**
* Read entry from directory handle.
* Same as readdir(), only dir_handle defaults to $this.
* @param resource $dir_handle [optional]
* @return string
* @link http://www.php.net/manual/en/directory.read.php
*/
public function read ( $dir_handle) { }
}
/**
* (PHP 4 >= 4.0.4, PHP 5)<br/>
* Returns the value of a constant
* @link http://php.net/manual/en/function.constant.php
* @param string $name <p>
* The constant name.
* </p>
* @return mixed the value of the constant, or &null; if the constant is not
* defined.
*/
function constant ($name) {}
/**
* (PHP 4, PHP 5)<br/>
* Convert binary data into hexadecimal representation
* @link http://php.net/manual/en/function.bin2hex.php
* @param string $str <p>
* A character.
* </p>
* @return string the hexadecimal representation of the given string.
*/
function bin2hex ($str) {}
/**
* (PHP 4, PHP 5)<br/>
* Delay execution
* @link http://php.net/manual/en/function.sleep.php
* @param int $seconds <p>
* Halt time in seconds.
* </p>
* @return int zero on success, or false on errors. If the call was interrupted
* by a signal, sleep returns the number of seconds left
* to sleep.
*/
function sleep ($seconds) {}
/**
* (PHP 4, PHP 5)<br/>
* Delay execution in microseconds
* @link http://php.net/manual/en/function.usleep.php
* @param int $micro_seconds <p>
* Halt time in micro seconds. A micro second is one millionth of a
* second.
* </p>
* @return void
*/
function usleep ($micro_seconds) {}
/**
* (PHP 5)<br/>
* Delay for a number of seconds and nanoseconds
* @link http://php.net/manual/en/function.time-nanosleep.php
* @param int $seconds <p>
* Must be a positive integer.
* </p>
* @param int $nanoseconds <p>
* Must be a positive integer less than 1 billion.
* </p>
* @return mixed true on success or false on failure.
* </p>
* <p>
* If the delay was interrupted by a signal, an associative array will be
* returned with the components:
* seconds - number of seconds remaining in
* the delay
* nanoseconds - number of nanoseconds
* remaining in the delay
*/
function time_nanosleep ($seconds, $nanoseconds) {}
/**
* (PHP 5 >= 5.1.0)<br/>
* Make the script sleep until the specified time
* @link http://php.net/manual/en/function.time-sleep-until.php
* @param float $timestamp <p>
* The timestamp when the script should wake.
* </p>
* @return bool true on success or false on failure.
*/
function time_sleep_until ($timestamp) {}
/**
* (PHP 5 >= 5.1.0)<br/>
* Parse a time/date generated with <function>strftime</function>
* @link http://php.net/manual/en/function.strptime.php
* @param string $date <p>
* The string to parse (e.g. returned from strftime)
* </p>
* @param string $format <p>
* The format used in date (e.g. the same as
* used in strftime).
* </p>
* <p>
* For more information about the format options, read the
* strftime page.
* </p>
* @return array an array or false on failure.
* </p>
* <p>
* <table>
* The following parameters are returned in the array
* <tr valign="top">
* <td>parameters</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>"tm_sec"</td>
* <td>Seconds after the minute (0-61)</td>
* </tr>
* <tr valign="top">
* <td>"tm_min"</td>
* <td>Minutes after the hour (0-59)</td>
* </tr>
* <tr valign="top">
* <td>"tm_hour"</td>
* <td>Hour since midnight (0-23)</td>
* </tr>
* <tr valign="top">
* <td>"tm_mday"</td>
* <td>Day of the month (1-31)</td>
* </tr>
* <tr valign="top">
* <td>"tm_mon"</td>
* <td>Months since January (0-11)</td>
* </tr>
* <tr valign="top">
* <td>"tm_year"</td>
* <td>Years since 1900</td>
* </tr>
* <tr valign="top">
* <td>"tm_wday"</td>
* <td>Days since Sunday (0-6)</td>
* </tr>
* <tr valign="top">
* <td>"tm_yday"</td>
* <td>Days since January 1 (0-365)</td>
* </tr>
* <tr valign="top">
* <td>"unparsed"</td>
* <td>the date part which was not
* recognized using the specified format</td>
* </tr>
* </table>
*/
function strptime ($date, $format) {}
/**
* (PHP 4, PHP 5)<br/>
* Flush the output buffer
* @link http://php.net/manual/en/function.flush.php
* @return void
*/
function flush () {}
/**
* (PHP 4 >= 4.0.2, PHP 5)<br/>
* Wraps a string to a given number of characters
* @link http://php.net/manual/en/function.wordwrap.php
* @param string $str <p>
* The input string.
* </p>
* @param int $width [optional] <p>
* The column width.
* </p>
* @param string $break [optional] <p>
* The line is broken using the optional
* break parameter.
* </p>
* @param bool $cut [optional] <p>
* If the cut is set to true, the string is
* always wrapped at or before the specified width. So if you have
* a word that is larger than the given width, it is broken apart.
* (See second example).
* </p>
* @return string the given string wrapped at the specified column.
*/
function wordwrap ($str, $width = 75, $break = "\n", $cut = false) {}
/**
* (PHP 4, PHP 5)<br/>
* Convert special characters to HTML entities
* @link http://php.net/manual/en/function.htmlspecialchars.php
* @param string $string <p>
* The {@link http://www.php.net/manual/en/language.types.string.php string} being converted.
* </p>
* @param int $flags [optional] <p>
* A bitmask of one or more of the following flags, which specify how to handle quotes,
* invalid code unit sequences and the used document type. The default is
* <em><b>ENT_COMPAT | ENT_HTML401</b></em>.
* </p><table>
* <caption><b>Available <em>flags</em> constants</b></caption>
*
* <thead>
* <tr>
* <th>Constant Name</th>
* <th>Description</th>
* </tr>
*
* </thead>
*
* <tbody>
* <tr>
* <td><b>ENT_COMPAT</b></td>
* <td>Will convert double-quotes and leave single-quotes alone.</td>
* </tr>
*
* <tr>
* <td><b>ENT_QUOTES</b></td>
* <td>Will convert both double and single quotes.</td>
*</tr>
*
* <tr>
* <td><b>ENT_NOQUOTES</b></td>
* <td>Will leave both double and single quotes unconverted.</td>
* </tr>
*
* <tr>
* <td><b>ENT_IGNORE</b></td>
* <td>
* Silently discard invalid code unit sequences instead of returning
* an empty string. Using this flag is discouraged as it
* {@link http://unicode.org/reports/tr36/#Deletion_of_Noncharacters » may have security implications}.
* </td>
* </tr>
*
* <tr>
* <td><b>ENT_SUBSTITUTE</b></td>
* <td>
* Replace invalid code unit sequences with a Unicode Replacement Character
* U+FFFD (UTF-8) or &#FFFD; (otherwise) instead of returning an empty string.
* </td>
* </tr>
*
* <tr>
* <td><b>ENT_DISALLOWED</b></td>
* <td>
* Replace invalid code points for the given document type with a
* Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD;
* (otherwise) instead of leaving them as is. This may be useful, for
* instance, to ensure the well-formedness of XML documents with
* embedded external content.
* </td>
* </tr>
*
* <tr>
* <td><b>ENT_HTML401</b></td>
* <td>
* Handle code as HTML 4.01.
* </td>
* </tr>
*
* <tr>
* <td><b>ENT_XML1</b></td>
* <td>
* Handle code as XML 1.
* </td>
* </tr>
*
* <tr>
* <td><b>ENT_XHTML</b></td>
* <td>
* Handle code as XHTML.
* </td>
* </tr>
*
* <tr>
* <td><b>ENT_HTML5</b></td>
* <td>
* Handle code as HTML 5.
* </td>
* </tr>
*
* </tbody>
*
* </table>
* @param string $encoding [optional] <p>
* Defines encoding used in conversion.
* If omitted, the default value for this argument is ISO-8859-1 in
* versions of PHP prior to 5.4.0, and UTF-8 from PHP 5.4.0 onwards.
* </p>
* <p>
* For the purposes of this function, the encodings
* <em>ISO-8859-1</em>, <em>ISO-8859-15</em>,
* <em>UTF-8</em>, <em>cp866</em>,
* <em>cp1251</em>, <em>cp1252</em>, and
* <em>KOI8-R</em> are effectively equivalent, provided the
* <em><b>string</b></em> itself is valid for the encoding, as
* the characters affected by <b>htmlspecialchars()</b> occupy
* the same positions in all of these encodings.
* </p>
* @param bool $double_encode [optional] <p>
* When <em><b>double_encode</b></em> is turned off PHP will not
* encode existing html entities, the default is to convert everything.
* </p>
* @return string The converted string.
*/
function htmlspecialchars ($string, $flags = ENT_COMPAT, $encoding = 'UTF-8', $double_encode = true) {}
/**
* (PHP 4, PHP 5)<br/>
* Convert all applicable characters to HTML entities
* @link http://php.net/manual/en/function.htmlentities.php
* @param string $string <p>
* The input string.
* </p>
* @param int $quote_style [optional] <p>
* Like htmlspecialchars, the optional second
* quote_style parameter lets you define what will
* be done with 'single' and "double" quotes. It takes on one of three
* constants with the default being ENT_COMPAT:
* <table>
* Available quote_style constants
* <tr valign="top">
* <td>Constant Name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>ENT_COMPAT</td>
* <td>Will convert double-quotes and leave single-quotes alone.</td>
* </tr>
* <tr valign="top">
* <td>ENT_QUOTES</td>
* <td>Will convert both double and single quotes.</td>
* </tr>
* <tr valign="top">
* <td>ENT_NOQUOTES</td>
* <td>Will leave both double and single quotes unconverted.</td>
* </tr>
* </table>
* </p>
* @param string $charset [optional] <p>
* Like htmlspecialchars, it takes an optional
* third argument charset which defines character
* set used in conversion.
* Presently, the ISO-8859-1 character set is used as the default.
* </p>
* &reference.strings.charsets;
* @param bool $double_encode [optional] <p>
* When double_encode is turned off PHP will not
* encode existing html entities. The default is to convert everything.
* </p>
* @return string the encoded string.
*/
function htmlentities ($string, $quote_style = null, $charset = null, $double_encode = null) {}
/**
* (PHP 4 >= 4.3.0, PHP 5)<br/>
* Convert all HTML entities to their applicable characters
* @link http://php.net/manual/en/function.html-entity-decode.php
* @param string $string <p>
* The input string.
* </p>
* @param int $quote_style [optional] <p>
* The optional second quote_style parameter lets
* you define what will be done with 'single' and "double" quotes. It takes
* on one of three constants with the default being
* ENT_COMPAT:
* <table>
* Available quote_style constants
* <tr valign="top">
* <td>Constant Name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>ENT_COMPAT</td>
* <td>Will convert double-quotes and leave single-quotes alone.</td>
* </tr>
* <tr valign="top">
* <td>ENT_QUOTES</td>
* <td>Will convert both double and single quotes.</td>
* </tr>
* <tr valign="top">
* <td>ENT_NOQUOTES</td>
* <td>Will leave both double and single quotes unconverted.</td>
* </tr>
* </table>
* </p>
* @param string $charset [optional] <p>
* The ISO-8859-1 character set is used as default for the optional third
* charset. This defines the character set used in
* conversion.
* </p>
* &reference.strings.charsets;
* @return string the decoded string.
*/
function html_entity_decode ($string, $quote_style = null, $charset = null) {}
/**
* (PHP 5 >= 5.1.0)<br/>
* Convert special HTML entities back to characters
* @link http://php.net/manual/en/function.htmlspecialchars-decode.php
* @param string $string <p>
* The string to decode
* </p>
* @param int $quote_style [optional] <p>
* The quote style. One of the following constants:
* <table>
* quote_style constants
* <tr valign="top">
* <td>Constant Name</td>
* <td>Description</td>
* </tr>
* <tr valign="top">
* <td>ENT_COMPAT</td>
* <td>Will convert double-quotes and leave single-quotes alone
* (default)</td>
* </tr>
* <tr valign="top">
* <td>ENT_QUOTES</td>
* <td>Will convert both double and single quotes</td>
* </tr>
* <tr valign="top">
* <td>ENT_NOQUOTES</td>
* <td>Will leave both double and single quotes unconverted</td>
* </tr>
* </table>
* </p>
* @return string the decoded string.
*/
function htmlspecialchars_decode ($string, $quote_style = null) {}
/**
* (PHP 4, PHP 5)<br/>
* Returns the translation table used by <function>htmlspecialchars</function> and <function>htmlentities</function>
* @link http://php.net/manual/en/function.get-html-translation-table.php
* @param int $table [optional] <p>
* There are two new constants (HTML_ENTITIES,
* HTML_SPECIALCHARS) that allow you to specify the
* table you want.
* </p>
* @param int $quote_style [optional] <p>
* Like the htmlspecialchars and
* htmlentities functions you can optionally specify
* the quote_style you are working with.
* See the description
* of these modes in htmlspecialchars.
* </p>
* @return array the translation table as an array.
*/
function get_html_translation_table ($table = null, $quote_style = null) {}
/**
* (PHP 4 >= 4.3.0, PHP 5)<br/>
* Calculate the sha1 hash of a string
* @link http://php.net/manual/en/function.sha1.php
* @param string $str <p>
* The input string.
* </p>
* @param bool $raw_output [optional] <p>
* If the optional raw_output is set to true,
* then the sha1 digest is instead returned in raw binary format with a
* length of 20, otherwise the returned value is a 40-character
* hexadecimal number.
* </p>
* @return string the sha1 hash as a string.
*/
function sha1 ($str, $raw_output = null) {}
/**
* (PHP 4 >= 4.3.0, PHP 5)<br/>
* Calculate the sha1 hash of a file
* @link http://php.net/manual/en/function.sha1-file.php
* @param string $filename <p>
* The filename
* </p>
* @param bool $raw_output [optional] <p>
* When true, returns the digest in raw binary format with a length of
* 20.
* </p>
* @return string a string on success, false otherwise.
*/
function sha1_file ($filename, $raw_output = null) {}
/**
* (PHP 4, PHP 5)<br/>
* Calculate the md5 hash of a string
* @link http://php.net/manual/en/function.md5.php
* @param string $str <p>
* The string.
* </p>
* @param bool $raw_output [optional] <p>
* If the optional raw_output is set to true,
* then the md5 digest is instead returned in raw binary format with a
* length of 16.
* </p>
* @return string the hash as a 32-character hexadecimal number.
*/
function md5 ($str, $raw_output = null) {}
/**
* (PHP 4 >= 4.2.0, PHP 5)<br/>
* Calculates the md5 hash of a given file
* @link http://php.net/manual/en/function.md5-file.php
* @param string $filename <p>
* The filename
* </p>
* @param bool $raw_output [optional] <p>
* When true, returns the digest in raw binary format with a length of
* 16.
* </p>
* @return string a string on success, false otherwise.
*/
function md5_file ($filename, $raw_output = null) {}
/**
* (PHP 4 >= 4.0.1, PHP 5)<br/>
* Calculates the crc32 polynomial of a string
* @link http://php.net/manual/en/function.crc32.php
* @param string $str <p>
* The data.
* </p>
* @return int the crc32 checksum of str as an integer.
*/
function crc32 ($str) {}
/**
* (PHP 4, PHP 5)<br/>
* Parse a binary IPTC block into single tags.
* @link http://php.net/manual/en/function.iptcparse.php
* @param string $iptcblock <p>
* A binary IPTC block.
* </p>
* @return array an array using the tagmarker as an index and the value as the
* value. It returns false on error or if no IPTC data was found.
*/
function iptcparse ($iptcblock) {}
/**
* (PHP 4, PHP 5)<br/>
* Embeds binary IPTC data into a JPEG image
* @link http://php.net/manual/en/function.iptcembed.php
* @param string $iptcdata <p>
* The data to be written.
* </p>
* @param string $jpeg_file_name <p>
* Path to the JPEG image.
* </p>
* @param int $spool [optional] <p>
* Spool flag. If the spool flag is over 2 then the JPEG will be
* returned as a string.
* </p>
* @return mixed If success and spool flag is lower than 2 then the JPEG will not be
* returned as a string, false on errors.
*/
function iptcembed ($iptcdata, $jpeg_file_name, $spool = null) {}
/**
* (PHP 4, PHP 5)<br/>
* Get the size of an image
* @link http://php.net/manual/en/function.getimagesize.php
* @param string $filename <p>
* This parameter specifies the file you wish to retrieve information
* about. It can reference a local file or (configuration permitting) a
* remote file using one of the supported streams.
* </p>
* @param array $imageinfo [optional] <p>
* This optional parameter allows you to extract some extended
* information from the image file. Currently, this will return the
* different JPG APP markers as an associative array.
* Some programs use these APP markers to embed text information in
* images. A very common one is to embed
* IPTC information in the APP13 marker.
* You can use the iptcparse function to parse the
* binary APP13 marker into something readable.
* </p>
* @return array an array with 7 elements.
* </p>
* <p>
* Index 0 and 1 contains respectively the width and the height of the image.
* </p>
* <p>
* Some formats may contain no image or may contain multiple images. In these
* cases, getimagesize might not be able to properly
* determine the image size. getimagesize will return
* zero for width and height in these cases.
* </p>
* <p>
* Index 2 is one of the IMAGETYPE_XXX constants indicating
* the type of the image.
* </p>
* <p>
* Index 3 is a text string with the correct
* height="yyy" width="xxx" string that can be used
* directly in an IMG tag.
* </p>
* <p>
* mime is the correspondant MIME type of the image.
* This information can be used to deliver images with correct the HTTP
* Content-type header:
* getimagesize and MIME types
* ]]>
* </p>
* <p>
* channels will be 3 for RGB pictures and 4 for CMYK
* pictures.
* </p>
* <p>
* bits is the number of bits for each color.
* </p>
* <p>
* For some image types, the presence of channels and
* bits values can be a bit
* confusing. As an example, GIF always uses 3 channels
* per pixel, but the number of bits per pixel cannot be calculated for an
* animated GIF with a global color table.
* </p>
* <p>
* On failure, false is returned.
*/
function getimagesize ($filename, array &$imageinfo = null) {}
/**
* Return an image containing the affine tramsformed src image, using an optional clipping area
* @link http://www.php.net/manual/en/function.imageaffine.php
* @param resource $image <p>An image resource, returned by one of the image creation functions,
* such as {@link http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.</p>
* @param array $affine <p>Array with keys 0 to 5.</p>
* @param array $clip [optional] <p>Array with keys "x", "y", "width" and "height".</p>
* @return resource|bool Return affined image resource on success or FALSE on failure.
*/
function imageaffine($image, $affine, $clip = null) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Concat two matrices (as in doing many ops in one go)
* @link http://www.php.net/manual/en/function.imageaffinematrixconcat.php
* @param array $m1 <p>Array with keys 0 to 5.</p>
* @param array $m2 <p>Array with keys 0 to 5.</p>
* @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
*/
function imageaffinematrixconcat(array $m1, array $m2) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Return an image containing the affine tramsformed src image, using an optional clipping area
* @link http://www.php.net/manual/en/function.imageaffinematrixget.php
* @param int $type <p> One of <b>IMG_AFFINE_*</b> constants.
* @param mixed $options [optional]
* @return array|bool Array with keys 0 to 5 and float values or <b>FALSE</b> on failure.
*/
function imageaffinematrixget ($type, $options = null) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Crop an image using the given coordinates and size, x, y, width and height
* @link http://www.php.net/manual/en/function.imagecrop.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param array $rect <p>Array with keys "x", "y", "width" and "height".</p>
* @return resource|bool Return cropped image resource on success or FALSE on failure.
*/
function imagecrop ($image, $rect) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Crop an image automatically using one of the available modes
* @link http://www.php.net/manual/en/function.imagecropauto.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $mode [optional] <p>
* One of <b>IMG_CROP_*</b> constants.
* </p>
* @param float $threshold [optional] <p>
* Used <b>IMG_CROP_THRESHOLD</b> mode.
* </p>
* @param int $color [optional]
* <p>
* Used in <b>IMG_CROP_THRESHOLD</b> mode.
* </p>
* @return resource|bool Return cropped image resource on success or <b>FALSE</b> on failure.
*/
function imagecropauto ($image, $mode = -1, $threshold = .5, $color = -1) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Flips an image using a given mode
* @link http://www.php.net/manual/en/function.imageflip.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $mode <p>
* Flip mode, this can be one of the <b>IMG_FLIP_*</b> constants:
* </p>
* <table>
* <thead>
* <tr>
* <th>Constant</th>
* <th>Meaning</th>
* </tr>
* </thead>
* <tr>
* <td><b>IMG_FLIP_HORIZONTAL</b></td>
* <td>
* Flips the image horizontally.
* </td>
* </tr>
* <tr>
* <td><b>IMG_FLIP_VERTICAL</b></td>
* <td>
* Flips the image vertically.
* </td>
* </tr>
* <tr>
* <td><b>IMG_FLIP_BOTH</b></td>
* <td>
* Flips the image both horizontally and vertically.
* </td>
* </tr>
* </tbody>
* </table>
* @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function imageflip ($image, $mode) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Converts a palette based image to true color
* @link http://www.php.net/manual/en/function.imagepalettetotruecolor.php
* @param resource $image <p>
* An image resource, returnd by one of the image creation functions, such as {@link http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @return bool Returns <b>TRUE</b> if the convertion was complete, or if the source image already is a true color image, otherwise <b>FALSE</b> is returned.
*/
function imagepalettetotruecolor ($image) {}
/**
*(PHP 5 >= 5.5.0)<br/>
* Scale an image using the given new width and height
* @link http://www.php.net/manual/en/function.imagescale.php
* @param resource $image <p>
* An image resource, returnd by one of the image creation functions, such as {@link http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $new_width
* @param int $new_height [optional]
* @param int $mode [optional] One of <b>IMG_NEAREST_NEIGHBOUR</b>, <b>IMG_BILINEAR_FIXED</b>, <b>IMG_BICUBIC</b>, <b>IMG_BICUBIC_FIXED</b> or anything else (will use two pass).
* @return resource|bool Return scaled image resource on success or <b>FALSE</b> on failure.
*/
function imagescale ($image, $new_width, $new_height = -1, $mode = IMG_BILINEAR_FIXED) {}
/**
* (PHP 5 >= 5.5.0)<br/>
* Set the interpolation method
* @link http://www.php.net/manual/en/function.imagesetinterpolation.php
* @param resource $image <p>
* An image resource, returned by one of the image creation functions, such as {@link http://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
* </p>
* @param int $method <p>
* The interpolation method, which can be one of the following:
* <ul>
* <li>
* IMG_BELL: Bell filter.
* </li>
* <li>
* IMG_BESSEL: Bessel filter.
* </li>
* <li>
* IMG_BICUBIC: Bicubic interpolation.
* </li>
* <li>
* IMG_BICUBIC_FIXED: Fixed point implementation of the bicubic interpolation.
* </li>
* <li>
* IMG_BILINEAR_FIXED: Fixed point implementation of the bilinear interpolation (<em>default (also on image creation)</em>).
* </li>
* <li>
* IMG_BLACKMAN: Blackman window function.
* </li>
* <li>
* IMG_BOX: Box blur filter.
* </li>
* <li>
* IMG_BSPLINE: Spline interpolation.
* </li>
* <li>
* IMG_CATMULLROM: Cubbic Hermite spline interpolation.
* </li>
* <li>
* IMG_GAUSSIAN: Gaussian function.
* </li>
* <li>
* IMG_GENERALIZED_CUBIC: Generalized cubic spline fractal interpolation.
* </li>
* <li>
* IMG_HERMITE: Hermite interpolation.
* </li>
* <li>
* IMG_HAMMING: Hamming filter.
* </li>
* <li>
* IMG_HANNING: Hanning filter.
* </li>
* <li>
* IMG_MITCHELL: Mitchell filter.
* </li>
* <li>
* IMG_POWER: Power interpolation.
* </li>
* <li>
* IMG_QUADRATIC: Inverse quadratic interpolation.
* </li>
* <li>
* IMG_SINC: Sinc function.
* </li>
* <li>
* IMG_NEAREST_NEIGHBOUR: Nearest neighbour interpolation.
* </li>
* <li>
* IMG_WEIGHTED4: Weighting filter.
* </li>
* <li>
* IMG_TRIANGLE: Triangle interpolation.
* </li>
* </ul>
* </p>
* @return bool Returns TRUE on success or FALSE on failure.
*/
function imagesetinterpolation ($image, $method = IMG_BILINEAR_FIXED) {}
/**
* (PHP 4 >= 4.3.0, PHP 5)<br/>
* Get Mime-Type for image-type returned by getimagesize,
exif_read_data, exif_thumbnail, exif_imagetype
* @link http://php.net/manual/en/function.image-type-to-mime-type.php
* @param int $imagetype <p>
* One of the IMAGETYPE_XXX constants.
* </p>
* @return string The returned values are as follows
* <table>
* Returned values Constants
* <tr valign="top">
* <td>imagetype</td>
* <td>Returned value</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_GIF</td>
* <td>image/gif</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_JPEG</td>
* <td>image/jpeg</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_PNG</td>
* <td>image/png</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_SWF</td>
* <td>application/x-shockwave-flash</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_PSD</td>
* <td>image/psd</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_BMP</td>
* <td>image/bmp</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_TIFF_II (intel byte order)</td>
* <td>image/tiff</td>
* </tr>
* <tr valign="top">
* <td>
* IMAGETYPE_TIFF_MM (motorola byte order)
* </td>
* <td>image/tiff</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_JPC</td>
* <td>application/octet-stream</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_JP2</td>
* <td>image/jp2</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_JPX</td>
* <td>application/octet-stream</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_JB2</td>
* <td>application/octet-stream</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_SWC</td>
* <td>application/x-shockwave-flash</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_IFF</td>
* <td>image/iff</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_WBMP</td>
* <td>image/vnd.wap.wbmp</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_XBM</td>
* <td>image/xbm</td>
* </tr>
* <tr valign="top">
* <td>IMAGETYPE_ICO</td>
* <td>image/vnd.microsoft.icon</td>
* </tr>
* </table>
*/
function image_type_to_mime_type ($imagetype) {}
/**
* (PHP 5)<br/>
* Get file extension for image type
* @link http://php.net/manual/en/function.image-type-to-extension.php
* @param int $imagetype <p>
* One of the IMAGETYPE_XXX constant.
* </p>
* @param bool $include_dot [optional] <p>
* Whether to prepend a dot to the extension or not. Default to true.
* </p>
* @return string A string with the extension corresponding to the given image type.
*/
function image_type_to_extension ($imagetype, $include_dot = null) {}
/**
* (PHP 4, PHP 5)<br/>
* Outputs lots of PHP information
* @link http://php.net/manual/en/function.phpinfo.php
* @param int $what [optional] <p>
* The output may be customized by passing one or more of the
* following constants bitwise values summed
* together in the optional what parameter.
* One can also combine the respective constants or bitwise values
* together with the or operator.
* </p>
* <p>
* <table>
* phpinfo options
* <tr valign="top">
* <td>Name (constant)</td>
* <td>Value</td>