/PHP-7.2/ext/phar/tests/ |
H A D | fopen5.2.phpt | 13 fclose($a); 17 $a = new Phar($fname); 18 $a['index.php'] = '<?php 20 echo fread($a, 2); 21 fclose($a); 23 echo fread($a, 2); 24 fclose($a); 27 $a['dir/file1.txt'] = 'hi'; 28 $a['dir/file2.txt'] = 'hi2'; 29 $a['dir/file3.txt'] = 'hi3'; [all …]
|
H A D | fopen.phpt | 13 fclose($a); 17 $a = new Phar($fname); 18 $a['index.php'] = '<?php 20 echo fread($a, 2); 21 fclose($a); 23 echo fread($a, 2); 24 fclose($a); 27 $a['dir/file1.txt'] = 'hi'; 28 $a['dir/file2.txt'] = 'hi2'; 29 $a['dir/file3.txt'] = 'hi3'; [all …]
|
/PHP-7.2/ext/standard/tests/strings/ |
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 | 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…
|
/PHP-7.2/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 | foreach_009.phpt | 5 $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 D | bug70805.phpt | 13 if (isset($GLOBALS["a"])) { 15 unset($GLOBALS["a"]); // this will be called in gc_colloct_roots and put $a into gc roots buf 20 $a = new A; 21 $a->b = new B; 22 $a->b->a = $a; 27 $array = array($c); //This is used to leave a room for $GLOBALS["a"] 39 $e = $a; 40 unset($a); // This one can not be putted into roots buf because it's full, thus gc_colloct_roots wi… 41 // but C::__destructor which is called in gc_colloct_roots will put $a into buf 42 // which will make $a be putted into gc roots buf twice
|
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 | gc_011.phpt | 8 public $a; 13 $a = new Foo(); 14 $a->a = $a; 15 var_dump($a); 16 unset($a); 22 ["a"]=>
|
/PHP-7.2/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.2/ext/spl/tests/ |
H A D | dllist_007.phpt | 5 $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());
|
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.2/scripts/dev/generate-phpt/tests/ |
H A D | gtMethodTest.php | 11 $a = $m->getMandatoryArgumentNames(); 12 $this->assertEquals($a[0], 'name'); 18 $a = $m->getConstructorArgumentNames(); 19 $this->assertEquals($a[0], 'version'); 20 $this->assertEquals($a[1], 'encoding'); 41 $a = $m->getValidArgumentLists(); 42 $this->assertEquals('$name',$a[0]); 70 $a = $m->getConstructorInitStatements(); 71 $this->assertEquals('$filename = ',$a[0]); 72 $this->assertEquals('$flags = ',$a[1]); [all …]
|
/PHP-7.2/ext/standard/tests/serialize/ |
H A D | serialization_arrays_005.phpt | 17 var_dump($a); 41 $a[1] = 1; 47 $a[0] = 1; 61 $a[0] = 1; 62 $a[1] = 1; 63 $c = array(1,&$a[0],&$a); 68 $a[0] = 1; 69 $a[1] = 1; 70 $c = array(&$a[0],&$a[1],&$a); 76 $a[0] = 1; [all …]
|
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) {
|
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 | serialization_arrays_001.phpt | 8 * Description: Returns a string representation of variable (which can later be unserialized) 13 * Description: Takes a string representation of variable and recreates it 21 $arr_circ = array(0, 1, -2, 3.333333, "a", array(), &$arr_circ); 28 $arr_asso = array("a" => "test"); 29 $arr_asso[ "b" ] = &$arr_asso[ "a" ]; 41 …a:7:{i:0;i:0;i:1;i:1;i:2;i:-2;i:3;d:3.333333000000000101437080957111902534961700439453125;i:4;s:1:… 52 string(1) "a" 67 string(1) "a" 78 ["a"]=> 83 string(37) "a:2:{s:1:"a";s:4:"test";s:1:"b";R:2;}" [all …]
|
/PHP-7.2/ext/standard/tests/file/ |
H A D | fputcsv_variation9.phpt | 35 "a+", "a+b", "a+t", 113 -- file opened in a+ -- 124 -- file opened in a+b -- 135 -- file opened in a+t -- 245 -- file opened in a+ -- 256 -- file opened in a+b -- 267 -- file opened in a+t -- 377 -- file opened in a+ -- 509 -- file opened in a+ -- 641 -- file opened in a+ -- [all …]
|
/PHP-7.2/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));
|
/PHP-7.2/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�`�…
|
/PHP-7.2/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.2/ext/gmp/tests/ |
H A D | bug50283.phpt | 7 $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)); 10 printf("Decimal: %s, -1-based: %s\n", gmp_strval($a), gmp_strval($a,-1)); 11 printf("Decimal: %s, 1-based: %s\n", gmp_strval($a), gmp_strval($a,1)); 12 printf("Decimal: %s, -37-based: %s\n", gmp_strval($a), gmp_strval($a,-37)); 13 printf("Decimal: %s, 37-based: %s\n", gmp_strval($a), gmp_strval($a,37)); 14 printf("Decimal: %s, 62-based: %s\n", gmp_strval($a), gmp_strval($a,62)); 15 printf("Decimal: %s, 63-based: %s\n\n", gmp_strval($a), gmp_strval($a,63));
|