Skip to content

add value field#29

Closed
dhopkalo wants to merge 1 commit into
BitOne:masterfrom
dhopkalo:value_field
Closed

add value field#29
dhopkalo wants to merge 1 commit into
BitOne:masterfrom
dhopkalo:value_field

Conversation

@dhopkalo
Copy link
Copy Markdown
Contributor

No description provided.

@dhopkalo dhopkalo mentioned this pull request Sep 24, 2016
@BitOne
Copy link
Copy Markdown
Owner

BitOne commented Nov 7, 2016

Hey @drefixs , I like the idea!

Can you rebase your commit on master, so we won't see the diff from the memory leaks fix here ?

Thanks a lot !

Comment thread extension/meminfo.c
php_stream_printf(stream TSRMLS_CC, " \"type\" : \"%s\",\n", zend_get_type_by_const(Z_TYPE_P(zv)));
php_stream_printf(stream TSRMLS_CC, " \"size\" : \"%ld\",\n", meminfo_get_element_size(zv));

php_json_encode(&buf, zv, (int)0);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm afraid this only works if the JSON extension is loaded, which is not guaranteed.

@BitOne
Copy link
Copy Markdown
Owner

BitOne commented Nov 7, 2016

@drefixs : Could you please provide an option or parameter so users that want to display value can provide this parameter. I'm afraid that displaying value by default will make the file far less easier to read.
But the feature is nice, and certainly useful.

@BitOne BitOne force-pushed the master branch 25 times, most recently from 5e00cf6 to 4d0010a Compare November 16, 2017 14:23
@BitOne BitOne force-pushed the master branch 7 times, most recently from 9a97514 to 0e4f884 Compare November 16, 2017 14:51
@BitOne BitOne closed this Nov 17, 2017
@BitOne
Copy link
Copy Markdown
Owner

BitOne commented Nov 17, 2017

Closed because the code changed too much since this PR was opened. But I keep the idea from #31 opened and will implemented latter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants