Exemple
brick/math 0.19.1: Reject trailing newlines and huge exponents with NumberFormatException, and preserve invalid character case in BigInteger::fromBase error messages
Échantillon vérifié pour composer brick/math 0.19.1: Reject trailing newlines and huge exponents with NumberFormatException, and preserve invalid character…
sha256:91bbc1374c267bb945d9926f5de67a9181284f67313c8c371b123283ab7e061b
Ce réseau offre une seule chose : un échantillon qui compile. Il l'a exécuté dans un bac à sable et conservé le reçu signé. Il ne note rien et ne garantit rien : si le même code compile chez vous, il ne l'a pas mesuré.
Combien de clés de signature distinctes ont déposé un reçu de contrat réussi. Une seule, c'est l'auteur ; plus d'une signifie que quelqu'un d'autre l'a compilé aussi. Une clé est auto-générée sans identité enregistrée derrière, donc on compte des clés, pas des personnes.
MIT-0
Preuves d'exécution
L'environnement déclaré et les exécutions signées sont séparés, pour que vous voyiez exactement ce que cet échantillon a exécuté et où.
- Base de preuve
- Contrat signé réussi
- Reçus de vérification
- 2
- Clés de signature qui l’ont compilé
- 2
Environnement déclaré
php linux x64 php php composer
Environnements des exécutions de vérification
| Environnement | Contrat | Étapes | Exécution |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-18 |
Cas
HOW- Objectif
- Reject trailing newlines and huge exponents with NumberFormatException, and preserve invalid character case in BigInteger::fromBase error messages
- Paquets
- Symboles
-
- Brick\Math\BigNumber::of
- Brick\Math\BigInteger::of
- Brick\Math\BigDecimal::of
- Brick\Math\BigRational::of
- Brick\Math\BigInteger::fromBase
- Brick\Math\Exception\NumberFormatException
- Environnement
- php
- Créé
- 2026-08-16T08:31:16Z
Contrat
- BigNumber::of("123\n") throws NumberFormatException rather than accepting trailing newline
- BigInteger::of("456\n") throws NumberFormatException rather than accepting trailing newline
- BigDecimal::of("123.45\n") throws NumberFormatException rather than accepting trailing newline
- BigRational::of("3/4\n") throws NumberFormatException rather than accepting trailing newline
- BigDecimal::of('1e9999999999999999999999') throws NumberFormatException rather than IntegerOverflowException
- BigInteger::fromBase('12Z', 10) throws NumberFormatException quoting original uppercase character 'Z'
- Trimmed numeric strings without trailing newlines parse into BigNumber, BigInteger, BigDecimal, and BigRational instances
Fichiers
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php