/PHP-5.5/tests/lang/ |
H A D | returnByReference.005.phpt | 2 Returning a reference from a method 21 unset($a, $b); 22 $a = 4; 24 $a++; 25 var_dump($a, $b); 28 unset($a, $b); 29 $a = 4; 31 $a++; 35 unset($a, $b); 36 $a = 4; [all …]
|
H A D | execution_order.phpt | 13 $a = "bad"; 16 $c = $a.($a=$b); 20 $a = "bad"; 22 $c = ($a=$b).$a; 113 $a = 100; 116 echo $a + ($a=$b); 122 echo ($a=$b) + $a; 130 echo $a[$i++] + $a[$i++]; 135 echo $a[++$i] + $a[++$i]; 140 echo $a[$i] + ($a[$i]=400); [all …]
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | file_get_contents_variation9.phpt | 13 * Description: Read the entire file into a string 26 //Data should be more than the size of a link. 28 fwrite($h, b"Here is a repeated amount of data"); 51 …a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is… 52 …a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is… 53 …a repeated amount of dataHere is a repeated amount of dataHere is a repeated amount of dataHere is…
|
/PHP-5.5/ext/simplexml/tests/ |
H A D | bug45553.phpt | 8 <xml xmlns:a="http://a"> 9 <data a:label="I am A" label="I am Nothing">test1</data> 10 <a:data a:label="I am a:A" label="I am a:Nothing">test2</a:data> 15 $x->registerXPathNamespace("a", "http://a"); 17 $atts = $x->xpath("/xml/data/@a:label"); 19 $atts = $x->xpath("/xml/a:data"); 21 $atts = $x->xpath("/xml/a:data/@a:label"); 23 $atts = $x->xpath("/xml/a:data/@label"); 31 I am a:Nothing 32 I am a:A [all …]
|
/PHP-5.5/ext/pcre/pcrelib/testdata/ |
H A D | testoutput1 | 484 /^[a-zA-Z\d][a-zA-Z\d\-]*(\.[a-zA-Z\d][a-zA-z\d\-]*)*\.$/ 505 /^\*\.[a-z]([a-z\-\d]*[a-z\d]+)?(\.[a-z]([a-z\-\d]*[a-z\d]+)?)*$/ 817 /^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][… 2942 /a[^a]b/ 2956 /a[^a]b/s 3814 /^(a\1?)(a\1?)(a\2?)(a\3?)$/ 5627 /(?(?!a)a|b)/ 5629 /(?(?!a)b|a)/ 5633 /(?(?=a)b|a)/ 6759 /(a)b|(a)c/ [all …]
|
/PHP-5.5/ext/filter/tests/ |
H A D | 045.phpt | 8 $ret = filter_var("0xff", FILTER_VALIDATE_INT, $a); 11 echo ($ret === 255 && is_string($a["flags"]) && $a["flags"] == FILTER_FLAG_ALLOW_HEX)?"ok\n":"bug\n… 12 $a = (string)FILTER_FLAG_ALLOW_HEX; 13 $ret = filter_var("0xff", FILTER_VALIDATE_INT, $a); 14 echo ($ret === 255 && is_string($a) && $a == FILTER_FLAG_ALLOW_HEX)?"ok\n":"bug\n"; 16 $ret = filter_var_array(array("test"=>"0xff"), $a); 17 echo ($ret["test"] === 255 && is_string($a["test"]["filter"]) && $a["test"]["filter"] == FILTER_VAL… 18 echo ($ret["test"] === 255 && is_string($a["test"]["flags"]) && $a["test"]["flags"] == FILTER_FLAG_… 19 $a = array("test"=>(string)FILTER_VALIDATE_INT); 20 $ret = filter_var_array(array("test"=>"255"), $a); [all …]
|
/PHP-5.5/ext/wddx/tests/ |
H A D | bug48562.phpt | 14 $a['x'] = 'foo'; 15 $a['x'] = &$a; 17 var_dump(wddx_serialize_vars($a)); 19 // replace $a - the recursion detection seems to be causing $a to be not an array here, maybe its i… 20 // replacing $a with a new array() allows this test to still check for 2 things 21 // 1. recursion detection in &$a; 22 // 2. recursion detection in adding $a to itself and then serializing $a 23 // the one thing the test won't check is using $a as an array after doing &$a; which isn't really a… 24 $a = array(); 25 $a['x'] = 'foo'; [all …]
|
/PHP-5.5/Zend/tests/ |
H A D | add_001.phpt | 6 $a = array(1,2,3); 9 $c = $a + $b; 12 $a = array(1,2,3); 15 $c = $a + $b; 18 $a = array("a"=>"aaa",2,3); 21 $c = $a + $b; 24 $a += $b; 27 $a += $a; 50 ["a"]=> 58 ["a"]=> [all …]
|
H A D | bug52940.phpt | 5 function foo($a) { 6 $a++; 7 var_dump($a); 9 function bar(&$a) { 10 $a++; 11 var_dump($a); 13 $a = 1; 14 call_user_func_array("foo", array(&$a)); 15 var_dump($a); 16 call_user_func_array("bar", array(&$a)); [all …]
|
H A D | bug35239.phpt | 5 $a = new stdClass; 6 $a->x0 = new stdClass; 7 $a->x0->y0 = 'a'; 8 $a->x0->y1 =& $a->x0; 9 $a->x0->y2 =& $a->x0; 10 $a->x0->y0 = 'b'; 11 var_dump($a); 12 $a->x0->y1 = "ok\n"; 13 echo $a->x0;
|
H A D | magic_methods_001.phpt | 7 function __unset($a) { 9 var_dump($a); 12 public function __call($a, $b) { 14 var_dump($a); 29 $a = new foo; 31 $a->sdfdsa(); 33 $a::test(); 35 clone $a; 37 var_dump((string)$a); 39 unset($a->a); [all …]
|
/PHP-5.5/ext/pcre/tests/ |
H A D | bug47229.phpt | 9 preg_match('/[a\-c]+/', 'a---b', $m); 12 preg_match('/[a\-c]+/', 'a\-', $m); 15 preg_match("/a\-{2,}/", 'a----a', $m); 18 preg_match("/a\-{1,}/", 'a\----a', $m); 26 %string|unicode%(4) "a---" 30 %string|unicode%(1) "a" 34 %string|unicode%(5) "a----"
|
H A D | pcre_count.phpt | 5 $regex = '/(([0-9a-z]+)-([0-9]+))-(([0-9]+)-([0-9]+))/'; 7 $string= '1-2-3-4 a-2-3-4 1-a-3-4 1-2-a-4 1-2-3-a a-a-a-a 4-3-2-1 100-200-300-400-500-600-700-800'; 13 $regex = '/([a-z]+)/'; 33 string(56) "xxxx xxxx 1-a-3-4 1-2-a-4 1-2-3-a a-a-a-a xxxx xxxx-xxxx"
|
/PHP-5.5/ext/phar/tests/cache_list/files/ |
H A D | frontcontroller3.phar.inc | 3 $a = new Phar(dirname(__FILE__) . '/frontcontroller3.phar'); 4 $a['a.php'] = 'hio'; 5 $a['a.jpg'] = 'hio'; 6 $a['a.phps'] = '<?php function hio(){}'; 7 $a->setStub('<?php 8 function s($a) 10 static $b = array(b"/hi" => "a.phps"); 11 if (isset($b[$a])) return $b[$a]; 12 return $a;
|
/PHP-5.5/ext/reflection/tests/ |
H A D | ReflectionClass_isInstance_basic.phpt | 32 is myA a A? bool(true) 33 is myB a A? bool(true) 34 is myC a A? bool(false) 35 is myX a A? bool(false) 36 is myA a B? bool(false) 37 is myB a B? bool(true) 38 is myC a B? bool(false) 39 is myX a B? bool(false) 42 is myC a C? bool(true) 46 is myC a I? bool(true) [all …]
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | sprintf_variation23.phpt | 50 string(1) "%a" 52 string(1) "%a" 58 %a" 59 string(1) "%a" 60 string(1) "%a" 65 string(1) "%a" 66 string(1) "%a" 67 string(1) "%a" 73 %a" 74 string(1) "%a" [all …]
|
/PHP-5.5/ext/standard/tests/serialize/ |
H A D | serialization_arrays_004.phpt | 33 $a[0] = &$a; 34 $a[1] = 1; 35 $a[2] = 1; 36 check($a); 40 $a[0] = &$a; 41 $a[1] = &$a; 42 $a[2] = 1; 43 check($a); 47 $a[0] = &$a; 48 $a[1] = &$a; [all …]
|
/PHP-5.5/ext/spl/tests/ |
H A D | array_023.phpt | 13 $a = new Name(); 14 var_dump($a); 17 $a = unserialize(serialize($a)); 19 var_dump($a); 29 $a = new Bla(); 30 var_dump($a); 33 $a = unserialize(serialize($a)); 35 var_dump($a); 42 string(1) "a" 51 string(1) "a" [all …]
|
/PHP-5.5/ext/phar/tests/tar/files/ |
H A D | frontcontroller3.phar.inc | 3 $a = new Phar(dirname(__FILE__) . '/frontcontroller3.phar.tar'); 4 $a['a.php'] = 'hio'; 5 $a['a.jpg'] = 'hio'; 6 $a['a.phps'] = '<?php function hio(){}'; 7 $a->setStub('<?php 8 function s($a) 10 static $b = array(b"/hi" => b"a.phps"); 11 if (isset($b[$a])) return $b[$a]; 12 return $a;
|
/PHP-5.5/ext/phar/tests/files/ |
H A D | frontcontroller3.phar.inc | 3 $a = new Phar(dirname(__FILE__) . '/frontcontroller3.phar'); 4 $a['a.php'] = 'hio'; 5 $a['a.jpg'] = 'hio'; 6 $a['a.phps'] = '<?php function hio(){}'; 7 $a->setStub('<?php 8 function s($a) 10 static $b = array(b"/hi" => b"a.phps"); 11 if (isset($b[$a])) return $b[$a]; 12 return $a;
|
/PHP-5.5/ext/phar/tests/zip/files/ |
H A D | frontcontroller3.phar.inc | 3 $a = new Phar(dirname(__FILE__) . '/frontcontroller3.phar.zip'); 4 $a['a.php'] = 'hio'; 5 $a['a.jpg'] = 'hio'; 6 $a['a.phps'] = '<?php function hio(){}'; 7 $a->setStub('<?php 8 function s($a) 10 static $b = array(b"/hi" => b"a.phps"); 11 if (isset($b[$a])) return $b[$a]; 12 return $a;
|
/PHP-5.5/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-5.5/ext/ctype/tests/ |
H A D | ctype_xdigit_variation2.phpt | 32 character code 48 is a hexadecimal 'digit' 33 character code 49 is a hexadecimal 'digit' 34 character code 50 is a hexadecimal 'digit' 35 character code 51 is a hexadecimal 'digit' 36 character code 52 is a hexadecimal 'digit' 37 character code 53 is a hexadecimal 'digit' 38 character code 54 is a hexadecimal 'digit' 39 character code 55 is a hexadecimal 'digit' 40 character code 56 is a hexadecimal 'digit' 41 character code 57 is a hexadecimal 'digit' [all …]
|
H A D | ctype_lower_variation2.phpt | 32 character code 97 is a lower case character 33 character code 98 is a lower case character 34 character code 99 is a lower case character 35 character code 100 is a lower case character 36 character code 101 is a lower case character 37 character code 102 is a lower case character 38 character code 103 is a lower case character 39 character code 104 is a lower case character 40 character code 105 is a lower case character 41 character code 106 is a lower case character [all …]
|
/PHP-5.5/Zend/ |
H A D | zend_multiply.h | 29 : "0"(a), "r"(b), "1"(0)); \ 30 if (usedval) (dval) = (double) (a) * (double) (b); \ 41 : "0"(a), "r"(b), "1"(0)); \ 42 if (usedval) (dval) = (double) (a) * (double) (b); \ 53 : "r"(a), "r"(b)); \ 54 if (usedval) (dval) = (double) (a) * (double) (b); \ 66 : "X"(a), "X"(b)); \ 67 if (usedval) (dval) = (double) (a) * (double) (b); \ 74 zend_long64 __result = (zend_long64) (a) * (zend_long64) (b); \ 87 long __lres = (a) * (b); \ [all …]
|