]> granicus.if.org Git - php/commitdiff
Fix the most obvious issues here.
authorRasmus Lerdorf <rasmus@lerdorf.com>
Wed, 21 Jan 2015 07:56:51 +0000 (23:56 -0800)
committerRasmus Lerdorf <rasmus@lerdorf.com>
Wed, 21 Jan 2015 07:56:51 +0000 (23:56 -0800)
There are other problems though

README.EXT_SKEL
ext/skeleton/create_stubs

index 42df006d24b4e8f91104b950daa93cfb0d52062d..fdf7ad0e908c6783d087d04771a61e5995fcf540 100644 (file)
@@ -164,11 +164,11 @@ PHP_FUNCTION(module_name_drawtext)
     char *text = NULL;
     int argc = ZEND_NUM_ARGS();
     int image_id = -1;
-    int text_len;
+    size_t text_len;
     int font_id = -1;
-    long x;
-    long y;
-    long color;
+    zend_long x;
+    zend_long y;
+    zend_long color;
     zval *image = NULL;
     zval *font = NULL;
 
index f9f39b1795f7e18e4c822bb840ea42295f646938..1163908110362df2554f6b9cf2890ef72a444afd 100755 (executable)
@@ -19,14 +19,14 @@ function convert(i, j, t)
        for (i = 0; i < t; i++) { tabs = tabs "\t" }
 
        if (type == "int" || type == "long") {
-               longs = longs "\tlong " name ";\n"
+               longs = longs "\tzend_long " name ";\n"
        } else if (type == "bool" || type == "boolean") {
                bools = bools "\tzend_bool " name ";\n"
        } else if (type == "double" || type == "float") {
                doubles = doubles "\tdouble " name ";\n"
        } else if (type == "string") {
                strings = strings "\tchar *" name " = NULL;\n"
-               ints = ints "\tint " name "_len;\n"
+               ints = ints "\tsize_t " name "_len;\n"
        } else if (type == "array" || type == "object" || type == "mixed") {
                zvals = zvals "\tzval *" name " = NULL;\n"
        } else if (type == "resource" || type == "handle") {