/PHP-7.4/tests/lang/ |
H A D | engine_assignExecutionOrder_007.phpt | 5 $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 D | func_get_arg.005.phpt | 7 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"
|
H A D | foreachLoop.011.phpt | 2 Changing from an interable type to a non iterable type during the iteration 6 $a = array(1,2,3); 7 $b=&$a; 8 foreach ($a as $v) { 14 $a = new stdClass; 15 $a->a=1; 16 $a->b=2; 17 $b=&$a; 18 foreach ($a as $v) {
|
/PHP-7.4/Zend/tests/ |
H A D | bug39127.phpt | 6 class a { function a() { var_dump("a::a() called"); } } 7 class b extends a {} 10 var_dump(is_callable(array($b,"a"))); 17 …th the same name as their class will not be constructors in a future version of PHP; a has a depre… 18 string(13) "a::a() called"
|
H A D | 025.phpt | 7 static public function a() { 12 $a = 'a'; 13 $b = 'a'; 17 foo::a(); 18 foo::$a(); 21 $class::a(); 22 $class::$a();
|
H A D | gc_015.phpt | 7 $a = new stdClass(); 8 $c =& $a; 9 $b = $a; 10 $a->a = $a; 11 $a->b = "xxx"; 13 unset($a);
|
H A D | bug71030.phpt | 7 $a = [1, 2]; 8 $c =& $a; 9 list($c, $b) = $a; 10 var_dump($a, $b); 14 $a = [1, 2]; 15 $_a = "a"; 16 list($$_a, $b) = $a; 17 var_dump($a, $b);
|
/PHP-7.4/ext/standard/tests/serialize/ |
H A D | bug73154.phpt | 5 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:{}}"
|
H A D | bug28325.phpt | 5 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) {
|
/PHP-7.4/ext/phar/tests/cache_list/files/ |
H A D | frontcontroller3.phar | 2 function s($a) 4 static $b = array("/hi" => "a.phps"); 5 if (isset($b[$a])) return $b[$a]; 6 return $a; 12 …a.phpnWX��жa.jpgnWX��жa.phpsnWXl�`�…
|
H A D | frontcontroller9.phar.inc | 3 $a = new Phar(dirname(__FILE__) . '/frontcontroller9.phar'); 4 $a['a.phps'] = 'hio1'; 5 $a['a.jpg'] = 'hio2'; 6 $a['a.php'] = '<?php function hio(){}'; 7 $a['fronk.gronk'] = 'hio3'; 8 $a->setStub('<?php
|
/PHP-7.4/sapi/phpdbg/tests/ |
H A D | watch_002.phpt | 15 w a $a 23 >00006: $a[0] = 2; 25 00008: $a = [0 => 3, 1 => 4]; 26 prompt> [Added watchpoint #0 for $a[]] 27 prompt> [Breaking on watchpoint $a[]] 30 prompt> [$a[] has been removed, removing watchpoint] 36 $a = []; 38 $a[0] = 1; 39 $a[0] = 2; 41 $a = [0 => 3, 1 => 4];
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | array_search1.phpt | 6 $a = array(1=>0, 2=>1, 4=>3, "a"=>"b", "c"=>"d"); 10 var_dump(array_search("a",$a)); 11 var_dump(array_search("0",$a, true)); 12 var_dump(array_search("0",$a)); 13 var_dump(array_search(0,$a)); 14 var_dump(array_search(1,$a)); 15 var_dump(array_search("d",$a, true)); 16 var_dump(array_search("d",$a)); 17 var_dump(array_search(-1,$a, true));
|
H A D | array_diff_assoc_variation7.phpt | 19 $a = 'a'; 21 $arr1 = array('a', 'b', 'c', $a); 22 $arr2 = array('a' => 1, 'b' => 2, 'c' => 3, &$a); 24 echo "-- Results when \$a = $a: --\n"; 28 $a = 4; 30 echo "-- Results when \$a has been changed to $a: --\n"; 50 -- Results when $a = a: -- 57 string(1) "a" 60 ["a"]=> 70 string(1) "a" [all …]
|
H A D | array_shuffle_basic.phpt | 11 $a = array(); 12 var_dump(shuffle($a)); 13 var_dump($a); 14 $a = array(1); 16 var_dump($a); 17 $a = array(2 => 1); 19 var_dump($a); 20 $a = array("a" => 1); 22 var_dump($a); 25 var_dump($a); [all …]
|
/PHP-7.4/ext/opcache/tests/opt/ |
H A D | sccp_006.phpt | 14 $a = ["a"=>1,"a"=>2,"a"=>$x]; 15 echo $a["a"]; 28 L1 (3): T2 = INIT_ARRAY 3 int(1) string("a") 29 L2 (3): T2 = ADD_ARRAY_ELEMENT int(2) string("a") 30 L3 (3): T2 = ADD_ARRAY_ELEMENT CV0($x) string("a") 31 L4 (3): CV1($a) = QM_ASSIGN T2 32 L5 (4): T2 = FETCH_DIM_R CV1($a) string("a")
|
/PHP-7.4/ext/mbstring/tests/ |
H A D | mb_ereg_replace_named_subpatterns.phpt | 12 echo mb_ereg_replace('(?<a>\s*)(?<b>\w+)(?<c>\s*)', '\k<a>_\k<b>_\k<c>', 'a b c d e' ), "\n"; 14 echo mb_ereg_replace('(?<word>[a-z]+)',"<\k'word'>", 'abc def ghi'), PHP_EOL; 16 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', '\k<0>-\k<10>-', '123456789aa'), PHP_E… 18 …echo mb_ereg_replace('(1)(2)(3)(4)(5)(6)(7)(8)(9)(a)(\10)', "\k'0'-\k'10'-", '123456789aa'), PHP_E… 20 echo mb_ereg_replace('a', "\k'0'_\k<01>", 'a'), PHP_EOL; 22 echo mb_ereg_replace('(?<a>A)\k<a>', '-\1-', 'AA'), PHP_EOL; 26 echo mb_ereg_replace('(?<a>\w+)', '-\k<a', 'AA'), PHP_EOL; 31 123456789aa-a- 32 123456789aa-a- 36 -\k<a
|
/PHP-7.4/ext/standard/tests/strings/ |
H A D | bug25671.phpt | 10 "This is a last string."), 11 "This is a last string."); 19 a:4:{i:0;s:19:"This is strung one.";i:1;s:19:"This is strung two.";i:2;a:2:{i:0;s:23:"This is anoth… 20 a:4:{i:0;s:19:"This is strung one.";i:1;s:19:"This is strung two.";i:2;a:2:{i:0;s:23:"This is anoth… 21 a:4:{i:0;s:16:"Thisisstringone.";i:1;s:16:"Thisisstringtwo.";i:2;a:2:{i:0;s:23:"This is another str… 22 a:4:{i:0;s:16:"Thisisstringone.";i:1;s:16:"Thisisstringtwo.";i:2;a:2:{i:0;s:23:"This is another str…
|
H A D | sprintf_variation36.phpt | 50 string(%d) "%a" 52 string(%d) "%a" 54 string(%d) " %a" 58 %a" 59 string(4) "%a" 60 string(30) "%a" 65 string(%d) "%a" 67 string(%d) "%a" 73 %a" 74 string(4) "%a" [all …]
|
H A D | explode.phpt | 16 var_dump(@explode("a", "")); 17 var_dump(@explode("a", "a")); 18 var_dump(@explode("a", NULL)); 19 var_dump(@explode(NULL, "a")); 23 var_dump(@explode("a", "aaaaaa")); 37 0 => 'a', 137 string(10) "a lazy dog" 145 string(10) "a lazy dog" 151 string(10) "a lazy dog" 159 string(10) "a lazy dog" [all …]
|
/PHP-7.4/ext/phar/tests/ |
H A D | rename_dir_and_mount.phpt | 17 $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-7.4/Zend/tests/type_declarations/ |
H A D | scalar_constant_defaults.phpt | 8 const STRING_VAL = "this is a test"; 14 function int_val(int $a = INT_VAL): int { 15 return $a; 19 return $a; 23 return $a; 27 return $a; 31 return $a; 35 return $a; 39 return $a; 73 string(14) "this is a test" [all …]
|
/PHP-7.4/ext/spl/tests/ |
H A D | fixedarray_008.phpt | 7 $a = new SplFixedArray($b); 9 $a[0] = 1; 10 $a[1] = 2; 11 $a[2] = $a; 13 $a[2][0] = 3; 15 foreach ($a as $x) { 23 var_dump($a->getSize());
|
/PHP-7.4/ext/session/tests/ |
H A D | bug26862.phpt | 9 session.trans_sid_tags="a=href,area=href,frame=src,form=" 10 url_rewriter.tags="a=href,area=href,frame=src,form=" 16 echo '<a href="file.php">link</a>'; 21 echo '<a href="file.php">link</a>'; 24 <a href="file.php?var=value">link</a><a href="file.php">link</a>
|
/PHP-7.4/ext/phar/tests/files/ |
H A D | frontcontroller9.phar.inc | 3 $a = new Phar(dirname(__FILE__) . '/frontcontroller9.phar'); 4 $a['a.phps'] = 'hio1'; 5 $a['a.jpg'] = 'hio2'; 6 $a['a.php'] = '<?php function hio(){}'; 7 $a['fronk.gronk'] = 'hio3'; 8 $a->setStub('<?php
|