]> granicus.if.org Git - php/commitdiff
- Fixed some wrong format parameters
authorFelipe Pena <felipe@php.net>
Mon, 8 Sep 2008 01:30:55 +0000 (01:30 +0000)
committerFelipe Pena <felipe@php.net>
Mon, 8 Sep 2008 01:30:55 +0000 (01:30 +0000)
ext/pgsql/pgsql.c
ext/standard/file.c
ext/standard/streamsfuncs.c

index 82855ca1d1f092a56630df21500945528044e156..c59e31c686e8cfe1cd9097ed6937e9340bab56b6 100644 (file)
@@ -2213,7 +2213,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;
        }
 
@@ -3950,7 +3950,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;
index 9e4d992b83a93a9512a8df38b953bc23e65cc808..7340d65da21427840fc5bd306e6087b06959c713 100644 (file)
@@ -2132,7 +2132,7 @@ PHP_FUNCTION(fgetcsv)
        zval *zstream;
        zend_uchar delimiter_free = 0, enclosure_free = 0, escape_free = 0;
 
-       if (zend_parse_parameters(argc TSRMLS_CC, "r|l!ttt", &zstream, &len,
+       if (zend_parse_parameters(argc TSRMLS_CC, "r|lttt", &zstream, &len,
                                                &delimiter, &delimiter_len, &delimiter_type,
                                                &enclosure, &enclosure_len, &enclosure_type,
                                                &escape,    &escape_len,    &escape_type) == FAILURE) {
index 2e580f83e52cb351165d6379698ab055548750a4..71857dffcf8e8b39727cb230190f8ef86c62e642 100644 (file)
@@ -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;
        }