Req #52575 [Opn->Wfx]: Would like get_called_class() without namespace.

From: Date: Sat, 11 Mar 2017 18:00:59 +0000
Subject: Req #52575 [Opn->Wfx]: Would like get_called_class() without namespace.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207787@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52575&edit=1 ID: 52575 Updated by: nikic@php.net Reported by: atrauzzi at gmail dot com Summary: Would like get_called_class() without namespace. -Status: Open +Status: Wont fix Type: Feature/Change Request Package: Reflection related Operating System: Ubuntu 10.04 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: Marking as Won't Fix as I don't see reason to implement such an option on a specific function: many places in PHP return class names, and we certainly do not want to add boolean flags everywhere. Please stick with the string manipulation, it's just one line of code. Previous Comments: ------------------------------------------------------------------------ [2010-08-10 17:11:30] atrauzzi at gmail dot com Description: ------------ It might be nice to have an optional boolean added to this and similar functions so that class names can be returned without the namespace prefixed on it. This could help to save on string manipulation code as well as repeated calls to the function to perform the manipulation. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=52575&edit=1

« previous php.bugs (#207787) next »