Home
last modified time | relevance | path

Searched refs:a (Results 176 – 200 of 6607) sorted by relevance

12345678910>>...265

/PHP-8.3/ext/standard/tests/array/
H A Dbug48224.phpt5 $a = range(0, 100);
6 $a1 = array_rand($a, count($a));
7 $a2 = array_rand($a, count($a));
8 $a3 = array_rand($a, count($a));
9 $a4 = array_rand($a, count($a));
H A Darray_diff_single_array.phpt6 $array = ["a" => 42];
7 $cmp = function($a, $b) { return $a <=> $b; };
20 ["a"]=>
24 ["a"]=>
28 ["a"]=>
32 ["a"]=>
36 ["a"]=>
40 ["a"]=>
44 ["a"]=>
48 ["a"]=>
/PHP-8.3/Zend/tests/
H A Dbug43128.phpt8 $a = str_repeat("a", 10 * 1024 * 1024);
10 eval("class $a {}");
12 # call_user_func($a); // Warning
13 # $a->$a(); // Fatal error
15 if ($a instanceof $a); // Segmentation fault
16 new $a; // Segmentation fault
H A Dbug73753.phpt5 function iterate($current, $a, $result = null) {
10 return iterate(getNext($a), $a, $current);
13 function getNext(&$a) {
14 return next($a);
17 function getCurrent($a) {
18 return current($a);
21 function traverse($a) {
22 return iterate(getCurrent($a), $a);
H A Dbug68896.phpt6 private $a = [];
8 return $this->a[$offset];
11 $this->a[$offset] = $value;
14 isset($this->a[$offset]);
17 unset($this->a[$offset]);
21 $obj = new ArrayObject(["a" => 1]);
22 $obj["a"] .= "test";
23 var_dump($obj["a"]);
26 $obj["a"] = 1;
27 $obj["a"] .= "test";
[all …]
H A Dconstant_expressions_arrays.phpt5 const a = [1,2,[3,[4]]];
6 const b = a[0];
7 const c = a[2][0];
8 const d = a[2];
13 function test ($a = d[1][0]) {
14 var_dump($a);
25 var_dump(a, a[0], a[2], a[2][1], a[3]);
H A Dclosure_009.phpt5 $a = 1;
6 $x = function ($x) use ($a) {
9 $a = $n.':'.$a;
10 echo $x.':'.$a."\n";
12 $y = function ($x) use (&$a) {
15 $a = $n.':'.$a;
16 echo $x.':'.$a."\n";
/PHP-8.3/tests/lang/
H A DreturnByReference.002.phpt2 Returning a reference from a function.
6 global $a;
7 return $a;
11 global $a;
12 return $a;
15 $a = "original";
18 var_dump($a); //expecting warning + "original"
20 $a = "original";
23 var_dump($a); //expecting "changed"
H A DforeachLoop.004.phpt6 $a=array("a", "b", "c");
8 foreach($a as $v[0]) {
11 var_dump($a);
15 $a=array("a", "b", "c");
17 foreach($a as $k=>$v[0]) {
20 var_dump($a);
26 string(1) "a"
38 string(1) "a"
52 string(1) "a"
66 string(1) "a"
H A DforeachLoop.002.phpt8 foreach ($a as $k=>$v) {
12 var_dump($a);
19 var_dump($a);
27 var_dump($a);
32 foreach ($a as $v) {
41 var_dump($a);
55 var_dump($a);
60 array_pop($a);
63 var_dump($a);
68 array_pop($a);
[all …]
/PHP-8.3/sapi/phpdbg/tests/
H A Dwatch_002.phpt12 w a $a
20 >00006: $a[0] = 2;
22 00008: $a = [0 => 3, 1 => 4];
23 prompt> [Added watchpoint #0 for $a[]]
24 prompt> [Breaking on watchpoint $a[]]
27 prompt> [$a[] has been removed, removing watchpoint]
33 $a = [];
35 $a[0] = 1;
36 $a[0] = 2;
38 $a = [0 => 3, 1 => 4];
/PHP-8.3/sapi/fpm/fpm/
H A Dfpm_config.h38 # define timeradd(a, b, result) \ argument
40 (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
41 (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \
52 # define timercmp(a, b, CMP) \ argument
53 (((a)->tv_sec == (b)->tv_sec) ? \
54 ((a)->tv_usec CMP (b)->tv_usec) : \
55 ((a)->tv_sec CMP (b)->tv_sec))
60 # define MIN(a,b) (((a)<(b))?(a):(b)) argument
64 # define MAX(a,b) (((a)>(b))?(a):(b)) argument
/PHP-8.3/ext/standard/tests/serialize/
H A Dserialization_objects_019.phpt9 $root->a = [$end];
10 $root->b = $root->a;
18 $root->a = [[$end]];
19 $root->b = $root->a;
40 O:8:"stdClass":2:{s:1:"a";a:1:{i:0;O:8:"stdClass":0:{}}s:1:"b";a:1:{i:0;r:3;}}
41 O:8:"stdClass":2:{s:1:"a";a:1:{i:0;a:1:{i:0;O:8:"stdClass":0:{}}}s:1:"b";a:1:{i:0;a:1:{i:0;r:4;}}}
42 a:2:{i:0;O:8:"stdClass":1:{s:6:"object";O:8:"stdClass":0:{}}i:1;a:1:{s:6:"object";r:3;}}
/PHP-8.3/ext/phar/tests/
H A Dfopen.phpt12 fclose($a);
15 $a = new Phar($fname);
16 $a['index.php'] = '<?php
18 echo fread($a, 2);
19 fclose($a);
21 echo fread($a, 2);
22 fclose($a);
25 $a['dir/file1.txt'] = 'hi';
26 $a['dir/file2.txt'] = 'hi2';
27 $a['dir/file3.txt'] = 'hi3';
[all …]
/PHP-8.3/ext/phar/tests/cache_list/files/
H A Dfrontcontroller2.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller2.phar');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
8 Phar::webPhar("whatever", "a.php");
H A Dfrontcontroller.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller.phar');
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-8.3/ext/phar/tests/files/
H A Dfrontcontroller2.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller2.phar');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
8 Phar::webPhar("whatever", "a.php");
H A Dfrontcontroller.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller.phar');
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-8.3/ext/opcache/tests/
H A Dbug78015.phpt13 $d = $a['b'] + $a['c'];
19 $a = ['b' => [$x]];
20 $d = !$a['b'];
26 $a = ['b' => [$x]];
27 $d = (int) $a['b'];
33 $a = ['b' => [$x]];
34 $d = $a['b'] ?: 42;
40 $a = ['b' => [$x]];
47 $a = ['b' => [$x]];
49 $d = "$a[b]{$b}bar";
[all …]
/PHP-8.3/ext/spl/tests/
H A Ddit_005.phpt6 $a = new FileSystemIterator(__DIR__ . '/..');
7 $b = clone $a;
8 var_dump((string)$b == (string)$a);
9 var_dump($a->key() == $b->key());
10 $a->next();
11 $a->next();
12 $a->next();
13 $c = clone $a;
14 var_dump((string)$c == (string)$a);
15 var_dump($a->key() == $c->key());
H A Ddllist_007.phpt5 $a = new SplDoublyLinkedList();
6 $a->push(1);
7 $a->push(2);
8 $a->push(3);
10 $a->rewind();
11 while ($a->valid()) {
12 var_dump($a->current(), $a->next());
/PHP-8.3/ext/phar/tests/tar/files/
H A Dfrontcontroller2.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller2.phar.tar');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
8 Phar::webPhar("whatever", "a.php");
/PHP-8.3/ext/phar/tests/zip/files/
H A Dfrontcontroller2.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller2.phar.zip');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
8 Phar::webPhar("whatever", "a.php");
/PHP-8.3/ext/dba/tests/
H A Ddba_inifile_creation_matrix.phpt59 This is a test insert
61 This is a test insert
63 This is a test insert
65 This is a test insert
67 This is a test insert
69 This is a test insert
71 This is a test insert
73 This is a test insert
92 This is a test insert
94 This is a test insert
[all …]
/PHP-8.3/ext/opcache/tests/jit/
H A Dassign_049.phpt11 function &a($i) {
12 $a = "str". $i;
13 return $a;
17 public $a;
19 $this->a = a(1);
23 $a = new A;
24 $a->test();
25 $a->test();

Completed in 50 milliseconds

12345678910>>...265