Home
last modified time | relevance | path

Searched refs:closure (Results 1 – 25 of 71) sorted by path

123

/PHP-5.5/
H A DNEWS623 . Fixed bug #67068 (getClosure returns somethings that's not a closure).
1509 . Fixed bug #64979 (Wrong behavior of static variables in closure generators).
3166 . Added closure $this support back. (Stas)
3179 . Implemented closure rebinding as parameter to bindTo. (Gustavo Lopes)
4060 . Fixed bug #54367 (Use of closure causes problem in ArrayAccess). (Dmitry)
4993 - Fixed bug #52193 (converting closure to array yields empty array). (Felipe)
5011 - Fixed bug #52060 (Memory leak when passing a closure to method_exists()).
/PHP-5.5/Zend/tests/
H A D037.phpt6 namespace closure;
8 class closure { static $x = 1;}
11 var_dump(closure::$x);
H A Dbug52060.phpt2 Bug #52060 (Memory leak when passing a closure to method_exists())
6 $closure = function($a) { echo $a; };
8 var_dump(method_exists($closure, '__invoke')); // true
H A Dbug52193.phpt2 Bug #52193 (converting closure to array yields empty array)
H A Dbug54358.phpt12 $closure = function() use ($asserter, &$function) {
16 $closure();
20 $closure = function() use ($asserter, $function) {
24 $closure();
28 $closure = function() use ($asserter, $function) {
32 $closure();
H A Dbug54367.phpt2 Bug #54367 (Use of closure causes problem in ArrayAccess)
H A Dbug60909_1.phpt16 #0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8, Array)
H A Dbug61273.phpt14 Warning: Parameter 1 to {closure}() expected to be a reference, value given in %sbug61273.php on li…
H A Dbug61767.phpt22 #0 %sbug61767.php(%d): {closure}(%s, 'Undefined varia...', '%s', %d, Array)
H A Dbug62991.phpt2 Bug #62991 (Segfault with generator and closure)
8 $closure = function() use ( $array ) {
12 return $closure();
17 $closure = function() use ( $array ) {
21 return $closure; // if you return the $closure and call it outside this function it works.
H A Dbug64960.phpt16 // this must be a class, closure does not trigger segfault
36 #0 [internal function]: {closure}(8, 'ob_end_clean():...', '%s', 9, Array)
H A Dbug64966.phpt25 #0 [internal function]: {closure}(4096, 'Argument 1 pass...', '%s', 6, Array)
H A Dbug64979.phpt2 Bug #64979 (Wrong behavior of static variables in closure generators)
H A Dcallable_type_hint_001.phpt13 $closure = function () {};
19 foo($closure);
H A Dcallable_type_hint_002.phpt11 $closure = function (callable $arg) {};
19 $rc = new ReflectionFunction($closure);
H A Dclosure_006.phpt12 $closure = $getClosure (2);
13 $closure ();
H A Dclosure_007.phpt26 $closure = $getClosure();
28 $closure();
H A Dclosure_011.phpt2 Closure 011: Lexical copies not static in closure
H A Dclosure_020.phpt13 var_dump(is_a($this->a, 'closure'));
H A Dclosure_025.phpt2 Closure 025: Using closure in create_function()
H A Dclosure_026.phpt2 Closure 026: Assigning a closure object to an array in $this
H A Dclosure_027.phpt6 function test(closure $a) {
28 Warning: Missing argument 1 for {closure}(), called in %s on line %d and defined in %s on line %d
H A Dclosure_029.phpt6 var_dump(function() { } instanceof closure);
7 var_dump(function(&$x) { } instanceof closure);
8 var_dump(@function(&$x) use ($y, $z) { } instanceof closure);
H A Dclosure_032.phpt6 function test(closure $a) {
23 [function] => {closure}
32 #0 {closure}(23) called at [%s:%d]
39 [function] => {closure}
68 #0 {closure}(23) called at [%s:%d]
H A Dclosure_033.phpt2 Closure 033: Dynamic closure property and private function
26 Test::{closure}()

Completed in 55 milliseconds

123