[DOC-CVS] [doc-en] master: Use correct value for PECL DS `MIN_CAPACITY` constants (#5082)
[email protected] (Léon Melis via GitHub)
| Newsgroups | php.doc.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Léon Melis (LeonMelis)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2026-01-09T13:07:47Z
Commit: https://github.com/php/doc-en/commit/94b069b1154e462a3625cd5a262e8883a44be22a
Raw diff: https://github.com/php/doc-en/commit/94b069b1154e462a3625cd5a262e8883a44be22a.diff
Use correct value for PECL DS `MIN_CAPACITY` constants (#5082)
* Update \Ds\Map::MIN_CAPACITY to reflect actual value
The MIN_CAPACITY was changed in PECL DS library from 16 to 8 in July 2017.
See: https://github.com/php-ds/ext-ds/commit/9904fca6b328c4a0e45b32ec329fca0f973c1d46
* Update \Ds\Set::MIN_CAPACITY to reflect actual value
Update \Ds\Set::MIN_CAPACITY to reflect actual value
The MIN_CAPACITY was changed in PECL DS library from 16 to 8 in July 2017.
See: php-ds/ext-ds@9904fca
* Update \Ds\Vector::MIN_CAPACITY to reflect actual value
Update \Ds\Vector::MIN_CAPACITY to reflect actual value
The MIN_CAPACITY was changed in PECL DS library from 16 to 8 in July 2017.
See: php-ds/ext-ds@9904fca
* Add change of Vector::MIN_CAPACITY to changelog
* Add change of Set::MIN_CAPACITY to changelog
* Add change of Map::MIN_CAPACITY to changelog
Changed paths:
M reference/ds/ds.map.xml
M reference/ds/ds.set.xml
M reference/ds/ds.vector.xml
Diff:
diff --git a/reference/ds/ds.map.xml b/reference/ds/ds.map.xml
index e55830b59c3b..0079ed800748 100644
--- a/reference/ds/ds.map.xml
+++ b/reference/ds/ds.map.xml
@@ -69,7 +69,7 @@
<modifier>const</modifier>
<type>int</type>
<varname linkend="ds-map.constants.min-capacity">Ds\Map::MIN_CAPACITY</varname>
- <initializer>16</initializer>
+ <initializer>8</initializer>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
@@ -113,6 +113,12 @@
The class now implements <classname>ArrayAccess</classname>.
</entry>
</row>
+ <row>
+ <entry>PECL ds 1.2.0</entry>
+ <entry>
+ <constant>Ds\Map::MIN_CAPACITY</constant> changed from 16 to 8.
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>
diff --git a/reference/ds/ds.set.xml b/reference/ds/ds.set.xml
index abe82685caae..70ccf2d01f85 100644
--- a/reference/ds/ds.set.xml
+++ b/reference/ds/ds.set.xml
@@ -82,7 +82,7 @@
<modifier>const</modifier>
<type>int</type>
<varname linkend="ds-set.constants.min-capacity">Ds\Set::MIN_CAPACITY</varname>
- <initializer>16</initializer>
+ <initializer>8</initializer>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
@@ -132,6 +132,12 @@
Added the <methodname>Ds\Set::map</methodname> method.
</entry>
</row>
+ <row>
+ <entry>PECL ds 1.2.0</entry>
+ <entry>
+ <constant>Ds\Set::MIN_CAPACITY</constant> changed from 16 to 8.
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>
diff --git a/reference/ds/ds.vector.xml b/reference/ds/ds.vector.xml
index 0c2c2730d477..efd2b0c2b037 100644
--- a/reference/ds/ds.vector.xml
+++ b/reference/ds/ds.vector.xml
@@ -76,7 +76,7 @@
<modifier>const</modifier>
<type>int</type>
<varname linkend="ds-vector.constants.min-capacity">Ds\Vector::MIN_CAPACITY</varname>
- <initializer>10</initializer>
+ <initializer>8</initializer>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
@@ -122,6 +122,12 @@
The class now implements <classname>ArrayAccess</classname>.
</entry>
</row>
+ <row>
+ <entry>PECL ds 1.2.0</entry>
+ <entry>
+ <constant>Ds\Vector::MIN_CAPACITY</constant> changed from 10 to 8.
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>