]> granicus.if.org Git - php/commitdiff
Fix ce comparison
authorThomas Punt <tpunt@hotmail.co.uk>
Tue, 17 Jan 2017 18:10:33 +0000 (18:10 +0000)
committerJoe Watkins <krakjoe@php.net>
Wed, 18 Jan 2017 05:05:53 +0000 (05:05 +0000)
ext/reflection/php_reflection.c

index 3054da9d8c9ebb2a7e0a7df1f0cdf3cbbe9f8bd8..7d703262f14bc65e05ff76fb3714c945f9bf961a 100644 (file)
@@ -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;