mbstring: Do functions marked “TODO Return void” require an RFC to change return type?
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.2k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
Hi,
In ext/mbstring/php_mbregex.c, I noticed several places with comments like:
// TODO Return void
RETURN_TRUE;
ext/mbstring/php_mbregex.c:1567
This suggests the intent is to change these functions to return void instead of bool.
Before preparing a patch, I wanted to confirm the process:
Would changing these functions from returning true to void (i.e., RETURN_NULL() in C and updating stubs to: void) require an RFC?
Or is this considered a minor/internal API cleanup that can go directly as a PR?
I’m aware that this could have a userland impact if the return value is currently used, so I wanted to check what the preferred approach is.
Happy to prepare a PR once the direction is clarified.
Thanks!
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne bei ext/mbstring/php_mbregex.c:1567 und prüfe die umgebenden TODO-Kommentare sowie die zugehörigen im Issue erwähnten Funktionsstubs. Ermittle, ob eine Änderung des Rückgabetyps die Userland-API betrifft und ein RFC erfordert; das Issue ist abgeschlossen, wenn der Projektprozess und der Umfang bestätigt sind, bevor ein Patch vorbereitet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c, php
- Bereich
- api
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100