Where do I submit a feature request?
| From: | B w | Date: | Tue, 28 Sep 2021 13:18:33 +0000 |
| Subject: | Where do I submit a feature request? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-327740@lists.php.net to get a copy of this message | ||
Hi there,
I was wondering if there was any place to submit a feature request? I have been looking around but I
couldnt find any spot to do so. I have no knowledge of C so a direct PR won’t be an option.
The feature request is straightforward: implement a syntax so a parent class can retrieve the
directory of the child class, .e.g.
static::__DIR__ or similar syntax. Currently, when
using __DIR__ in a parent class, it will always refer to the parent class itself. The only way to
get the child class directory is to use reflection like dirname((new
ReflectionClass(static::class))->getFileName()).
Kind regards,
F