]> granicus.if.org Git - php/commitdiff
format string fix and number of arguments
authorMarcus Boerger <helly@php.net>
Thu, 28 Aug 2003 23:04:27 +0000 (23:04 +0000)
committerMarcus Boerger <helly@php.net>
Thu, 28 Aug 2003 23:04:27 +0000 (23:04 +0000)
ext/pgsql/pgsql.c

index 87940a8ee39fe36d3cb1017a0f024322eb506786..f96abae70a9df71287db50ed3d6a3b49c91ec541 100644 (file)
@@ -576,12 +576,12 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                        
                        if (PGG(max_links)!=-1 && PGG(num_links)>=PGG(max_links)) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING,
-                                                                "Cannot create new link. Too many open links (%d)", PGG(num_links));
+                                                                "Cannot create new link. Too many open links (%ld)", PGG(num_links));
                                goto err;
                        }
                        if (PGG(max_persistent)!=-1 && PGG(num_persistent)>=PGG(max_persistent)) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING,
-                                                                "Cannot create new link. Too many open persistent links (%d)", PGG(num_persistent));
+                                                                "Cannot create new link. Too many open persistent links (%ld)", PGG(num_persistent));
                                goto err;
                        }
 
@@ -678,7 +678,7 @@ static void php_pgsql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
                        }
                }
                if (PGG(max_links)!=-1 && PGG(num_links)>=PGG(max_links)) {
-                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create new link. Too many open links (%d)", PGG(num_links));
+                       php_error_docref(NULL TSRMLS_CC, E_WARNING, "Cannot create new link. Too many open links (%ld)", PGG(num_links));
                        goto err;
                }
                if (connstring) {
@@ -2312,7 +2312,7 @@ PHP_FUNCTION(pg_lo_export)
        }
        else if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, argc TSRMLS_CC,
                                                                          "lsr", &oid_long, &file_out, &name_len, &pgsql_link) == SUCCESS) {
-               php_error_docref(NULL TSRMLS_CC, E_NOTICE, " %s(): Old API is used");
+               php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Old API is used");
                if (oid_long <= InvalidOid) {
                        php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Invalid OID specified");
                        RETURN_FALSE;