Add parameter user_only to get_declared_classes(interfaces/traits)

From: Date: Fri, 22 Jun 2012 16:25:46 +0000
Subject: Add parameter user_only to get_declared_classes(interfaces/traits)
Groups: php.internals 
Request: Send a blank email to internals+get-60938@lists.php.net to get a copy of this message
Hi internalers: there comes a FR, #62343 https://bugs.php.net/bug.php?id=62343 the bug self is about class alias, but it also metioned a new parameter $user_only to get_declared_classes. the FR makes sense to me, for now, get_defined_functions 's return will points which functions are internal, and which is user defined. but get_declared_classes etc doesn't. so I made a patch https://bugs.php.net/patch-display.php?bug_id=62343&patch=bug62343.phpt&revision=latest yes, the patch have some room for improving, like promote the condition (ce->type == ZEND_USER_CLASS) out of the iterating :) for now, I just what to see what do you think about this idea? :) (hope I made my point clear) thanks -- Laruence  Xinchen Hui http://www.laruence.com/

« previous php.internals (#60938) next »