Skip to content

Commit 16265a5

Browse files
committed
Use explicit type here
1 parent 81049cd commit 16265a5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sapi/fpm/fpm/fpm_php_trace.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ static int fpm_php_trace_dump(struct fpm_child_s *child, FILE *slowlog) /* {{{ *
131131
execute_data = prev = l;
132132

133133
while (prev) {
134+
zend_uchar *type;
134135

135136
if (0 > fpm_trace_get_long(prev + offsetof(zend_execute_data, func), &l)) {
136137
return -1;
@@ -142,12 +143,12 @@ static int fpm_php_trace_dump(struct fpm_child_s *child, FILE *slowlog) /* {{{ *
142143
break;
143144
}
144145

145-
if (0 > fpm_trace_get_long(function + offsetof(zend_function, type), &l)) {
146+
type = (zend_uchar *)&l;
147+
if (0 > fpm_trace_get_long(function + offsetof(zend_function, type), &l)) {
146148
return -1;
147149
}
148150

149-
/* zend_uchar? */
150-
if (ZEND_USER_CODE(l)) {
151+
if (ZEND_USER_CODE(*type)) {
151152
if (0 > fpm_trace_get_long(function + offsetof(zend_op_array, filename), &l)) {
152153
return -1;
153154
}

0 commit comments

Comments
 (0)