Fix ce comparison

This commit is contained in:
Thomas Punt 2017-01-17 18:10:33 +00:00 committed by Joe Watkins
parent e00c2f335c
commit a22f181736
No known key found for this signature in database
GPG key ID: F9BA0ADA31CBD89E

View 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;