ini setting zend.assertions should changeable PHP_INI_PERDIR without restriction
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C
- Sterne
- 40.4k
- Forks
- 8.1k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 96
Beschreibung
Description
Currently, if the ini setting zend.assertions is set to -1 in php.ini, it cannot be set to a different value in per-directory configuration file (PHP_INI_PERDIR) .user.ini or .htaccess (and vice versa).
I want to be able to change zend.assertions PHP_INI_PERDIR without restriction, for the following reasons:
- I have not always write access to
php.ini; - I don’t know the PHP_INI_PERDIR equivalent of
<?php if (ini_get('zend.assertions) !== '-1') ini_set('zend.assertions', '1'); ?>
in order to avoid an E_WARNING.
(Note that there is at least one other ini setting, namely short_open_tag, that also modify the result of compilation, but that is nevertheless changeable PHP_INI_PERDIR; from which I infer that my request is not unreasonable.)
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
Das Issue betrifft zend.assertions in php.ini sowie die Konfiguration in per-directory .user.ini oder .htaccess. Beginne damit nachzuverfolgen, wie diese Kontexte diese Einstellung handhaben. Als abgeschlossen gilt, wenn ein in einem Kontext gesetzter Wert in einen anderen geändert werden kann, ohne die aktuelle Einschränkung oder das daraus resultierende E_WARNING.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- c
- Bereich
- backend
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100