PHP extensions
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- PHP
- Sterne
- 2
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Currently, we compile with the following extensions enabled:
- Core
- bcmath
- ctype
- date
- fileinfo
- filter
- hash
- iconv
- json
- openssl
- pcre
- Phar
- posix
- Reflection
- session
- SPL
- standard
- tokenizer
Looking at https://bref.sh/docs/environment/php.html#extensions-installed-and-enabled and from scanning through use cases, the following could be interesting:
- gd, exif - image processing
- mbstring - prerequisite for exif anyways
- sodium - for crypto
zlib - if we want to create ZIP files, HTTP compression- see https://github.com/xp-forge/lambda/issues/8#issuecomment-1184378957- sqlite3 - for temporary data storage
libxml, dom, xml, xmlreader, xmlwriter - for processing XML and HTML- see #11
The following extensions don't seem to make sense for an AWS lambda enviromment:
- pcntl - for parallelization, you would most probably just invoke other lambdas and/or use a message queue
- readline - this is for humans sitting in front of a terminal, not for the serverside
- curl, ftp, mysqli / mysqlnd - the XP Framework has it's own protocol implementations
- sockets - the standard socket library works just as well for (most - or almost all?) cases
- opcache - we leave our code running after compiling once, caching doesn't improve this any more
SimpleXML - covered by XP Framework's XML APIs- used by AWS SDK, see https://github.com/xp-forge/lambda/issues/8#issuecomment-966497081
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
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 mit Brefs Dokumentation zu PHP-Erweiterungen und den verlinkten Issue-Kommentaren. Vergleiche anschließend die aktuelle kompilierte Liste mit den vorgeschlagenen Kandidaten gd, exif, mbstring, sodium und sqlite3. Bestätige die für die Anwendungsfälle des Repositorys erforderliche Erweiterungsmenge, aktualisiere die Erweiterungskonfiguration und überprüfe, dass der Lambda-Build mit der vereinbarten Liste erfolgreich kompiliert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, php
- Bereich
- backend, cloud
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100