diff options
author | Thomas Punt <tpunt@hotmail.co.uk> | 2017-01-17 18:10:33 +0000 |
---|---|---|
committer | Joe Watkins <krakjoe@php.net> | 2017-01-18 05:05:53 +0000 |
commit | a22f1817362118945d082bf7ede160f9e3c0d883 (patch) | |
tree | 8b151923788234f8d612ff999d4cc284c3ac8b2f /ext/reflection/php_reflection.c | |
parent | e00c2f335c2fe8713fa578413f15f544c5412b50 (diff) | |
download | php-git-a22f1817362118945d082bf7ede160f9e3c0d883.tar.gz |
Fix ce comparison
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 2 |
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; |