Is there any way to get the refcount value reported by debug_zval_dump without all the additional information returned by that function; e.g. by an alternative function or some truncation of its output? I am using the refcount as per the suggested solution to the problem Detecting whether a PHP variable is a reference / referenced. As such, all I require is the reference count. The structure I am examining is huge so (a) getting the entire structure seems like overkill and (b) I believe I've seen cases where the size has caused problems and bypassing the output buffer (NB: No chunk_size had been set for the ob_start).
Asked
Active
Viewed 432 times
3
-
There's no way without a third party extension. What exactly do you want to do with the `refcount`? – netcoder Jun 17 '11 at 13:37
-
@netcoder - I want to solve the problem in the question to which I linked. I'm hitting issues with large data structures. – borrible Jun 17 '11 at 13:53
-
[This question](http://stackoverflow.com/questions/4110973/compare-php-arrays-using-memory-references) may interest you. – netcoder Jun 17 '11 at 14:08