Saturday 11 August 2018

php internals - What is the substitute for is_ref__gc in php7

In php5, zval struct has a member 'is_ref__gc'. We can use it as follow:



zval *x

...
...
if (!x->is_ref__gc)
{
printf("newx or newy isn't by ref");
return;
}


However, in php7, zval doesn't have such a member.
What is the substitute for is_ref__gc in php7? i.e. how does I modify the above code?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...