Annotation of embedaddon/php/Zend/tests/closure_031.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Closure 031: Closure properties with custom error handlers
                      3: --FILE--
                      4: <?php
                      5: function foo($errno, $errstr, $errfile, $errline) {
                      6:        echo "Error: $errstr\n";
                      7: }
                      8: set_error_handler('foo');
                      9: $foo = function() {
                     10: };
                     11: var_dump($foo->a);
                     12: ?>
                     13: --EXPECT--
                     14: Error: Closure object cannot have properties
                     15: NULL
                     16: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>