# Patch for get_class()

- Thread: https://externals.io/message/906
- Original archive: https://news-web.php.net/php.internals/906
- Started by Timm Friebe on 2003-04-14T16:27:17+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #906 — Timm Friebe — 2003-04-14T16:27:17+00:00

URL: https://externals.io/message/906#906

This patch adds an optional parameter to get_class to retreive it's
fully qualified class name (including the namespace, if existant). This
solves an issue with get_class and a constellation such as:

namespace Foo {
  class Bar { }
}

namespace Baz {
  class Bar { }
}

- Timm

---

## #909 — Timm Friebe — 2003-04-14T16:41:03+00:00

URL: https://externals.io/message/906#909 · In reply to: #906

[...Patch...]

Well, OK, this one might be a bit better, ZEND_WRONG_PARAM_COUNT() is
not necessary as zend_get_parameters_ex already warns about type
mismatches.

- Timm
