# [RFC] Consolidate Coding Standards Policy Document

- Thread: https://externals.io/message/126133
- Original archive: https://news-web.php.net/php.internals/126133
- Started by Derick Rethans on 2024-12-18T16:37:40+00:00
- Messages: 5
- RFC: Consolidate Coding Standards Policy Document (Accepted) — https://externals.io/rfc/consolidate-coding-standard-policy-document.md
- RFC: Policy Repository (Accepted) — https://externals.io/rfc/policy-repository.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #126133 — Derick Rethans — 2024-12-18T16:37:40+00:00

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

Hi,

I would like to propose the "Consolidate Coding Standards Policy 
Document" RFC, which follows up from the Policy Repository RFC[1]'s 
future scope section.

This proposal suggests adopting the changes to the Coding Standards and 
Naming document, and to integrate the CODING_STANDARDS.md file from the 
php-src repository:

	https://wiki.php.net/rfc/consolidate-coding-standard-policy-document

cheers,
Derick

[1] https://wiki.php.net/rfc/policy-repository
-- 
https://derickrethans.nl | https://xdebug.org | https://dram.io

Author of Xdebug. Like it? Consider supporting me: https://xdebug.org/support

mastodon: @derickr@phpc.social @xdebug@phpc.social

---

## #126172 — Ben Ramsey — 2024-12-23T03:31:03+00:00

URL: https://externals.io/message/126133#126172 · In reply to: #126133

> Hi,
>
> I would like to propose the "Consolidate Coding Standards Policy
> Document" RFC, which follows up from the Policy Repository RFC[1]'s
> future scope section.
>
> This proposal suggests adopting the changes to the Coding Standards and
> Naming document, and to integrate the CODING_STANDARDS.md file from the
> php-src repository:
>
>
> https://wiki.php.net/rfc/consolidate-coding-standard-policy-document
>
> cheers,
> Derick
>
> [1] https://wiki.php.net/rfc/policy-repository
>


Nitpick:

It might be more correct to reference BCP 14[1] instead of RFC 2119 (which
is part of BCP 14).

Cheers,
Ben

[1] https://www.rfc-editor.org/info/bcp14

---

## #126173 — Derick Rethans — 2024-12-24T01:06:27+00:00

URL: https://externals.io/message/126133#126173 · In reply to: #126172

> 
> 
> > […]
> 
> Nitpick:
> 
> It might be more correct to reference BCP 14[1] instead of RFC 2119 
> (which is part of BCP 14).
> 
> [1] https://www.rfc-editor.org/info/bcp14

Either works really? I think that if I would feel inclined to update it, 
wouldn't I just mention RFC 8174, as it updates 2119?

Many (if not most) documents I have seen still reference to RFC 2119 
though...

cheers,
Derick

---

## #126174 — Ben Ramsey — 2024-12-24T19:11:27+00:00

URL: https://externals.io/message/126133#126174 · In reply to: #126173

> 
> 
> ﻿On Sun, 22 Dec 2024, Ben Ramsey wrote:
> 
> > […]
> 
> Either works really? I think that if I would feel inclined to update it,
> wouldn't I just mention RFC 8174, as it updates 2119?
> 
> Many (if not most) documents I have seen still reference to RFC 2119
> though...


The latest RFCs from the IETF standards track use language like this:

> The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.


See here for an example: https://www.rfc-editor.org/rfc/rfc9697.html#section-1.1

Cheers,
Ben

---

## #126208 — Derick Rethans — 2025-01-13T18:41:03+00:00

URL: https://externals.io/message/126133#126208 · In reply to: #126174

> > […]
> 
> 
> The latest RFCs from the IETF standards track use language like this:
> 
> > […]
> 
> See here for an example: 
> https://www.rfc-editor.org/rfc/rfc9697.html#section-1.1

Thanks for that. I've updated the document, and also the RFC, to mention 
BCP 14.

cheers,
Derick
