[DOC-CVS] [doc-en] master: ext/reflection: Document ReflectionProperty::getMangledName() (PHP 8.5) (#5693)

[email protected] (Louis-Arnaud via GitHub) Wed, 22 Jul 2026 20:18:11 +0000
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Louis-Arnaud (lacatoire)
Committer: GitHub (web-flow)
Pusher: jordikroon
Date: 2026-07-22T22:18:08+02:00

Commit: https://github.com/php/doc-en/commit/844a420240e6944d391d6ae022af239c4961ed04
Raw diff: https://github.com/php/doc-en/commit/844a420240e6944d391d6ae022af239c4961ed04.diff

ext/reflection: Document ReflectionProperty::getMangledName() (PHP 8.5) (#5693)

Changed paths:
  A  reference/reflection/reflectionproperty/getmangledname.xml


Diff:

diff --git a/reference/reflection/reflectionproperty/getmangledname.xml b/reference/reflection/reflectionproperty/getmangledname.xml
new file mode 100644
index 000000000000..baf664662d34
--- /dev/null
+++ b/reference/reflection/reflectionproperty/getmangledname.xml
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<refentry xml:id="reflectionproperty.getmangledname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+  <refname>ReflectionProperty::getMangledName</refname>
+  <refpurpose>Gets the mangled name of the property</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis role="ReflectionProperty">
+   <modifier>public</modifier> <type>string</type><methodname>ReflectionProperty::getMangledName</methodname>
+   <void/>
+  </methodsynopsis>
+  <simpara>
+   Returns the mangled (internal) name of the property, which encodes the
+   visibility scope for private and protected properties.
+  </simpara>
+  <simpara>
+   For public properties, the mangled name is identical to the property name.
+   For protected properties, the mangled name has the form
+   <literal>\0*\0<replaceable>name</replaceable></literal>.
+   For private properties, the mangled name has the form
+   <literal>\0<replaceable>ClassName</replaceable>\0<replaceable>name</replaceable></literal>.
+  </simpara>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  &no.function.parameters;
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <simpara>
+   The mangled name of the reflected property.
+  </simpara>
+ </refsect1>
+
+ <refsect1 role="changelog">
+  &reftitle.changelog;
+  <informaltable>
+   <tgroup cols="2">
+    <thead>
+     <row>
+      <entry>&Version;</entry>
+      <entry>&Description;</entry>
+     </row>
+    </thead>
+    <tbody>
+     <row>
+      <entry>8.5.0</entry>
+      <entry>
+       This method was introduced.
+      </entry>
+     </row>
+    </tbody>
+   </tgroup>
+  </informaltable>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <simplelist>
+   <member><methodname>ReflectionProperty::getName</methodname></member>
+  </simplelist>
+ </refsect1>
+
+</refentry>
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->