Zend: mark zend_free_internal_arg_info() static#20688
Zend: mark zend_free_internal_arg_info() static#20688Girgias wants to merge 1 commit intophp:masterfrom
Conversation
Previously it was by the disable_classes INI, as this no longer exists there is no need to expose it.
TimWolla
left a comment
There was a problem hiding this comment.
Isn't even marked ZEND_API, so makes sense and probably doesn't even need an UPGRADING.INTERNALS note.
|
@arnaud-lb seems you exposed this as a ZEND_API for PDO, can you give some more insights into why this is needed? |
|
@Girgias yes it's ZEND_API since 626f3c3. It's needed to free the arg_info of temporary temporary internal methods, like the ones added by PDO: Line 1324 in 626f3c3 The reason it wasn't needed before 626f3c3, is that arg_info was in static storage. This may be useful outside of PDO, if some other extensions declare temporary internal methods. If we don't want to support this, we could un-export An alternative to exposing zend_free_internal_arg_info() would be to provide a variant of zend_function_dtor() suitable for cls_method_dtor() / cls_method_pdtor(). |
Right, I think un-exporting this when we remove the deprecated PDO methods makes the most sense, as I think that practice is quite weird :) |
Previously it was used by the disable_classes INI, as this no longer exists there is no need to expose it.