Are PHP Closure Objects eligible for garbage collection

前端 未结 2 704
忘掉有多难
忘掉有多难 2021-01-06 11:19

I was wondering if anyone knows if PHP\'s anonymous functions are eligible for garbage collection?

I know that functions created with create_function a

2条回答
  •  抹茶落季
    2021-01-06 12:05

    You can see by xdebug_debug_zval( 'a' ); if xdebug is installed. http://www.php.net/manual/en/features.gc.refcounting-basics.php

提交回复
热议问题