Req #49176 [Com]: Add optional namespace parameter to get_declared_classes()

From: Date: Tue, 18 Feb 2020 05:58:41 +0000
Subject: Req #49176 [Com]: Add optional namespace parameter to get_declared_classes()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-225607@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=49176&edit=1 ID: 49176 Comment by: carusogabriel@php.net Reported by: robert dot de dot wilde at online dot nl Summary: Add optional namespace parameter to get_declared_classes() Status: Open Type: Feature/Change Request Package: Scripting Engine problem Operating System: * PHP Version: * Block user comment: N Private report: N New Comment: Related to Request #42360. Previous Comments: ------------------------------------------------------------------------ [2009-08-06 11:23:16] robert dot de dot wilde at online dot nl Description: ------------ It would be nice to have an additional argument (string, defaults to '\') to 'get_declared_classes' to only return the classes inside a certain namespace. An second argument (bool, defaults to false) could be optional to ask if resolution should be recursive to subnamespaces. Reproduce code: --------------- Would be something defined as being: get_declared_namespaces( String $sNamespace = '\', Bool $bRecursive = false); Expected result: ---------------- List of classes in namespace. Actual result: -------------- List of all classes. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=49176&edit=1

« previous php.bugs (#225607) next »