sebastianbergmann/phpunit — Issue #451: Serialization of 'Closure' is not allowed
Author: willmot
Created: 2012-01-02 17:46:22+00:00
State: open

Although $GLOBAL Closures are no longer serialised since 01aa34783c9b19d39e568641f3f2dd0fc983b11a & #352 $GLOBAL arrays which contain a Closure as a value still cause the "Serialization of 'Closure' is not allowed" error.

```
$GLOBALS[] = array( 'foo' => function( return 'bar' ) );
```