/PHP-7.2/ext/spl/tests/ |
H A D | fixedarray_002.phpt | 31 $a = new A; 49 $a->setSize(10); 52 $a[0] = "value0"; 53 $a[1] = "value1"; 54 $a[2] = "value2"; 55 $a[3] = "value3"; 58 $a[4] = $ref; 61 unset($a[1]); 62 var_dump(isset($a[1]), isset($a[2]), empty($a[1]), empty($a[2])); 64 var_dump($a[0], $a[2], $a[3], $a[4]); [all …]
|
H A D | ArrayObject_sort_different_backing_storage.phpt | 6 $obj = (object)['a' => 2, 'b' => 1]; 8 $ao->uasort(function($a, $b) { return $a <=> $b; }); 12 $ao2->uasort(function($a, $b) { return $b <=> $a; }); 17 $ao3->a = 2; 19 $ao3->uasort(function($a, $b) { return $a <=> $b; }); 23 $ao4->uasort(function($a, $b) { return $a <=> $b; }); 27 $ao5->uasort(function($a, $b) { return $a <=> $b; }); 37 ["a"]=> 46 ["a"]=> 56 ["a"]=> [all …]
|
H A D | bug71028.phpt | 5 function cast(&$a) { 6 $a = (int)$a; 9 $a = new ArrayIterator; 10 $a[-1] = 123; 15 var_dump(isset($a[$b])); 16 $a[$b] = "okey"; 17 var_dump($a[$b]); 18 unset($a[$b]); 19 var_dump(isset($a[$b]));
|
/PHP-7.2/ext/pcre/pcrelib/testdata/ |
H A D | testinput8 | 346 /^(a*\w|ab)=(a*\w|ab)/ 755 /^[a-zA-Z\d][a-zA-Z\d\-]*(\.[a-zA-Z\d][a-zA-z\d\-]*)*\.$/ 765 /^\*\.[a-z]([a-z\-\d]*[a-z\d]+)?(\.[a-z]([a-z\-\d]*[a-z\d]+)?)*$/ 888 /^From +([^ ]+) +[a-zA-Z][a-zA-Z][a-zA-Z] +[a-zA-Z][a-zA-Z][a-zA-Z] +[0-9]?[0-9] +[0-9][0-9]:[0-9][… 2334 /a[^a]b/ 2343 /a[^a]b/s 3699 /(?(?!a)a|b)/ 3701 /(?(?!a)b|a)/ 3704 /(?(?=a)b|a)/ 3709 /(?(?=a)a|b)/ [all …]
|
H A D | testoutput4 | 827 a\x{256}a 1049 a\x{c0}a\x{c0}aaa/ 1050 0: a\x{c0}a\x{c0}aa 1051 1: a\x{c0}a\x{c0} 1057 a\x{c0}a\x{c0}aaa/ 1058 0: a\x{c0}a\x{c0}aaa 1059 1: a\x{c0}a\x{c0}a 1066 0: a\x{c0}a\x{c0} 1086 /a(*:a\x{1234}b)/8K 1091 /a(*:a£b)/8K [all …]
|
/PHP-7.2/Zend/tests/ |
H A D | bug35163_3.phpt | 5 $a = new stdClass; 6 $a->b = array(1); 7 $a->b[] =& $a->b; 8 $a->b[] =& $a->b; 9 $a->b[0] = 2; 10 var_dump($a); 11 $a->b = null; 12 $a = null;
|
H A D | call_static_007.phpt | 6 class a { 7 public function __call($a, $b) { 8 print "__call: ". $a ."\n"; 10 static public function __callStatic($a, $b) { 11 print "__callstatic: ". $a ."\n"; 19 $a = new a; 22 $a::$b(); 23 $a->$b(); 25 $a->baz(); 27 a::Foo();
|
H A D | gc_009.phpt | 7 $a = array(); 8 $a[0] = new stdClass(); 9 $a[0]->a = array(); 10 $a[0]->a[0] =& $a[0]; 11 var_dump($a[0]); 13 unset($a); 19 ["a"]=>
|
H A D | gc_016.phpt | 8 public $a; 11 $a = array(); 12 $a[] =& $a; 13 unset($a); 17 $a = new Foo(); 18 $a->a = $a; 19 unset($a);
|
H A D | bug35163.phpt | 5 $a = array(array(1)); 6 $a[0][] =& $a[0]; 7 $a[0][] =& $a[0]; 8 $a[0][0] = 2; 9 var_dump($a); 10 $a[0] = null; 11 $a = null;
|
H A D | objects_025.phpt | 16 $a = new foo; 17 $a->foooo(); 18 $a::foooo(); 21 $a->$b(); 22 $a::$b(); 25 $a->$b(); 26 $a::$b(); 28 $b = str_repeat('a', 10000); 29 $a->$b(); 30 $a::$b(); [all …]
|
H A D | list_keyed_evaluation_order_3.phpt | 7 $a = [ 10 'a' => 'foo', 12 1 => 'a', 15 list($a[$i++] => $a[$i++], $a[$i++] => $a[$i++]) = $a[$i++]; 17 var_dump($a[2]); // should be 'foo' 18 var_dump($a[4]); // should be 'bar'
|
H A D | bug37715.phpt | 5 $a = array( 6 'a' => array( 14 // Set the pointer of $a to 'b' and the pointer of 'b' to 'CC' 15 reset($a); 16 next($a); 17 next($a['b']); 18 next($a['b']); 19 next($a['b']); 21 var_dump(key($a['b'])); 22 foreach($a as $k => $d) [all …]
|
/PHP-7.2/sapi/phpdbg/tests/ |
H A D | watch_003.phpt | 6 w $a[0] 15 >00006: $a[0] = 2; 17 00008: $a = [0 => 3, 1 => 4]; 18 prompt> [Added watchpoint #0 for $a[0]] 19 prompt> [Breaking on watchpoint $a[0]] 22 >00008: $a = [0 => 3, 1 => 4]; 24 prompt> [Breaking on watchpoint $a[0]] 34 $a = []; 36 $a[0] = 1; 37 $a[0] = 2; [all …]
|
H A D | watch_006.phpt | 6 w $a[0] 20 >00004: $a[0] = 1; 21 00005: $b = &$a; 22 00006: $a[0] = 2; 28 >00005: $b = &$a; 29 00006: $a[0] = 2; 65 $a = [0]; 66 $a[0] = 1; 67 $b = &$a; 68 $a[0] = 2; [all …]
|
/PHP-7.2/ext/standard/tests/general_functions/ |
H A D | putenv_bug75574_cp936_win.phpt | 28 var_dump(putenv('FOO=��a'), getenv("FOO")); 29 var_dump(putenv('FOO=��a��'), getenv("FOO")); 30 var_dump(putenv('FOO=��a��a'), getenv("FOO")); 31 var_dump(putenv('FOO=��a��a��'), getenv("FOO")); 48 string(3) "��a" 50 string(5) "��a��" 52 string(6) "��a��a" 54 string(8) "��a��a��" 56 string(7) "��a����" 58 string(9) "��a������" [all …]
|
/PHP-7.2/ext/opcache/tests/ |
H A D | optimize_func_calls.phpt | 18 function a(&$b) { 23 $a = "a"; 26 $f = "a"; 34 foo(a($a)); 35 var_dump($a); 36 $a = "a"; 44 foo($f($a)); 45 var_dump($a); 68 $a = "a"; 69 foo(a($a), $a, ref($b, $c), $obj); [all …]
|
/PHP-7.2/ext/standard/ |
H A D | strnatcmp.c | 44 for(;; (*a)++, (*b)++) { in compare_right() 45 if ((*a == aend || !isdigit((int)(unsigned char)**a)) && in compare_right() 48 else if (*a == aend || !isdigit((int)(unsigned char)**a)) in compare_right() 52 else if (**a < **b) { in compare_right() 55 } else if (**a > **b) { in compare_right() 72 for(;; (*a)++, (*b)++) { in compare_left() 73 if ((*a == aend || !isdigit((int)(unsigned char)**a)) && in compare_left() 76 else if (*a == aend || !isdigit((int)(unsigned char)**a)) in compare_left() 80 else if (**a < **b) in compare_left() 82 else if (**a > **b) in compare_left() [all …]
|
/PHP-7.2/ext/standard/tests/strings/ |
H A D | 004.phpt | 5 function stats($f, $a) { 8 ksort($a); 9 foreach($a as $k => $v) 12 $a = array(); 18 if (empty($a[$s])) $a[$s] = 0; 19 $a[$s]++; 22 stats('shuffle', $a); 23 $a = array(); 28 if (empty($a[$s])) $a[$s] = 0; 29 $a[$s]++; [all …]
|
/PHP-7.2/Zend/ |
H A D | configure.ac | 64 #define zend_isnan(a) isnan(a) 66 #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN)) 68 #define zend_isnan(a) ((a) != (a)) 73 #define zend_isinf(a) isinf(a) 76 #define zend_isinf(a) (((a)==INFINITY || (a)==-INFINITY)?1:0) 78 #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF)) 80 #define zend_isinf(a) 0 84 #define zend_finite(a) isfinite(a) 86 #define zend_finite(a) finite(a) 88 #define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) [all …]
|
/PHP-7.2/ext/session/tests/ |
H A D | bug74892.phpt | 13 <p><a href="index.php">Click This Anchor Tag!</a></p> 14 <p><a href="index.php#place">External link with anchor</a></p> 15 <p><a href="http://php.net#foo">External link with anchor 2</a></p> 16 <p><a href="#place">Internal link</a></p> 19 <p><a href="index.php?PHPSESSID=sessionidhere">Click This Anchor Tag!</a></p> 20 <p><a href="index.php?PHPSESSID=sessionidhere#place">External link with anchor</a></p> 21 <p><a href="http://php.net?PHPSESSID=sessionidhere#foo">External link with anchor 2</a></p> 22 <p><a href="#place">Internal link</a></p>
|
/PHP-7.2/ext/mbstring/tests/ |
H A D | bug26639.phpt | 8 $b = $a; 12 unset($a); 16 $b = &$a; 20 unset($a); 24 $b = array($a); 29 unset($a); 39 unset($a); 49 unset($a); 59 unset($a); 64 $b = $a; [all …]
|
/PHP-7.2/ext/standard/tests/serialize/ |
H A D | 001.phpt | 11 $this->a = "hallo"; 17 public $a; 70 $a = array("a" => "test"); 71 $a[ "b" ] = &$a[ "a" ]; 72 var_dump($a); 76 var_dump($a); 96 ["a"]=> 103 ["a"]=> 111 ["a"]=> 116 a:2:{s:1:"a";s:4:"test";s:1:"b";R:2;} [all …]
|
/PHP-7.2/ext/phar/tests/zip/files/ |
H A D | metadata.phar.inc | 3 $a = new Phar(dirname(__FILE__) . '/metadata.phar.zip'); 4 $a['a'] = 'a'; 5 $a['b'] = 'b'; 6 $a['b']->setMetadata('hi there'); 7 $a['c'] = 'c'; 8 $a['c']->setMetadata(array('hi', 'there')); 9 $a['d'] = 'd'; 10 $a['d']->setMetadata(array('hi'=>'there','foo'=>'bar'));
|
/PHP-7.2/ext/standard/tests/array/ |
H A D | 007.phpt | 8 echo '$a='.var_export($a,TRUE).";\n"; 13 $a = array( 14 'a'=>2, 30 'a'=>7, 44 echo '$a='.var_export($a,TRUE).";\n"; 82 echo '$a='.var_export($a,TRUE).";\n"; 99 echo '$a='.var_export($a,TRUE).";\n"; 105 echo '$a='.var_export($a,TRUE).";\n"; 111 echo '$a='.var_export($a,TRUE).";\n"; 117 echo '$a='.var_export($a,TRUE).";\n"; [all …]
|