summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2017-01-18 05:06:59 +0000
committerJoe Watkins <krakjoe@php.net>2017-01-18 05:06:59 +0000
commit7c17936c7014abfdf2d2c7c7cabac07eec8b4b4b (patch)
tree9422bc886517d30a318472e1519966800ee7a2c9 /ext/reflection/php_reflection.c
parentcc91b01dca51ff0cdc93ad23c90f7cbf0746406e (diff)
parent43612e9593c43c904b9403e00f8a254d8d76e338 (diff)
downloadphp-git-7c17936c7014abfdf2d2c7c7cabac07eec8b4b4b.tar.gz
Merge branch 'PHP-7.1'
* PHP-7.1: Fix ce comparison
Diffstat (limited to 'ext/reflection/php_reflection.c')
-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 9c465d78d4..b0fad2a40a 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -4034,7 +4034,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;