Skip to content

Commit c610c27

Browse files
authored
Update various DB functions for more specific row counts
1 parent 2bbad83 commit c610c27

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

resources/functionMap.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,8 +1677,8 @@
16771677
'db2_last_insert_id' => ['string', 'resource'=>'resource'],
16781678
'db2_lob_read' => ['string|false', 'stmt'=>'resource', 'colnum'=>'int', 'length'=>'int'],
16791679
'db2_next_result' => ['resource|false', 'stmt'=>'resource'],
1680-
'db2_num_fields' => ['int|false', 'stmt'=>'resource'],
1681-
'db2_num_rows' => ['int', 'stmt'=>'resource'],
1680+
'db2_num_fields' => ['0|positive-int|false', 'stmt'=>'resource'],
1681+
'db2_num_rows' => ['0|positive-int', 'stmt'=>'resource'],
16821682
'db2_pclose' => ['bool', 'resource'=>'resource'],
16831683
'db2_pconnect' => ['resource|false', 'database'=>'string', 'username'=>'string', 'password'=>'string', 'options='=>'array'],
16841684
'db2_prepare' => ['resource|false', 'connection'=>'resource', 'statement'=>'string', 'options='=>'array'],
@@ -7205,7 +7205,7 @@
72057205
'mysqli::store_result' => ['mysqli_result|false', 'option='=>'int'],
72067206
'mysqli::thread_safe' => ['bool'],
72077207
'mysqli::use_result' => ['mysqli_result|false'],
7208-
'mysqli_affected_rows' => ['int', 'link'=>'mysqli'],
7208+
'mysqli_affected_rows' => ['int<-1,max>|numeric-string', 'link'=>'mysqli'],
72097209
'mysqli_autocommit' => ['bool', 'link'=>'mysqli', 'mode'=>'bool'],
72107210
'mysqli_begin_transaction' => ['bool', 'link'=>'mysqli', 'flags='=>'int', 'name='=>'string'],
72117211
'mysqli_change_user' => ['bool', 'link'=>'mysqli', 'user'=>'string', 'password'=>'string', 'database'=>'string'],
@@ -7326,7 +7326,7 @@
73267326
'mysqli_stmt::result_metadata' => ['mysqli_result|false'],
73277327
'mysqli_stmt::send_long_data' => ['bool', 'param_nr'=>'int', 'data'=>'string'],
73287328
'mysqli_stmt::store_result' => ['bool'],
7329-
'mysqli_stmt_affected_rows' => ['int|string', 'stmt'=>'mysqli_stmt'],
7329+
'mysqli_stmt_affected_rows' => ['int<-1,max>|numeric-string', 'stmt'=>'mysqli_stmt'],
73307330
'mysqli_stmt_attr_get' => ['int|false', 'stmt'=>'mysqli_stmt', 'attr'=>'int'],
73317331
'mysqli_stmt_attr_set' => ['bool', 'stmt'=>'mysqli_stmt', 'attr'=>'int', 'mode'=>'int'],
73327332
'mysqli_stmt_bind_param' => ['bool', 'stmt'=>'mysqli_stmt', 'types'=>'string', 'var1'=>'mixed', '...args='=>'mixed'],
@@ -7971,8 +7971,8 @@
79717971
'oci_new_connect' => ['resource|false', 'user'=>'string', 'pass'=>'string', 'db='=>'string', 'charset='=>'string', 'session_mode='=>'int'],
79727972
'oci_new_cursor' => ['resource|false', 'connection'=>'resource'],
79737973
'oci_new_descriptor' => ['OCI-Lob|false', 'connection'=>'resource', 'type='=>'int'],
7974-
'oci_num_fields' => ['int|false', 'stmt'=>'resource'],
7975-
'oci_num_rows' => ['int|false', 'stmt'=>'resource'],
7974+
'oci_num_fields' => ['0|positive-int|false', 'stmt'=>'resource'],
7975+
'oci_num_rows' => ['0|positive-int|false', 'stmt'=>'resource'],
79767976
'oci_parse' => ['resource|false', 'connection'=>'resource', 'statement'=>'string'],
79777977
'oci_password_change' => ['bool', 'connection'=>'', 'username'=>'string', 'old_password'=>'string', 'new_password'=>'string'],
79787978
'oci_pconnect' => ['resource|false', 'user'=>'string', 'pass'=>'string', 'db='=>'string', 'charset='=>'string', 'session_mode='=>'int'],
@@ -8473,7 +8473,7 @@
84738473
'PDOStatement::bindParam' => ['bool', 'parameter'=>'mixed', '&w_variable'=>'mixed', 'data_type='=>'int', 'length='=>'int', 'driver_options='=>'mixed'],
84748474
'PDOStatement::bindValue' => ['bool', 'parameter'=>'mixed', 'value'=>'mixed', 'data_type='=>'int'],
84758475
'PDOStatement::closeCursor' => ['bool'],
8476-
'PDOStatement::columnCount' => ['int'],
8476+
'PDOStatement::columnCount' => ['0|positive-int'],
84778477
'PDOStatement::debugDumpParams' => ['void'],
84788478
'PDOStatement::errorCode' => ['string'],
84798479
'PDOStatement::errorInfo' => ['array'],
@@ -8485,7 +8485,7 @@
84858485
'PDOStatement::getAttribute' => ['mixed', 'attribute'=>'int'],
84868486
'PDOStatement::getColumnMeta' => ['array|false', 'column'=>'int'],
84878487
'PDOStatement::nextRowset' => ['bool'],
8488-
'PDOStatement::rowCount' => ['int'],
8488+
'PDOStatement::rowCount' => ['0|positive-int'],
84898489
'PDOStatement::setAttribute' => ['bool', 'attribute'=>'int', 'value'=>'mixed'],
84908490
'PDOStatement::setFetchMode' => ['bool', 'mode'=>'int'],
84918491
'PDOStatement::setFetchMode\'1' => ['bool', 'fetch_column'=>'int', 'colno'=>'int'],
@@ -11535,7 +11535,7 @@
1153511535
'sqlsrv_prepare' => ['resource|false', 'conn'=>'resource', 'sql'=>'string', 'params='=>'array', 'options='=>'array'],
1153611536
'sqlsrv_query' => ['resource|false', 'conn'=>'resource', 'sql'=>'string', 'params='=>'array', 'options='=>'array'],
1153711537
'sqlsrv_rollback' => ['bool', 'conn'=>'resource'],
11538-
'sqlsrv_rows_affected' => ['int|false', 'stmt'=>'resource'],
11538+
'sqlsrv_rows_affected' => ['int<-1,max>|false', 'stmt'=>'resource'],
1153911539
'sqlsrv_send_stream_data' => ['bool', 'stmt'=>'resource'],
1154011540
'sqlsrv_server_info' => ['array', 'conn'=>'resource'],
1154111541
'sqrt' => ['float', 'number'=>'float'],

0 commit comments

Comments
 (0)