mirror of
https://github.com/php/php-src.git
synced 2025-01-19 02:03:47 +08:00
Fix the most obvious issues here.
There are other problems though
This commit is contained in:
parent
f9664ce853
commit
41013ba597
@ -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;
|
||||
|
||||
|
@ -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") {
|
||||
|
Loading…
Reference in New Issue
Block a user