mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
MFH: New way for check void parameters
This commit is contained in:
parent
cc2b17d51d
commit
84a8bb038a
40 changed files with 226 additions and 228 deletions
|
@ -2426,8 +2426,8 @@ PHP_FUNCTION(sqlite_column)
|
|||
Returns the version of the linked SQLite library. */
|
||||
PHP_FUNCTION(sqlite_libversion)
|
||||
{
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT;
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RETURN_STRING((char*)sqlite_libversion(), 1);
|
||||
}
|
||||
|
@ -2437,8 +2437,8 @@ PHP_FUNCTION(sqlite_libversion)
|
|||
Returns the encoding (iso8859 or UTF-8) of the linked SQLite library. */
|
||||
PHP_FUNCTION(sqlite_libencoding)
|
||||
{
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT;
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RETURN_STRING((char*)sqlite_libencoding(), 1);
|
||||
}
|
||||
|
@ -2453,8 +2453,8 @@ PHP_FUNCTION(sqlite_changes)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
DB_FROM_OBJECT(db, object);
|
||||
} else {
|
||||
|
@ -2477,8 +2477,8 @@ PHP_FUNCTION(sqlite_last_insert_rowid)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
DB_FROM_OBJECT(db, object);
|
||||
} else {
|
||||
|
@ -2514,8 +2514,8 @@ PHP_FUNCTION(sqlite_num_rows)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RES_FROM_OBJECT(res, object);
|
||||
} else {
|
||||
|
@ -2543,8 +2543,8 @@ PHP_FUNCTION(sqlite_valid)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RES_FROM_OBJECT(res, object);
|
||||
} else {
|
||||
|
@ -2567,8 +2567,8 @@ PHP_FUNCTION(sqlite_has_prev)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RES_FROM_OBJECT(res, object);
|
||||
} else {
|
||||
|
@ -2596,8 +2596,8 @@ PHP_FUNCTION(sqlite_num_fields)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RES_FROM_OBJECT(res, object);
|
||||
} else {
|
||||
|
@ -2686,8 +2686,8 @@ PHP_FUNCTION(sqlite_rewind)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RES_FROM_OBJECT(res, object);
|
||||
} else {
|
||||
|
@ -2721,8 +2721,8 @@ PHP_FUNCTION(sqlite_next)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RES_FROM_OBJECT(res, object);
|
||||
} else {
|
||||
|
@ -2756,8 +2756,8 @@ PHP_FUNCTION(sqlite_key)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RES_FROM_OBJECT(res, object);
|
||||
} else {
|
||||
|
@ -2780,8 +2780,8 @@ PHP_FUNCTION(sqlite_prev)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
RES_FROM_OBJECT(res, object);
|
||||
} else {
|
||||
|
@ -2849,8 +2849,8 @@ PHP_FUNCTION(sqlite_last_error)
|
|||
zval *object = getThis();
|
||||
|
||||
if (object) {
|
||||
if (ZEND_NUM_ARGS() != 0) {
|
||||
WRONG_PARAM_COUNT
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
DB_FROM_OBJECT(db, object);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue