com php-src: Fix ce comparison: ext/reflection/php_reflection .c

From: Date: Wed, 18 Jan 2017 05:05:53 +0000
Subject: com php-src: Fix ce comparison: ext/reflection/php_reflection .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96780@lists.php.net to get a copy of this message
Commit: a22f1817362118945d082bf7ede160f9e3c0d883 Author: Thomas Punt <tpunt@hotmail.co.uk> Tue, 17 Jan 2017 18:10:33 +0000 Committer: Joe Watkins <krakjoe@php.net> Wed, 18 Jan 2017 05:05:53 +0000 Parents: e00c2f335c2fe8713fa578413f15f544c5412b50 Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a22f1817362118945d082bf7ede160f9e3c0d883 Log: Fix ce comparison Changed paths: M ext/reflection/php_reflection.c Diff: diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 3054da9..7d70326 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;

« previous php.cvs (#96780) next »