Home
last modified time | relevance | path

Searched refs:b (Results 151 – 175 of 2612) sorted by relevance

12345678910>>...105

/php-src/ext/standard/tests/array/
H A Dbug50006_2.phpt14 function magic_sort_cmp($a, $b) {
16 $b = substr($b, 1);
17 if (!$a) return $b ? -1 : 0;
18 if (!$b) return 1;
19 return magic_sort_cmp($a, $b);
H A Darray_merge_recursive_variation9.phpt15 $arr1 = array("a" => 1, "b" => 2);
16 $arr2 = array("b" => 2, "c" => 4);
21 $arr1 = array("a" => 1.1, "b" => 2.2);
22 $arr2 = array("b" => 2.2, "c" => 3.3);
27 $arr1 = array("a" => "hello", "b" => "world");
33 $arr1 = array("a" => true, "b" => false);
34 $arr2 = array("b" => false);
52 ["b"]=>
66 ["b"]=>
80 ["b"]=>
[all …]
H A Darray_uintersect_uassoc_basic.phpt13 static function comp_func_cr($a, $b) {
14 if ($a->priv_member === $b->priv_member) return 0;
15 return ($a->priv_member > $b->priv_member) ? 1 : -1;
17 static function comp_func_key($a, $b) {
18 if ($a === $b) return 0;
19 return ($a > $b) ? 1 : -1;
23 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1 => new cr(4), 2 => new cr(-15…
24 $result = array_uintersect_uassoc($a, $b, array("cr", "comp_func_cr"), array("cr", "comp_func_key")…
/php-src/tests/lang/
H A Dshort_tags.004.phpt16 <? $b=3; ?>
19 echo "{$b}";
21 <?= "{$b}"?>
29 <? $b=3; ?>
32 Warning: Undefined variable $b in %s on line %d
34 Warning: Undefined variable $b in %s on line %d
H A Dstatic_variation_001.phpt24 eval(' static $b = array(10,11,12); ');
27 eval(' static $b = array(1,2,3); ');
30 eval(' static $b = array(4,5,6); ');
31 var_dump($b);
34 eval('function g2b() { static $b = array(7, 8, 9); var_dump($b); } ');
35 var_dump($b);
41 var_dump($b);
/php-src/ext/opcache/tests/
H A Dbug75698.phpt13 $a = array("a","b","c","b");
14 $b = array();
16 @$b[$c]++; // the @ is required to crash PHP 7.2.0
17 var_dump($b);
27 ["b"]=>
/php-src/Zend/tests/
H A Dadd_001.phpt7 $b = array("str", "here");
9 $c = $a + $b;
13 $b = array(1,2,4);
15 $c = $a + $b;
19 $b = array(1,2,"a"=>"bbbbbb");
21 $c = $a + $b;
24 $a += $b;
H A Dflexible-heredoc-complex-test3.phpt7 ${' a'} = ' b';
8 ${' b'} = 'c';
9 ${"b\n b"} = 'b';
14 b
29 b
H A Dinter_03.phpt7 const b = 2;
10 interface b extends a {
11 const c = self::b;
14 var_dump(b::c, a::b);
H A Dbug53958.phpt16 $b = 1;
17 $fn1 = function() use (&$b) {echo "$b\n"; $b++;};
18 $fn2 = function() use (&$b) {echo "$b\n"; $b++;};
19 $b = 5;
/php-src/ext/pdo_dblib/
H A Dphp_pdo_dblib_int.h29 # define DBERRHANDLE(a, b) dbprocerrhandle(a, b) argument
30 # define DBMSGHANDLE(a, b) dbprocmsghandle(a, b) argument
33 # define DBSETOPT(a, b, c) dbsetopt(a, b, c) argument
78 # define DBERRHANDLE(a, b) dberrhandle(b) argument
79 # define DBMSGHANDLE(a, b) dbmsghandle(b) argument
80 # define DBSETOPT(a, b, c) dbsetopt(a, b, c, -1) argument
/php-src/ext/phar/tests/
H A Dphar_oo_uncompressall.phpt17 $files['b'] = 'b';
26 var_dump(file_get_contents($pname . '/b'));
27 var_dump($phar['b']->isCompressed());
36 var_dump(file_get_contents($pname . '/b'));
37 var_dump($phar['b']->isCompressed(Phar::GZ));
38 var_dump($phar['b']->isCompressed(Phar::BZ2));
41 var_dump($phar['b']->isCompressed(Phar::BZ2));
46 var_dump(file_get_contents($pname . '/b'));
59 string(1) "b"
66 string(1) "b"
[all …]
H A D019c.phpt17 $files['b/a'] = 'b';
18 $files['b/c/d'] = 'c';
56 string(2) "/b"
58 string(12) "phar://hio/b"
59 string(4) "/b/a"
61 string(1) "b"
62 string(4) "/b/c"
64 string(14) "phar://hio/b/c"
65 string(6) "/b/c/d"
H A D023.phpt15 $files['b.php'] = '<?php echo "This is b\n"; ?>';
16 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
21 var_dump(file_get_contents($pname . '/b.php'));
22 var_dump(file_get_contents($pname . '/b/c.php'));
29 string(28) "<?php echo "This is b\n"; ?>"
30 string(30) "<?php echo "This is b/c\n"; ?>"
H A Dopen_for_write_newfile.phpt16 $files['b.php'] = '<?php echo "This is b\n"; ?>';
17 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
20 $fp = fopen($pname . '/b/new.php', 'wb');
23 include $pname . '/b/c.php';
24 include $pname . '/b/new.php';
30 This is b/c
/php-src/ext/phar/tests/zip/
H A Dopen_for_write_newfile_c.phpt20 $files['b.php'] = '<?php echo "This is b\n"; ?>';
21 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
30 var_dump(fopen($alias . '/b/new.php', 'wb'));
32 include $alias . '/b/c.php';
33 include $alias . '/b/new.php';
39 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): Failed to open stream: phar e…
41 This is b/c
43 … include(phar://%sopen_for_write_newfile_c.phar.zip/b/new.php): Failed to open stream: phar error:…
45 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c.phar.zip/b/new.php' for inclu…
H A Dopen_for_write_newfile_b.phpt20 $files['b.php'] = '<?php echo "This is b\n"; ?>';
21 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
30 var_dump(fopen($alias . '/b/new.php', 'wb'));
32 include $alias . '/b/c.php';
33 include $alias . '/b/new.php';
39 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): Failed to open stream: phar e…
41 This is b/c
43 … include(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): Failed to open stream: phar error:…
45 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.zip/b/new.php' for inclu…
H A Dphar_oo_compressallgz.phpt15 $phar['b'] = 'b';
20 var_dump(file_get_contents($pname . '/b'));
21 var_dump($phar['b']->isCompressed());
29 var_dump(file_get_contents($pname . '/b'));
30 var_dump($phar['b']->isCompressed(Phar::BZ2));
31 var_dump($phar['b']->isCompressed(Phar::GZ));
33 var_dump($phar['b']->isCompressed(Phar::BZ2));
44 string(1) "b"
51 string(1) "b"
/php-src/ext/phar/tests/tar/
H A Dopen_for_write_newfile_b.phpt20 $files['b.php'] = '<?php echo "This is b\n"; ?>';
21 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
30 var_dump(fopen($alias . '/b/new.php', 'wb'));
32 include $alias . '/b/c.php';
33 include $alias . '/b/new.php';
40 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): Failed to open stream: phar e…
42 This is b/c
44 … include(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): Failed to open stream: phar error:…
46 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.tar/b/new.php' for inclu…
H A Dopen_for_write_newfile_c.phpt20 $files['b.php'] = '<?php echo "This is b\n"; ?>';
21 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
30 var_dump(fopen($alias . '/b/new.php', 'wb'));
31 include $alias . '/b/c.php';
32 include $alias . '/b/new.php';
39 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.tar/b/new.php): Failed to open stream: phar e…
41 This is b/c
43 … include(phar://%sopen_for_write_newfile_c.phar.tar/b/new.php): Failed to open stream: phar error:…
45 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c.phar.tar/b/new.php' for inclu…
/php-src/Zend/tests/bug67436/
H A Dbug67436_nohandler.phpt7 if (in_array($classname, array('a','b','c'))) {
14 $b = new b();
15 $b->test();
18 Warning: The magic method b::__invoke() must have public visibility in %s on line %d
19 b::test()
/php-src/ext/pcre/tests/
H A Dpreg_replace_callback_array_error.phpt6 function b() {
7 return "b";
15 '/a/' => 'b',
27 '/a/' => 'b',
41 '/a/' => 'b',
42 "\\b\\" => function () {
55 '/a/' => 'b',
67 '/a/' => 'b',
81 '/a/' => 'b',
82 "\0b\0" => function () {
/php-src/ext/simplexml/tests/
H A Dbug66084_0.phpt7 echo var_dump(simplexml_load_string('<a><b/><c><x/></c></a>')), "\n";
8 echo var_dump(simplexml_load_string('<a><b/><d/><c><x/></c></a>')), "\n";
9 echo var_dump(simplexml_load_string('<a><b/><c><d/><x/></c></a>')), "\n";
10 echo var_dump(simplexml_load_string('<a><b/><c><d><x/></d></c></a>')), "\n";
14 ["b"]=>
26 ["b"]=>
41 ["b"]=>
56 ["b"]=>
/php-src/ext/standard/tests/math/
H A Dfloorceil.phpt5 $a = ceil (-0); $b = ceil (-1); $c = ceil (-1.5);
7 var_dump ($a, $b, $c, $d, $e);
9 $a = ceil (0); $b = ceil (0.5); $c = ceil (1);
11 var_dump ($a, $b, $c, $d, $e, $f);
13 $a = floor (-0); $b = floor (-0.5); $c = floor (-1);
15 var_dump ($a, $b, $c, $d, $e, $f);
17 $a = floor (0); $b = floor (0.5); $c = floor (1);
19 var_dump ($a, $b, $c, $d, $e, $f);
/php-src/ext/opcache/tests/jit/
H A Dreg_alloc_022.phpt10 $a = $b = $x = 0; $c = null;
12 $x .= $b;
13 $x = $a ? $b : $c;
14 $a &= $x != $a ? $b : $c;
15 $x = $a ? $b : $c;
16 $a &= $x != $a ? $b : $c;

Completed in 27 milliseconds

12345678910>>...105