[php-src] PR #16129: reflection: Fix the return value of ReflectionFunction::{getNamespaceName,inNamespace}() for closures

From: Date: Mon, 30 Sep 2024 07:07:31 +0000
Subject: [php-src] PR #16129: reflection: Fix the return value of ReflectionFunction::{getNamespaceName,inNamespace}() for closures
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-28898@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16129 Author: TimWolla > The output is definitely bad, but closures don't have a namespace. Not sure what the > correct output would be. Given the (reasonable) assumption that namespacename + shortname = name, the only option is to return an empty namespace and return false when asking if the closure is inside of a namespace. ---------------- Fixes GH-16122

« previous php.git-pulls (#28898) next »