Home
last modified time | relevance | path

Searched refs:n (Results 451 – 475 of 9207) sorted by path

1...<<11121314151617181920>>...369

/PHP-7.4/Zend/tests/
H A Dclosure_026.phpt22 print "--------------\n";
H A Dclosure_027.phpt19 echo "Exception: " . $e->getMessage() . "\n";
H A Dclosure_028.phpt10 print "ok\n";
H A Dclosure_031.phpt6 echo "Error: $errstr\n";
14 echo "Error: {$ex->getMessage()}\n";
H A Dclosure_033.phpt10 echo __METHOD__ . "()\n";
14 echo __METHOD__ . "()\n";
H A Dclosure_037.phpt18 echo $this->x."\n";
22 echo "42\n";
28 echo "forty two\n";
H A Dclosure_038.phpt31 echo "Testing with scope given as object", "\n";
38 echo "Testing with scope as string", "\n";
H A Dclosure_039.phpt31 echo "Testing with scope given as object", "\n";
38 echo "Testing with scope as string", "\n";
H A Dclosure_041.phpt41 echo "Before binding", "\n";
42 $staticUnscoped(); echo "\n";
43 $nonstaticUnscoped(); echo "\n";
44 $staticScoped(); echo "\n";
45 $nonstaticScoped(); echo "\n";
47 echo "After binding, no instance", "\n";
48 $d = $staticUnscoped->bindTo(null); $d(); echo "\n";
50 $d = $staticScoped->bindTo(null); $d(); echo "\n";
51 $d = $nonstaticScoped->bindTo(null); $d(); echo "\n";
59 $d = $nonstaticScoped->bindTo(new A); $d(); echo "\n";
[all …]
H A Dclosure_042.phpt18 echo "Done.\n";
H A Dclosure_043.phpt20 echo "Before binding", "\n";
21 $staticUnscoped(); echo "\n";
22 $staticScoped(); echo "\n";
24 echo "After binding, null scope, no instance", "\n";
25 $d = $staticUnscoped->bindTo(null, null); $d(); echo "\n";
26 $d = $staticScoped->bindTo(null, null); $d(); echo "\n";
28 echo "After binding, null scope, with instance", "\n";
32 echo "After binding, with scope, no instance", "\n";
34 $d = $staticScoped->bindTo(null, 'A'); $d(); echo "\n";
36 echo "After binding, with scope, with instance", "\n";
[all …]
H A Dclosure_044.phpt20 echo "Before binding", "\n";
21 $nonstaticUnscoped(); echo "\n";
22 $nonstaticScoped(); echo "\n";
24 echo "After binding, null scope, no instance", "\n";
25 $d = $nonstaticUnscoped->bindTo(null, null); $d(); echo "\n";
26 $d = $nonstaticScoped->bindTo(null, null); $d(); echo "\n";
28 echo "After binding, null scope, with instance", "\n";
32 echo "After binding, with scope, no instance", "\n";
34 $d = $nonstaticScoped->bindTo(null, 'A'); $d(); echo "\n";
36 echo "After binding, with scope, with instance", "\n";
[all …]
H A Dclosure_045.phpt15 echo "Done.\n";
H A Dclosure_046.phpt23 echo "Before binding", "\n";
24 $nonstaticUnscoped(); echo "\n";
25 $nonstaticScoped(); echo "\n";
27 echo "After binding, no instance", "\n";
28 $d = $nonstaticUnscoped->bindTo(null, "static"); $d(); echo "\n";
29 $d = $nonstaticScoped->bindTo(null, "static"); $d(); echo "\n";
34 $d = $nonstaticUnscoped->bindTo(new A, "static"); $d(); echo "\n";
35 $d = $nonstaticScoped->bindTo(new A, "static"); $d(); echo "\n";
37 echo "After binding, with different instance for the bound one", "\n";
38 $d = $nonstaticScoped->bindTo(new B, "static"); $d(); echo "\n";
[all …]
H A Dclosure_047.phpt17 echo replace_variables('a=?', array('0')) . "\n";
18 echo replace_variables('a=?, b=?', array('0', '1')) . "\n";
19 echo replace_variables('a=?, b=?, c=?', array('0', '1', '2')) . "\n";
20 echo "Done\n";
H A Dclosure_048.phpt17 echo replace_variables('a=?', array('0')) . "\n";
18 echo replace_variables('a=?, b=?', array('0', '1')) . "\n";
19 echo replace_variables('a=?, b=?, c=?', array('0', '1', '2')) . "\n";
20 echo "Done\n";
H A Dclosure_058.phpt23 echo "\n";
H A Dclosure_059.phpt23 echo "Exception: " . $e->getMessage() . "\n";
28 echo "Exception: " . $e->getMessage() . "\n";
33 echo "Exception: " . $e->getMessage() . "\n";
H A Dclosure_061.phpt79 echo "$errstr\n\n";
95 echo "$fnStr()\n" . str_repeat('-', strlen($fnStr) + 2), "\n\n";
100 echo "bindTo($objStr, $scopeStr):\n";
104 echo "Success!\n\n";
H A Dclosure_062.phpt8 echo "instance scoped, non-static, \$this used\n";
13 echo "instance scoped, static, \$this used\n";
18 echo "instance scoped, non-static, \$this not used\n";
26 echo "static scoped, non-static, \$this used\n";
31 echo "static scoped, static, \$this used\n";
36 echo "static scoped, static, \$this not used\n";
H A Dclosure_bug66622.phpt9 echo static::name() . ' vs ' . $fn() . "\n";
13 echo static::name() . ' vs ' . $fn() . "\n";
17 echo static::name() . ' vs ' . $fn() . "\n";
H A Dclosure_invoke_case_insensitive.phpt6 $inc = function(&$n) {
7 $n++;
10 $n = 1;
11 $inc->__INVOKE($n);
12 var_dump($n);
H A Dclosure_write_prop.phpt17 echo $e->getMessage(), "\n";
/PHP-7.4/Zend/tests/closures/
H A Dclosure_from_callable.inc68 echo "this is bar\n";
H A Dclosure_from_callable_error.phpt8 echo 'Cannot access privateInstance method statically'."\n";
11 echo "Test failed to fail and return was : ".var_export($fn, true)."\n";
33 echo 'Cannot access privateInstance method'."\n";
45 echo 'SubClass cannot access private instance method'."\n";
48 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n";
57 echo 'Cannot access private static function of instance'."\n";
69 echo 'Cannot access private static method statically'."\n";
93 echo 'Non-existent method should fail'."\n";
105 echo 'Non-existent class should fail'."\n";
117 echo 'Non-existent function should fail'."\n";
[all …]

Completed in 28 milliseconds

1...<<11121314151617181920>>...369