summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Punt <tpunt@hotmail.co.uk>2017-01-17 18:10:33 +0000
committerJoe Watkins <krakjoe@php.net>2017-01-18 05:05:53 +0000
commita22f1817362118945d082bf7ede160f9e3c0d883 (patch)
tree8b151923788234f8d612ff999d4cc284c3ac8b2f
parente00c2f335c2fe8713fa578413f15f544c5412b50 (diff)
downloadphp-git-a22f1817362118945d082bf7ede160f9e3c0d883.tar.gz
Fix ce comparison
-rw-r--r--ext/reflection/php_reflection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 3054da9d8c..7d703262f1 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -3975,7 +3975,7 @@ ZEND_METHOD(reflection_class, getStartLine)
return;
}
GET_REFLECTION_OBJECT_PTR(ce);
- if (ce->type == ZEND_USER_FUNCTION) {
+ if (ce->type == ZEND_USER_CLASS) {
RETURN_LONG(ce->info.user.line_start);
}
RETURN_FALSE;