From a22f1817362118945d082bf7ede160f9e3c0d883 Mon Sep 17 00:00:00 2001 From: Thomas Punt Date: Tue, 17 Jan 2017 18:10:33 +0000 Subject: [PATCH] Fix ce comparison --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.49.0