8000 [VarDumper] Create a caster for GMP numbers · Issue #25222 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
8000

[VarDumper] Create a caster for GMP numbers #25222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nicolas-grekas opened this issue Nov 30, 2017 · 1 comment
Closed

[VarDumper] Create a caster for GMP numbers #25222

nicolas-grekas opened this issue Nov 30, 2017 · 1 comment

Comments

@nicolas-grekas
Copy link
Member
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.1

right not, dumping a GMP number it a bit terse:

dump(gmp_init('0'));
=> GMP {#217}

would be better to display the actual value.

@stof stof added this to the 4.1 milestone Nov 30, 2017
@nicolas-grekas nicolas-grekas changed the title [VarDumper] Create a caster for GPM numbers [VarDumper] Create a caster for GMP numbers Nov 30, 2017
@Simperfit
Copy link
Contributor

I'm doing it.

fabpot added a commit that referenced this issue Dec 1, 2017
…urces into string or integer (Simperfit)

This PR was merged into the 4.1-dev branch.

Discussion
----------

[VarDumper] add a GMP caster in order to cast GMP resources into string or integer

| Q             | A
| ------------- | ---
| Branch?       | 4.1
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #25222
| License       | MIT
| Doc PR        | todo

Do you want to dump that kind of resources ? Then it means that the app you are writing is doing some math... why?! :p

It quite nice the little snow that we have in the north of france right now:
![img_2844](https://user-images.githubusercontent.com/3451634/33472917-8b48913e-d674-11e7-923f-ad951f7f2966.JPG)

Commits
-------

ed2c1af [VarDumper] add a GMP caster in order to cast GMP resources into string or integer
@fabpot fabpot closed this as completed Dec 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
0