/PHP-7.1/ext/standard/tests/assert/ |
H A D | assert03.phpt | 11 function a($file,$line,$myev) 13 echo "assertion failed - a - $line,\"$myev\"\n"; 25 $a = 0; 27 assert_options(ASSERT_CALLBACK,"a"); 28 assert('$a != 0'); 32 assert('$a != 0'); 37 assertion failed - a - %d,"$a != 0" 38 assertion failed - b - %d,"$a != 0"
|
/PHP-7.1/ext/pdo_mysql/tests/ |
H A D | bug70272.phpt | 13 $a = new Stdclass(); 14 $a->a = &$a; 22 $a->c = $db; 23 $a->b = $db->prepare("select 1"); 24 $a->d = $db->prepare("select 2"); 25 $a->e = $db->prepare("select 3"); 26 $a->f = $db->prepare("select 4");
|
/PHP-7.1/ext/pcre/tests/ |
H A D | bug42945.phpt | 6 var_dump(preg_match_all('/\b/', "a'", $m, PREG_OFFSET_CAPTURE)); 9 var_dump(preg_split('/\b/', "a'")); 10 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_OFFSET_CAPTURE)); 11 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_NO_EMPTY)); 12 var_dump(preg_split('/\b/', "a'", -1, PREG_SPLIT_NO_EMPTY|PREG_SPLIT_OFFSET_CAPTURE)); 40 string(1) "a" 55 string(1) "a" 69 string(1) "a" 77 string(1) "a"
|
/PHP-7.1/Zend/tests/ |
H A D | bug30889.phpt | 10 $this->values = array('a' => 0); 24 $test->a++; // __get(), then __set() 25 ++$test->a; 28 get a (returns 0) 29 set a = 1 (a was 0) 30 get a (returns 1) 31 set a = 2 (a was 1)
|
H A D | closure_020.phpt | 10 $a = &$this; 11 $this->a = function() use (&$a) { return $a; }; 12 var_dump($this->a->__invoke()); 13 var_dump(is_a($this->a, 'closure')); 14 var_dump(is_callable($this->a)); 16 return $this->a; 29 ["a"]=> 33 ["a"]=>
|
H A D | bug70805_2.phpt | 15 if (isset($GLOBALS["a"])) { 16 unset($GLOBALS["a"]); 21 $a = new A; 22 $a->b = new B; 23 $a->b->a = $a; 36 unset($a);
|
H A D | bug39449.phpt | 15 $a =new A(); 16 $a->arr = array('a','b','c'); 18 $b = &$a->arr; 21 foreach ($a->arr as $k => $v) { 25 $a->arr[]='d'; 27 foreach ($a->arr as $k => $v) { 32 0 => a 36 0 => a
|
H A D | property_exists.phpt | 8 $a = new A; 9 var_dump(property_exists($a, "prot")); 10 var_dump(property_exists($a, "prot2")); 11 var_dump(property_exists($a, "prot3")); 19 $a = new A; 20 var_dump(property_exists($a, "prot")); 21 var_dump(property_exists($a, "prot2")); 22 var_dump(property_exists($a, "prot3")); 38 $a = new a; 39 $a->nonstaticTest();
|
H A D | gc_014.phpt | 7 $a = new stdClass(); 9 $b =& $a; 10 $a->{"a".$i} = $a; 13 $a->b = "xxx"; 14 unset($a);
|
H A D | bug53432.phpt | 7 var_dump($str[0] = 'a'); 11 var_dump($str[5] = 'a'); 15 var_dump($str[-1] = 'a'); 19 var_dump($str['foo'] = 'a'); 24 var_dump($str[] = 'a'); 48 string(1) "a" 49 string(1) "a" 50 string(1) "a" 51 string(6) " a" 58 string(1) "a" [all …]
|
/PHP-7.1/ext/reflection/tests/ |
H A D | bug49719.phpt | 2 Bug #49719 (ReflectionClass::hasProperty returns true for a private property in base class) 7 private $a; 17 var_dump(property_exists('b', 'a')); 18 var_dump(property_exists($b, 'a')); 19 var_dump($ref->hasProperty('a')); 20 var_dump($ref->getProperty('a')); 26 private $a = 1; 30 private $a = 2; 34 $prop = $b2->getProperty('a'); 43 %string|unicode%(25) "Property a does not exist"
|
H A D | ReflectionObject_isInstance_basic.phpt | 18 echo "is $name a $class? "; 25 is myA a A? bool(true) 26 is myB a A? bool(true) 27 is myX a A? bool(false) 28 is myA a B? bool(false) 29 is myB a B? bool(true) 30 is myX a B? bool(false) 31 is myA a X? bool(false) 32 is myB a X? bool(false) 33 is myX a X? bool(true)
|
/PHP-7.1/ext/simplexml/tests/ |
H A D | bug66084_1.phpt | 8 echo json_encode(simplexml_load_string('<a><b/><c><x/></c></a>')->c), "\n"; 9 echo json_encode(simplexml_load_string('<a><b/><c><x/></c></a>')), "\n"; 10 echo json_encode(simplexml_load_string('<a><b/><d/><c><x/></c></a>')), "\n"; 11 echo json_encode(simplexml_load_string('<a><b/><c><d/><x/></c></a>')), "\n"; 12 echo json_encode(simplexml_load_string('<a><b/><c><d><x/></d></c></a>')), "\n";
|
H A D | bug41867.phpt | 8 $a = simplexml_load_string("<a><b><c/></b></a>"); 9 echo $a->getName()."\n"; 10 echo $a->b->getName()."\n"; 11 echo $a->b->c->getName()."\n"; 15 a
|
/PHP-7.1/ext/standard/tests/array/ |
H A D | bug28974.phpt | 5 $a = $b = $c = array(0,1,2,3,4,5); 6 print_r($a); 8 print_r(array_slice($a,2,2147483645)); 11 print_r(array_slice($a,2,2147483646)); 12 echo 'print_r(array_splice($a,2,1));'."\n"; 13 print_r(array_splice($a,2,1)); 14 echo "\$a is :"; 15 print_r($a); 51 print_r(array_splice($a,2,1)); 56 $a is :Array
|
/PHP-7.1/ext/phar/tests/ |
H A D | badparameters.phpt | 20 $a = new Phar(array()); 43 $a->delete('oops'); 54 $a->setAlias('oops'); 72 $a->setStub('oops'); 82 $a->setStub(array()); 102 $a->compress(1); 112 $a->copy(array()); 114 $a->copy('a', 'b'); 125 $a->offsetUnset('a'); 133 $a->setMetadata('a'); [all …]
|
H A D | rename.phpt | 17 $files['a'] = 'a'; 21 echo file_get_contents($pname . '/a') . "\n"; 22 rename($pname . '/a', $pname . '/b'); 24 echo file_get_contents($pname . '/a') . "\n"; 29 a 30 a 32 …arning: file_get_contents(phar://%srename.phar.php/a): failed to open stream: phar error: "a" is n…
|
/PHP-7.1/ext/standard/tests/file/ |
H A D | fgetcsv_variation12.phpt | 33 "a+", "a+b", "a+t"); 53 // write another line of text and a blank line 55 // working when only a blank line is read 166 -- Testing fgetcsv() with file opened using a+ mode -- 178 -- Testing fgetcsv() with file opened using a+b mode -- 190 -- Testing fgetcsv() with file opened using a+t mode -- 274 -- Testing fgetcsv() with file opened using a+ mode -- 286 -- Testing fgetcsv() with file opened using a+b mode -- 298 -- Testing fgetcsv() with file opened using a+t mode -- 382 -- Testing fgetcsv() with file opened using a+ mode -- [all …]
|
/PHP-7.1/tests/lang/ |
H A D | 007.phpt | 6 $a = 10; 10 static $a=1; 14 echo "$a $b "; 15 $a++; 17 echo "$a $c "; 21 echo "$a $b $c "; 23 echo "$a $b $c ";
|
/PHP-7.1/ext/phar/tests/files/ |
H A D | frontcontroller3.phar | 2 function s($a) 4 static $b = array(b"/hi" => b"a.phps"); 5 if (isset($b[$a])) return $b[$a]; 6 return $a; 12 va.php�kJ��жa.jpg�kJ��жa.phps…
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | phpcredits.phpt | 20 %a 23 %a 26 %a 29 %a 32 %a 35 %a 38 %a 41 %a 53 %a
|
/PHP-7.1/ext/intl/tests/ |
H A D | collator_asort.phpt | 63 array( 'a' => 'a' , 67 array( 'a' => 'a' , 68 'aaa'=> 'a' , 127 'a' => 'k' ) 142 'a' => 'k', 149 'a' => 'a', 157 'a' => 'a', 158 'aaa' => 'a', 159 'aa' => 'a', 207 3 => ' a', [all …]
|
H A D | collator_asort_variant2.phpt | 63 array( 'a' => 'a' , 67 array( 'a' => 'a' , 68 'aaa'=> 'a' , 127 'a' => 'k' ) 142 'a' => 'k', 149 'a' => 'a', 157 'a' => 'a', 158 'aaa' => 'a', 159 'aa' => 'a', 207 3 => ' a', [all …]
|
/PHP-7.1/ext/pdo_oci/tests/ |
H A D | pdo_oci_quote1.phpt | 22 $a = array(null, "", "a", "ab", "abc", "ab'cd", "a\b\n", "'", "''", "a'", "'z", "a''b", '"'); 23 foreach ($a as $u) { 61 Unquoted : string(1) "a" 62 Quoted : string(3) "'a'" 67 string(1) "a" 97 Unquoted : string(4) "a\b 99 Quoted : string(6) "'a\b 105 string(4) "a\b 127 Unquoted : string(2) "a'" 133 string(2) "a'" [all …]
|
/PHP-7.1/ext/phar/tests/zip/ |
H A D | rmdir.phpt | 18 $phar->addEmptyDir('a'); 19 $phar['a/x'] = 'a'; 24 echo file_get_contents($alias . '/a/x') . "\n"; 25 var_dump(rmdir($alias . '/a')); 26 echo file_get_contents($alias . '/a/x') . "\n"; 27 unlink($alias . '/a/x'); 28 var_dump(rmdir($alias . '/a')); 33 a 37 a
|