diff options
-rw-r--r-- | README.EXT_SKEL | 8 | ||||
-rwxr-xr-x | ext/skeleton/create_stubs | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/README.EXT_SKEL b/README.EXT_SKEL index 42df006d24..fdf7ad0e90 100644 --- a/README.EXT_SKEL +++ b/README.EXT_SKEL @@ -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; diff --git a/ext/skeleton/create_stubs b/ext/skeleton/create_stubs index f9f39b1795..1163908110 100755 --- a/ext/skeleton/create_stubs +++ b/ext/skeleton/create_stubs @@ -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") { |