Home
last modified time | relevance | path

Searched refs:a (Results 226 – 250 of 6688) sorted by relevance

12345678910>>...268

/php-src/ext/phar/tests/zip/files/
H A Dfrontcontroller.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller.phar.zip');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a['index.php'] = 'here is my index';
8 $a->setStub('<?php
/php-src/Zend/tests/
H A Dbug74836.phpt5 $s = "1234567890a";
6 $a[10] = "42";
13 var_dump($a["10"], isset($a["10"]));
14 var_dump($a["010"], isset($a["010"]));
15 var_dump($a[$i], isset($a[$i]));
18 string(1) "a"
20 string(1) "a"
22 string(1) "a"
H A Dforeach_009.phpt5 $a = [0, 1, 2, 3, 4, 5, 6, 7];
6 unset($a[0], $a[1], $a[2], $a[3]);
7 foreach ($a as &$ref) {
8 foreach ($a as &$ref2) {
11 $a[42] = 8;
H A Dobjects_034.phpt19 $GLOBALS['a'] = null;
22 $a = new A;
23 $a[$c] = 'x' ;
24 var_dump($a);
26 $a = new A;
27 $a[$c] .= 'x' ;
28 var_dump($a);
30 $a = new A;
31 $a[$c][$c] = 'x' ;
32 var_dump($a);
H A Dgc_015.phpt7 $a = new stdClass();
8 $c =& $a;
9 $b = $a;
10 $a->a = $a;
11 $a->b = "xxx";
13 unset($a);
H A D025.phpt7 static public function a() {
12 $a = 'a';
13 $b = 'a';
17 foo::a();
18 foo::$a();
21 $class::a();
22 $class::$a();
/php-src/ext/standard/tests/array/
H A Darray_shuffle_basic.phpt10 $a = array();
11 var_dump(shuffle($a));
12 var_dump($a);
13 $a = array(1);
15 var_dump($a);
16 $a = array(2 => 1);
18 var_dump($a);
19 $a = array("a" => 1);
21 var_dump($a);
24 var_dump($a);
[all …]
/php-src/ext/phar/tests/
H A Drename_dir_and_mount.phpt17 $files['a/x'] = 'a';
18 $files['a/b/x'] = 'a';
22 Phar::mount("$pname/a/c", __DIR__);
24 var_dump(file_exists($pname . '/a'));
25 var_dump(file_exists($pname . '/a/x'));
26 var_dump(file_exists($pname . '/a/b'));
28 var_dump(file_exists($pname . '/a/c'));
30 rename($pname . '/a', $pname . '/b');
32 var_dump(file_exists($pname . '/a'));
33 var_dump(file_exists($pname . '/a/x'));
[all …]
/php-src/ext/gmp/tests/
H A Dbug50283.phpt7 $a = gmp_init("0x41682179fbf5");
8 printf("Decimal: %s, -36-based: %s\n", gmp_strval($a), gmp_strval($a,-36));
9 printf("Decimal: %s, 36-based: %s\n", gmp_strval($a), gmp_strval($a,36));
11 printf("Decimal: %s, -1-based: %s\n", gmp_strval($a), gmp_strval($a,-1));
16 printf("Decimal: %s, 1-based: %s\n", gmp_strval($a), gmp_strval($a,1));
21 printf("Decimal: %s, -37-based: %s\n", gmp_strval($a), gmp_strval($a,-37));
25 printf("Decimal: %s, 37-based: %s\n", gmp_strval($a), gmp_strval($a,37));
26 printf("Decimal: %s, 62-based: %s\n", gmp_strval($a), gmp_strval($a,62));
28 printf("Decimal: %s, 63-based: %s\n\n", gmp_strval($a), gmp_strval($a,63));
/php-src/ext/opcache/tests/jit/
H A Dbug80742.phpt16 if ($a == $b) {
19 if ($a == $b) {
23 if ($a != $b) {
26 if ($a != $b) {
30 if ($a === $b) {
33 if ($a === $b) {
37 if ($a !== $b) {
40 if ($a !== $b) {
46 $a == $b && $c,
47 $a != $b && $c,
[all …]
H A Dreg_alloc_022.phpt10 $a = $b = $x = 0; $c = null;
13 $x = $a ? $b : $c;
14 $a &= $x != $a ? $b : $c;
15 $x = $a ? $b : $c;
16 $a &= $x != $a ? $b : $c;
17 $x != $a ?: $c;
18 $a--;
H A Dadd_010.phpt11 function foo($a) {
12 var_dump($a+$a=$a+$a=$a+$a=$a);
/php-src/tests/lang/
H A Dengine_assignExecutionOrder_007.phpt5 $a[2][3] = 'stdClass';
6 $a[$i=0][++$i] = new $a[++$i][++$i];
7 print_r($a);
10 $o->a = new $a[$i=2][++$i];
11 $o->a->b = new $a[$i=2][++$i];
33 [a] => stdClass Object
H A Dbug24658.phpt6 function no_typehint($a) {
7 var_dump($a);
9 function typehint(foo $a) {
10 var_dump($a);
12 function no_typehint_ref(&$a) {
13 var_dump($a);
15 function typehint_ref(foo &$a) {
16 var_dump($a);
19 $a = array(new foo(), 1, 2);
25 array_walk($a, 'no_typehint');
[all …]
H A Dfunc_get_arg.005.phpt7 global $a;
8 $a = 'changed.a';
13 $a = "original.a";
14 $ref =& $a;
15 refVal($a);
18 string(10) "original.a"
19 string(10) "original.a"
/php-src/ext/opcache/tests/
H A Dpreload_variance.inc6 public function method(X $a) {}
9 public function method($a) : X {}
14 public function method($a): self {}
15 public function method2($a): C {}
17 public function method4(D $a) {}
21 public function method2($a): D {}
23 public function method4(C $a) {}
31 public function method($a): I {}
35 public function method($a): J {}
40 public function method($a): K {}
[all …]
/php-src/ext/mbstring/tests/
H A Dmb_ereg_replace_named_subpatterns.phpt13 echo mb_ereg_replace('(?<a>\s*)(?<b>\w+)(?<c>\s*)', '\k<a>_\k<b>_\k<c>', 'a b c d e' ), "\n";
15 echo mb_ereg_replace('(?<word>[a-z]+)',"<\k'word'>", 'abc def ghi'), PHP_EOL;
17 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', '\k<0>-\k<10>-', '123456789aa'), PHP_E…
19 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', "\k'0'-\k'10'-", '123456789aa'), PHP_E…
21 echo mb_ereg_replace('a', "\k'0'_\k<01>", 'a'), PHP_EOL;
23 echo mb_ereg_replace('(?<a>A)\k<a>', '-\1-', 'AA'), PHP_EOL;
27 echo mb_ereg_replace('(?<a>\w+)', '-\k<a', 'AA'), PHP_EOL;
32 123456789aa-a-
33 123456789aa-a-
37 -\k<a
/php-src/ext/phar/tests/tar/
H A Dphar_buildfromiterator9.phpt12 var $a;
13 function __construct(array $a)
15 $this->a = $a;
19 next($this->a);
23 return current($this->a);
27 return key($this->a);
31 return (bool) current($this->a);
35 reset($this->a);
41 var_dump($phar->buildFromIterator(new myIterator(array('a' => $a = fopen(basename(__FILE__, 'php') …
42 fclose($a);
[all …]
/php-src/ext/phar/tests/zip/
H A Dphar_buildfromiterator9.phpt12 var $a;
13 function __construct(array $a)
15 $this->a = $a;
19 next($this->a);
23 return current($this->a);
27 return key($this->a);
31 return is_resource(current($this->a));
35 reset($this->a);
40 var_dump($phar->buildFromIterator(new myIterator(array('a' => $a = fopen(basename(__FILE__, 'php') …
41 fclose($a);
[all …]
/php-src/ext/spl/tests/
H A DSplFixedArray_override_getIterator.phpt19 $a = new SplFixedArray(3);
20 $a[0] = "a";
21 $a[1] = "b";
22 $a[2] = "c";
23 foreach ($a as $k => $v) {
28 $a = new A(3);
29 $a[0] = "d";
30 $a[1] = "e";
31 $a[2] = "f";
32 foreach ($a as $k => $v) {
[all …]
/php-src/Zend/tests/array_unpack/
H A Dunpack_string_keys_compile_time.phpt6 var_dump([...['a' => 'b']]);
7 var_dump(['a' => 'X', ...['a' => 'b']]);
8 var_dump([...['a' => 'b'], 'a' => 'X']);
13 ["a"]=>
17 ["a"]=>
21 ["a"]=>
/php-src/ext/phar/tests/cache_list/files/
H A Dfrontcontroller3.phar2 function s($a)
4 static $b = array("/hi" => "a.phps");
5 if (isset($b[$a])) return $b[$a];
6 return $a;
12 …�����������a.php���nWX�����ж���������a.jpg���nWX�����ж���������a.phps���nWX���l�`�…
/php-src/ext/standard/tests/serialize/
H A Dbug28325.phpt5 class a {
14 $a = new a();
15 $a->b = new b();
16 $a->b->c = new c();
17 $a->b->c->d = $a;
18 var_dump(unserialize(serialize($a)));
21 object(a)#%d (1) {
H A Dbug73154.phpt5 class a {
6 public $a;
8 $this->a=null;
12 $s = 'a:1:{i:0;O:1:"a":1:{s:1:"a";R:2;}}';
16 string(22) "a:1:{i:0;O:1:"a":0:{}}"
/php-src/ext/reflection/tests/
H A DReflectionProperty_isInitialized.phpt26 $a = new A;
27 var_dump((new ReflectionProperty($a, 'iv'))->isInitialized($a));
28 var_dump((new ReflectionProperty($a, 'i'))->isInitialized($a));
29 var_dump((new ReflectionProperty($a, 'n'))->isInitialized($a));
32 unset($a->iv);
33 unset($a->i);
34 unset($a->n);
35 var_dump((new ReflectionProperty($a, 'i'))->isInitialized($a));
37 var_dump((new ReflectionProperty($a, 'n'))->isInitialized($a));
40 $a->d = null;
[all …]

Completed in 33 milliseconds

12345678910>>...268