Torrey Tsui
Torrey Tsui
When the `$kuernel->shutdown()` is called, the handler object could still be referenced or the garbage collector simply has not triggered perhaps. In this situation, the `__destruct` is not getting called....
Just dug a bit and found that Doctrine had the same issue with the database connection resources. They seem to have handled it in the bundle shutdown https://github.com/doctrine/DoctrineBundle/blob/132e3c14bfafc7ffaf9e3781c0ed87df609562cf/DoctrineBundle.php#L127-L138 Not sure...
More details on the Doctrine's issue thread. https://github.com/doctrine/DoctrineBundle/pull/366#issuecomment-69341472 The reasoning on the approach does make sense to me. What do you think?
It seems that it always try to connect to the DB to refresh the state as @tomfankhaenel and https://github.com/cyrilgdn/terraform-provider-postgresql/issues/268 detailed **Workaround**: Use [`-target`](https://developer.hashicorp.com/terraform/cli/commands/plan#target-address) Example below (copied from @alert101-gof in previous...
For now, I worked around it with a if-condition. ```liquid {% assign display_price = false %} {%- if display_price == false %} false {%- else %} true {%- endif %}...