]> granicus.if.org Git - php/commitdiff
@ Fix a couple of warnings in the gd and ldap modules
authorRasmus Lerdorf <rasmus@php.net>
Wed, 24 May 2000 08:58:40 +0000 (08:58 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 24 May 2000 08:58:40 +0000 (08:58 +0000)
num_links is a long there

ext/gd/gd.c
ext/ldap/ldap.c

index 63686cc9ca5e9ef20caaba76b90c00960c14b934..48720e9bc2e39034fb501c4678755c67a83a18fc 100644 (file)
@@ -1894,7 +1894,7 @@ static
 void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode)
 {
        zval **IM, **PTSIZE, **ANGLE, **X, **Y, **C, **FONTNAME, **COL;
-       gdImagePtr im;
+       gdImagePtr im=NULL;
        int col, x, y, l=0, i;
        int brect[8];
        double ptsize, angle;
index b510e29a11394f24d997d1a6302c857f8d3fcd8f..4f1d11d3087971034eb3f973220d9473e0c23de4 100644 (file)
@@ -171,9 +171,9 @@ PHP_MINFO_FUNCTION(ldap)
 #endif
 
        if (LDAPG(max_links) == -1) {
-               snprintf(maxl, 31, "%d/unlimited", LDAPG(num_links) );
+               snprintf(maxl, 31, "%ld/unlimited", LDAPG(num_links) );
        } else {
-               snprintf(maxl, 31, "%d/%ld", LDAPG(num_links), LDAPG(max_links));
+               snprintf(maxl, 31, "%ld/%ld", LDAPG(num_links), LDAPG(max_links));
        }
        maxl[31] = 0;