forked from HvyIndustries/crane-php-stubs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mssql.php
940 lines (865 loc) · 29.7 KB
/
mssql.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
<?php
// Start of mssql v.
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Open MS SQL server connection
* @link http://php.net/manual/en/function.mssql-connect.php
* @param string $servername [optional] <p>
* The MS SQL server. It can also include a port number, e.g.
* hostname:port (Linux), or
* hostname,port (Windows).
* </p>
* @param string $username [optional] <p>
* The username.
* </p>
* @param string $password [optional] <p>
* The password.
* </p>
* @param bool $new_link [optional] <p>
* If a second call is made to <b>mssql_connect</b> with the
* same arguments, no new link will be established, but instead, the link
* identifier of the already opened link will be returned. This parameter
* modifies this behavior and makes <b>mssql_connect</b>
* always open a new link, even if <b>mssql_connect</b> was
* called before with the same parameters.
* </p>
* @return resource a MS SQL link identifier on success, or <b>FALSE</b> on error.
*/
function mssql_connect ($servername = null, $username = null, $password = null, $new_link = false) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Open persistent MS SQL connection
* @link http://php.net/manual/en/function.mssql-pconnect.php
* @param string $servername [optional] <p>
* The MS SQL server. It can also include a port number. e.g.
* hostname:port.
* </p>
* @param string $username [optional] <p>
* The username.
* </p>
* @param string $password [optional] <p>
* The password.
* </p>
* @param bool $new_link [optional] <p>
* If a second call is made to <b>mssql_pconnect</b> with
* the same arguments, no new link will be established, but instead, the
* link identifier of the already opened link will be returned. This
* parameter modifies this behavior and makes
* <b>mssql_pconnect</b> always open a new link, even if
* <b>mssql_pconnect</b> was called before with the same
* parameters.
* </p>
* @return resource a positive MS SQL persistent link identifier on success, or
* <b>FALSE</b> on error.
*/
function mssql_pconnect ($servername = null, $username = null, $password = null, $new_link = false) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Close MS SQL Server connection
* @link http://php.net/manual/en/function.mssql-close.php
* @param resource $link_identifier [optional] <p>
* A MS SQL link identifier, returned by
* <b>mssql_connect</b>.
* </p>
* <p>
* This function will not close persistent links generated by
* <b>mssql_pconnect</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mssql_close ($link_identifier = null) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Select MS SQL database
* @link http://php.net/manual/en/function.mssql-select-db.php
* @param string $database_name <p>
* The database name.
* </p>
* <p>
* To escape the name of a database that contains spaces, hyphens ("-"),
* or any other exceptional characters, the database name must be
* enclosed in brackets, as is shown in the example, below. This
* technique must also be applied when selecting a database name that is
* also a reserved word (such as primary).
* </p>
* @param resource $link_identifier [optional] <p>
* A MS SQL link identifier, returned by
* <b>mssql_connect</b> or
* <b>mssql_pconnect</b>.
* </p>
* <p>
* If no link identifier is specified, the last opened link is assumed.
* If no link is open, the function will try to establish a link as if
* <b>mssql_connect</b> was called, and use it.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mssql_select_db ($database_name, $link_identifier = null) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Send MS SQL query
* @link http://php.net/manual/en/function.mssql-query.php
* @param string $query <p>
* An SQL query.
* </p>
* @param resource $link_identifier [optional] <p>
* A MS SQL link identifier, returned by
* <b>mssql_connect</b> or
* <b>mssql_pconnect</b>.
* </p>
* <p>
* If the link identifier isn't specified, the last opened link is
* assumed. If no link is open, the function tries to establish a link
* as if <b>mssql_connect</b> was called, and use it.
* </p>
* @param int $batch_size [optional] <p>
* The number of records to batch in the buffer.
* </p>
* @return mixed a MS SQL result resource on success, <b>TRUE</b> if no rows were
* returned, or <b>FALSE</b> on error.
*/
function mssql_query ($query, $link_identifier = null, $batch_size = 0) {}
/**
* (PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Returns the next batch of records
* @link http://php.net/manual/en/function.mssql-fetch-batch.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @return int the number of rows in the returned batch.
*/
function mssql_fetch_batch ($result) {}
/**
* (PHP 4 >= 4.0.4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Returns the number of records affected by the query
* @link http://php.net/manual/en/function.mssql-rows-affected.php
* @param resource $link_identifier <p>
* A MS SQL link identifier, returned by
* <b>mssql_connect</b> or
* <b>mssql_pconnect</b>.
* </p>
* @return int the number of records affected by last operation.
*/
function mssql_rows_affected ($link_identifier) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Free result memory
* @link http://php.net/manual/en/function.mssql-free-result.php
* @param resource $result <p>
* The result resource that is being freed. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mssql_free_result ($result) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Returns the last message from the server
* @link http://php.net/manual/en/function.mssql-get-last-message.php
* @return string last error message from server, or an empty string if
* no error messages are returned from MSSQL.
*/
function mssql_get_last_message () {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Gets the number of rows in result
* @link http://php.net/manual/en/function.mssql-num-rows.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @return int the number of rows, as an integer.
*/
function mssql_num_rows ($result) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Gets the number of fields in result
* @link http://php.net/manual/en/function.mssql-num-fields.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @return int the number of fields, as an integer.
*/
function mssql_num_fields ($result) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Get field information
* @link http://php.net/manual/en/function.mssql-fetch-field.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @param int $field_offset [optional] <p>
* The numerical field offset. If the field offset is not specified, the
* next field that was not yet retrieved by this function is retrieved. The
* <i>field_offset</i> starts at 0.
* </p>
* @return object an object containing field information.
* </p>
* <p>
* The properties of the object are:
*/
function mssql_fetch_field ($result, $field_offset = -1) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Get row as enumerated array
* @link http://php.net/manual/en/function.mssql-fetch-row.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @return array an array that corresponds to the fetched row, or <b>FALSE</b> if there
* are no more rows.
*/
function mssql_fetch_row ($result) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Fetch a result row as an associative array, a numeric array, or both
* @link http://php.net/manual/en/function.mssql-fetch-array.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @param int $result_type [optional] <p>
* The type of array that is to be fetched. It's a constant and can take
* the following values: <b>MSSQL_ASSOC</b>,
* <b>MSSQL_NUM</b>, and
* <b>MSSQL_BOTH</b>.
* </p>
* @return array an array that corresponds to the fetched row, or <b>FALSE</b> if there
* are no more rows.
*/
function mssql_fetch_array ($result, $result_type = 'MSSQL_BOTH') {}
/**
* (PHP 4 >= 4.2.0, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Returns an associative array of the current row in the result
* @link http://php.net/manual/en/function.mssql-fetch-assoc.php
* @param resource $result_id <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @return array an associative array that corresponds to the fetched row, or
* <b>FALSE</b> if there are no more rows.
*/
function mssql_fetch_assoc ($result_id) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Fetch row as object
* @link http://php.net/manual/en/function.mssql-fetch-object.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @return object an object with properties that correspond to the fetched row, or
* <b>FALSE</b> if there are no more rows.
*/
function mssql_fetch_object ($result) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Get the length of a field
* @link http://php.net/manual/en/function.mssql-field-length.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @param int $offset [optional] <p>
* The field offset, starts at 0. If omitted, the current field is used.
* </p>
* @return int The length of the specified field index on success or <b>FALSE</b> on failure.
*/
function mssql_field_length ($result, $offset = -1) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Get the name of a field
* @link http://php.net/manual/en/function.mssql-field-name.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @param int $offset [optional] <p>
* The field offset, starts at 0. If omitted, the current field is used.
* </p>
* @return string The name of the specified field index on success or <b>FALSE</b> on failure.
*/
function mssql_field_name ($result, $offset = -1) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Gets the type of a field
* @link http://php.net/manual/en/function.mssql-field-type.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @param int $offset [optional] <p>
* The field offset, starts at 0. If omitted, the current field is used.
* </p>
* @return string The type of the specified field index on success or <b>FALSE</b> on failure.
*/
function mssql_field_type ($result, $offset = -1) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Moves internal row pointer
* @link http://php.net/manual/en/function.mssql-data-seek.php
* @param resource $result_identifier <p>
* The result resource that is being evaluated.
* </p>
* @param int $row_number <p>
* The desired row number of the new result pointer.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mssql_data_seek ($result_identifier, $row_number) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Seeks to the specified field offset
* @link http://php.net/manual/en/function.mssql-field-seek.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @param int $field_offset <p>
* The field offset, starts at 0.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mssql_field_seek ($result, $field_offset) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Get result data
* @link http://php.net/manual/en/function.mssql-result.php
* @param resource $result <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @param int $row <p>
* The row number.
* </p>
* @param mixed $field <p>
* Can be the field's offset, the field's name or the field's table dot
* field's name (tablename.fieldname). If the column name has been
* aliased ('select foo as bar from...'), it uses the alias instead of
* the column name.
* </p>
* <p>
* Specifying a numeric offset for the <i>field</i>
* argument is much quicker than specifying a
* fieldname or
* tablename.fieldname argument.
* </p>
* @return string the contents of the specified cell.
*/
function mssql_result ($result, $row, $field) {}
/**
* (PHP 4 >= 4.0.5, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Move the internal result pointer to the next result
* @link http://php.net/manual/en/function.mssql-next-result.php
* @param resource $result_id <p>
* The result resource that is being evaluated. This result comes from a
* call to <b>mssql_query</b>.
* </p>
* @return bool <b>TRUE</b> if an additional result set was available or <b>FALSE</b>
* otherwise.
*/
function mssql_next_result ($result_id) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Sets the minimum error severity
* @link http://php.net/manual/en/function.mssql-min-error-severity.php
* @param int $severity <p>
* The new error severity.
* </p>
* @return void No value is returned.
*/
function mssql_min_error_severity ($severity) {}
/**
* (PHP 4, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Sets the minimum message severity
* @link http://php.net/manual/en/function.mssql-min-message-severity.php
* @param int $severity <p>
* The new message severity.
* </p>
* @return void No value is returned.
*/
function mssql_min_message_severity ($severity) {}
/**
* (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Initializes a stored procedure or a remote stored procedure
* @link http://php.net/manual/en/function.mssql-init.php
* @param string $sp_name <p>
* Stored procedure name, like ownew.sp_name or
* otherdb.owner.sp_name.
* </p>
* @param resource $link_identifier [optional] <p>
* A MS SQL link identifier, returned by
* <b>mssql_connect</b>.
* </p>
* @return resource a resource identifier "statement", used in subsequent calls to
* <b>mssql_bind</b> and <b>mssql_execute</b>,
* or <b>FALSE</b> on errors.
*/
function mssql_init ($sp_name, $link_identifier = null) {}
/**
* (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Adds a parameter to a stored procedure or a remote stored procedure
* @link http://php.net/manual/en/function.mssql-bind.php
* @param resource $stmt <p>
* Statement resource, obtained with <b>mssql_init</b>.
* </p>
* @param string $param_name <p>
* The parameter name, as a string.
* </p>
* <p>
* You have to include the @ character, like in the
* T-SQL syntax. See the explanation included in
* <b>mssql_execute</b>.
* </p>
* @param mixed $var <p>
* The PHP variable you'll bind the MSSQL parameter to. It is passed by
* reference, to retrieve OUTPUT and RETVAL values after
* the procedure execution.
* </p>
* @param int $type <p>
* One of: <b>SQLTEXT</b>,
* <b>SQLVARCHAR</b>, <b>SQLCHAR</b>,
* <b>SQLINT1</b>, <b>SQLINT2</b>,
* <b>SQLINT4</b>, <b>SQLBIT</b>,
* <b>SQLFLT4</b>, <b>SQLFLT8</b>,
* <b>SQLFLTN</b>.
* </p>
* @param bool $is_output [optional] <p>
* Whether the value is an OUTPUT parameter or not. If it's an OUTPUT
* parameter and you don't mention it, it will be treated as a normal
* input parameter and no error will be thrown.
* </p>
* @param bool $is_null [optional] <p>
* Whether the parameter is <b>NULL</b> or not. Passing the <b>NULL</b> value as
* <i>var</i> will not do the job.
* </p>
* @param int $maxlen [optional] <p>
* Used with char/varchar values. You have to indicate the length of the
* data so if the parameter is a varchar(50), the type must be
* <b>SQLVARCHAR</b> and this value 50.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mssql_bind ($stmt, $param_name, &$var, $type, $is_output = false, $is_null = false, $maxlen = -1) {}
/**
* (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Executes a stored procedure on a MS SQL server database
* @link http://php.net/manual/en/function.mssql-execute.php
* @param resource $stmt <p>
* Statement handle obtained with <b>mssql_init</b>.
* </p>
* @param bool $skip_results [optional] <p>
* Whenever to skip the results or not.
* </p>
* @return mixed
*/
function mssql_execute ($stmt, $skip_results = false) {}
/**
* (PHP 4 >= 4.3.2, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Free statement memory
* @link http://php.net/manual/en/function.mssql-free-statement.php
* @param resource $stmt <p>
* Statement resource, obtained with <b>mssql_init</b>.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function mssql_free_statement ($stmt) {}
/**
* (PHP 4 >= 4.0.7, PHP 5, PECL odbtp >= 1.1.1)<br/>
* Converts a 16 byte binary GUID to a string
* @link http://php.net/manual/en/function.mssql-guid-string.php
* @param string $binary <p>
* A 16 byte binary GUID.
* </p>
* @param bool $short_format [optional] <p>
* Whenever to use short format.
* </p>
* @return string the converted string on success.
*/
function mssql_guid_string ($binary, $short_format = false) {}
/**
* (PHP 4, PHP 5)<br/>
* Opens a Sybase server connection
* @link http://php.net/manual/en/function.sybase-connect.php
* @param string $servername [optional] <p>
* The servername argument has to be a valid servername that is defined
* in the 'interfaces' file.
* </p>
* @param string $username [optional] <p>
* Sybase user name
* </p>
* @param string $password [optional] <p>
* Password associated with <i>username</i>.
* </p>
* @param string $charset [optional] <p>
* Specifies the charset for the connection
* </p>
* @param string $appname [optional] <p>
* Specifies an appname for the Sybase connection.
* This allow you to make separate connections in the same script to the
* same database. This may come handy when you have started a transaction
* in your current connection, and you need to be able to do a separate
* query which cannot be performed inside this transaction.
* </p>
* @param bool $new [optional] <p>
* Whether to open a new connection or use the existing one.
* </p>
* @return resource a positive Sybase link identifier on success, or <b>FALSE</b> on
* failure.
*/
function sybase_connect ($servername = null, $username = null, $password = null, $charset = null, $appname = null, $new = false) {}
/**
* (PHP 4, PHP 5)<br/>
* Open persistent Sybase connection
* @link http://php.net/manual/en/function.sybase-pconnect.php
* @param string $servername [optional] <p>
* The servername argument has to be a valid servername that is defined
* in the 'interfaces' file.
* </p>
* @param string $username [optional] <p>
* Sybase user name
* </p>
* @param string $password [optional] <p>
* Password associated with <i>username</i>.
* </p>
* @param string $charset [optional] <p>
* Specifies the charset for the connection
* </p>
* @param string $appname [optional] <p>
* Specifies an appname for the Sybase connection.
* This allow you to make separate connections in the same script to the
* same database. This may come handy when you have started a transaction
* in your current connection, and you need to be able to do a separate
* query which cannot be performed inside this transaction.
* </p>
* @return resource a positive Sybase persistent link identifier on success, or
* <b>FALSE</b> on error.
*/
function sybase_pconnect ($servername = null, $username = null, $password = null, $charset = null, $appname = null) {}
/**
* (PHP 4, PHP 5)<br/>
* Closes a Sybase connection
* @link http://php.net/manual/en/function.sybase-close.php
* @param resource $link_identifier [optional] <p>
* If the link identifier isn't specified, the last opened link is
* assumed.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function sybase_close ($link_identifier = null) {}
/**
* (PHP 4, PHP 5)<br/>
* Selects a Sybase database
* @link http://php.net/manual/en/function.sybase-select-db.php
* @param string $database_name
* @param resource $link_identifier [optional] <p>
* If no link identifier is specified, the last opened link is assumed.
* If no link is open, the function will try to establish a link as if
* <b>sybase_connect</b> was called, and use it.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function sybase_select_db ($database_name, $link_identifier = null) {}
/**
* (PHP 4, PHP 5)<br/>
* Sends a Sybase query
* @link http://php.net/manual/en/function.sybase-query.php
* @param string $query
* @param resource $link_identifier [optional] <p>
* If the link identifier isn't specified, the last opened link is
* assumed. If no link is open, the function tries to establish a link as
* if <b>sybase_connect</b> was called, and use it.
* </p>
* @return mixed a positive Sybase result identifier on success, <b>FALSE</b> on error,
* or <b>TRUE</b> if the query was successful but didn't return any columns.
*/
function sybase_query ($query, $link_identifier = null) {}
/**
* @param $result
*/
function sybase_fetch_batch ($result) {}
/**
* (PHP 4, PHP 5)<br/>
* Gets number of affected rows in last query
* @link http://php.net/manual/en/function.sybase-affected-rows.php
* @param resource $link_identifier [optional] <p>
* If the link identifier isn't specified, the last opened link is assumed.
* </p>
* @return int the number of affected rows, as an integer.
*/
function sybase_affected_rows ($link_identifier = null) {}
/**
* (PHP 4, PHP 5)<br/>
* Frees result memory
* @link http://php.net/manual/en/function.sybase-free-result.php
* @param resource $result
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function sybase_free_result ($result) {}
/**
* (PHP 4, PHP 5)<br/>
* Returns the last message from the server
* @link http://php.net/manual/en/function.sybase-get-last-message.php
* @return string the message as a string.
*/
function sybase_get_last_message () {}
/**
* (PHP 4, PHP 5)<br/>
* Get number of rows in a result set
* @link http://php.net/manual/en/function.sybase-num-rows.php
* @param resource $result
* @return int the number of rows as an integer.
*/
function sybase_num_rows ($result) {}
/**
* (PHP 4, PHP 5)<br/>
* Gets the number of fields in a result set
* @link http://php.net/manual/en/function.sybase-num-fields.php
* @param resource $result
* @return int the number of fields as an integer.
*/
function sybase_num_fields ($result) {}
/**
* (PHP 4, PHP 5)<br/>
* Get field information from a result
* @link http://php.net/manual/en/function.sybase-fetch-field.php
* @param resource $result
* @param int $field_offset [optional] <p>
* If the field offset isn't specified, the next field that wasn't yet
* retrieved by <b>sybase_fetch_field</b> is retrieved.
* </p>
* @return object an object containing field information.
* </p>
* <p>
* The properties of the object are:
*/
function sybase_fetch_field ($result, $field_offset = -1) {}
/**
* (PHP 4, PHP 5)<br/>
* Get a result row as an enumerated array
* @link http://php.net/manual/en/function.sybase-fetch-row.php
* @param resource $result
* @return array an array that corresponds to the fetched row, or <b>FALSE</b> if there
* are no more rows. Each result column is stored in an array offset,
* starting at offset 0.
*/
function sybase_fetch_row ($result) {}
/**
* (PHP 4, PHP 5)<br/>
* Fetch row as array
* @link http://php.net/manual/en/function.sybase-fetch-array.php
* @param resource $result
* @return array an array that corresponds to the fetched row, or <b>FALSE</b> if there
* are no more rows.
* </p>
* <p>
* When selecting fields with identical names (for instance, in a join), the
* associative indices will have a sequential number prepended. See the
* example for details.
*/
function sybase_fetch_array ($result) {}
/**
* (PHP 4 >= 4.3.0, PHP 5)<br/>
* Fetch a result row as an associative array
* @link http://php.net/manual/en/function.sybase-fetch-assoc.php
* @param resource $result
* @return array an array that corresponds to the fetched row, or <b>FALSE</b> if there
* are no more rows.
*/
function sybase_fetch_assoc ($result) {}
/**
* (PHP 4, PHP 5)<br/>
* Fetch a row as an object
* @link http://php.net/manual/en/function.sybase-fetch-object.php
* @param resource $result
* @param mixed $object [optional] <p>
* Use the second <i>object</i> to specify the type of object
* you want to return. If this parameter is omitted, the object will be of
* type stdClass.
* </p>
* @return object an object with properties that correspond to the fetched row, or
* <b>FALSE</b> if there are no more rows.
*/
function sybase_fetch_object ($result, $object = null) {}
/**
* @param $result
* @param $offset [optional]
*/
function sybase_field_length ($result, $offset) {}
/**
* @param $result
* @param $offset [optional]
*/
function sybase_field_name ($result, $offset) {}
/**
* @param $result
* @param $offset [optional]
*/
function sybase_field_type ($result, $offset) {}
/**
* (PHP 4, PHP 5)<br/>
* Moves internal row pointer
* @link http://php.net/manual/en/function.sybase-data-seek.php
* @param resource $result_identifier
* @param int $row_number
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function sybase_data_seek ($result_identifier, $row_number) {}
/**
* (PHP 4, PHP 5)<br/>
* Sets field offset
* @link http://php.net/manual/en/function.sybase-field-seek.php
* @param resource $result
* @param int $field_offset
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function sybase_field_seek ($result, $field_offset) {}
/**
* (PHP 4, PHP 5)<br/>
* Get result data
* @link http://php.net/manual/en/function.sybase-result.php
* @param resource $result
* @param int $row
* @param mixed $field <p>
* The field argument can be the field's offset, or the field's name, or
* the field's table dot field's name (tablename.fieldname). If the
* column name has been aliased ('select foo as bar from...'), use the
* alias instead of the column name.
* </p>
* @return string <b>sybase_result</b> returns the contents of one cell from a
* Sybase result set.
*/
function sybase_result ($result, $row, $field) {}
/**
* @param $result_id
*/
function sybase_next_result ($result_id) {}
/**
* (PHP 4, PHP 5)<br/>
* Sets minimum error severity
* @link http://php.net/manual/en/function.sybase-min-error-severity.php
* @param int $severity
* @return void No value is returned.
*/
function sybase_min_error_severity ($severity) {}
/**
* (PHP 4, PHP 5)<br/>
* Sets minimum message severity
* @link http://php.net/manual/en/function.sybase-min-message-severity.php
* @param int $severity
* @return void No value is returned.
*/
function sybase_min_message_severity ($severity) {}
/**
* @param $sp_name
* @param $link_identifier [optional]
*/
function sybase_init ($sp_name, $link_identifier) {}
/**
* @param $stmt
* @param $param_name
* @param $var
* @param $type
* @param $is_output [optional]
* @param $is_null [optional]
* @param $maxlen [optional]
*/
function sybase_bind ($stmt, $param_name, &$var, $type, $is_output, $is_null, $maxlen) {}
/**
* @param $stmt
* @param $skip_results [optional]
*/
function sybase_execute ($stmt, $skip_results) {}
/**
* @param $stmt
*/
function sybase_free_statement ($stmt) {}
/**
* @param $binary
* @param $short_format [optional]
*/
function sybase_guid_string ($binary, $short_format) {}
/**
* Return an associative array. Used on
* <b>mssql_fetch_array</b>'s
* result_type parameter.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('MSSQL_ASSOC', 1);
/**
* Return an array with numeric keys. Used on
* <b>mssql_fetch_array</b>'s
* result_type parameter.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('MSSQL_NUM', 2);
/**
* Return an array with both numeric keys and
* keys with their field name. This is the
* default value for <b>mssql_fetch_array</b>'s
* result_type parameter.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('MSSQL_BOTH', 3);
/**
* Indicates the 'TEXT' type in MSSQL, used by
* <b>mssql_bind</b>'s type
* parameter.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLTEXT', 35);
/**
* Indicates the 'VARCHAR' type in MSSQL, used by
* <b>mssql_bind</b>'s type
* parameter.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLVARCHAR', 39);
/**
* Indicates the 'CHAR' type in MSSQL, used by
* <b>mssql_bind</b>'s type
* parameter.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLCHAR', 47);
/**
* Represents one byte, with a range of -128 to 127.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLINT1', 48);
/**
* Represents two bytes, with a range of -32768
* to 32767.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLINT2', 52);
/**
* Represents four bytes, with a range of -2147483648
* to 2147483647.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLINT4', 56);
/**
* Indicates the 'BIT' type in MSSQL, used by
* <b>mssql_bind</b>'s type
* parameter.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLBIT', 50);
/**
* Represents an four byte float.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLFLT4', 59);
/**
* Represents an eight byte float.
* @link http://php.net/manual/en/mssql.constants.php
*/
define ('SQLFLT8', 62);
define ('SQLFLTN', 109);
// End of mssql v.
?>