Closed sgolemon closed 6 years ago
These both have a null pointer deref waiting to happen and are coincidentally more complex than they need to be.
zval_get_string() will incref any IS_STRING zval, or copy/convert any non-string zval.
zend_string_release() will then decref or free as appropriate.
These both have a null pointer deref waiting to happen and are coincidentally more complex than they need to be.
zval_get_string() will incref any IS_STRING zval, or copy/convert any non-string zval.
zend_string_release() will then decref or free as appropriate.