Fix the most obvious issues here.

There are other problems though
This commit is contained in:
Rasmus Lerdorf 2015-01-20 23:56:51 -08:00
parent f9664ce853
commit 41013ba597
2 changed files with 6 additions and 6 deletions

View 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;

View File

@ -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") {