mirror of
https://github.com/php/php-src.git
synced 2025-01-18 09:43:36 +08:00
- Fixed some wrong format parameters
This commit is contained in:
parent
7b59a46711
commit
0c745885ca
@ -2223,7 +2223,7 @@ PHP_FUNCTION(pg_field_table)
|
||||
char *table_name;
|
||||
zend_rsrc_list_entry *field_table;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|b!", &result, &fnum, &return_oid) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl|b", &result, &fnum, &return_oid) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -3951,7 +3951,7 @@ PHP_FUNCTION(pg_copy_from)
|
||||
ExecStatusType status;
|
||||
int argc = ZEND_NUM_ARGS();
|
||||
|
||||
if (zend_parse_parameters(argc TSRMLS_CC, "rs/a|ss",
|
||||
if (zend_parse_parameters(argc TSRMLS_CC, "rsa|ss",
|
||||
&pgsql_link, &table_name, &table_name_len, &pg_rows,
|
||||
&pg_delim, &pg_delim_len, &pg_null_as, &pg_null_as_len) == FAILURE) {
|
||||
return;
|
||||
|
@ -94,7 +94,7 @@ PHP_FUNCTION(stream_socket_client)
|
||||
|
||||
RETVAL_FALSE;
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zzd!lr", &host, &host_len, &zerrno, &zerrstr, &timeout, &flags, &zcontext) == FAILURE) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|zzdlr", &host, &host_len, &zerrno, &zerrstr, &timeout, &flags, &zcontext) == FAILURE) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user