/PHP-5.5/Zend/tests/ |
H A D | bug67985.phpt | 6 $a = ['zero', 'one', 'two']; 7 unset($a[2]); 8 $b = $a; 9 $a[] = 'three'; 12 var_dump($a === $b);
|
H A D | gc_007.phpt | 7 $a = array(array()); 8 $a[0][0] =& $a[0]; 9 var_dump($a[0]); 11 unset($a);
|
H A D | gc_013.phpt | 7 $a = array(); 9 $a[$i] =& $a; 11 $a[] = "xxx"; 12 unset($a);
|
H A D | bug35163_2.phpt | 5 $a = array(1); 6 $b = 'a'; 10 var_dump($a); 11 $a[0] = null; 12 $a = null;
|
H A D | bug68118.phpt | 2 Bug #68118: $a->foo .= 'test'; can leave $a->foo undefined 12 $a = new stdClass; 13 $a->undefined .= 'test'; 14 var_dump($a);
|
H A D | 026.phpt | 2 Trying assign value to property when an object is not returned in a function 7 public function a() { 13 $test->a()->a; 16 $test->a()->a = 1;
|
/PHP-5.5/ext/reflection/tests/ |
H A D | 004.phpt | 6 class a { 7 function a(){ 15 $a=new ReflectionClass("a"); 16 $m=$a->getMethod("a"); 31 $b = new a();
|
H A D | bug45765.phpt | 13 function test($a = self::BAR) { 16 function test2($a = parent::BAR) { 19 function test3($a = foo::BAR) { 22 function test4($a = foo2::BAR) { 54 Parameter #0 [ <optional> $a = 'foo's bar' ] 62 Parameter #0 [ <optional> $a = 'foobar' ] 70 Parameter #0 [ <optional> $a = 'foo's bar' ] 78 Parameter #0 [ <optional> $a = 'foobar' ]
|
/PHP-5.5/ext/phar/tests/ |
H A D | 018U.phpt | 19 $files['a'] = 'a'; 20 $files['b/a'] = 'b'; 25 while (false !== ($a = readdir($dir))) { 26 var_dump($a); 27 var_dump(is_dir('phar://hio/' . $a)); 33 unicode(1) "a"
|
/PHP-5.5/scripts/dev/generate-phpt/tests/ |
H A D | gtFunctionTest.php | 52 $a = $f->getValidArgumentLists(); 54 $this->assertEquals('$ver1, $ver2', $a[0]); 55 $this->assertEquals('$ver1, $ver2, $oper', $a[1]); 63 $a = $f->getInitialisationStatements(); 65 $this->assertEquals('$ver1 = ', $a[0]); 66 $this->assertEquals('$ver2 = ', $a[1]); 67 $this->assertEquals('$oper = ', $a[2]);
|
/PHP-5.5/tests/lang/ |
H A D | passByReference_008.phpt | 19 $a = 'original.a'; 20 valRef($a, $a); 21 var_dump($a); 32 string(10) "original.a" 33 string(10) "original.a"
|
H A D | engine_assignExecutionOrder_008.phpt | 8 $a[0][1] = 'good'; 9 $a[1][1] = 'bad'; 12 echo $a[$i=f()][++$i]; 17 echo $a[$$x=f()][++$$x]; 21 echo $a[${'i'}=f()][++${'i'}]; 25 echo $a[$i[0]=f()][++$i[0]]; 29 echo $a[$i[0][0]=f()][++$i[0][0]]; 33 echo $a[$i->p=f()][++$i->p]; 37 echo $a[$i->p->q=f()][++$i->p->q]; 41 echo $a[$i->p[0]=f()][++$i->p[0]]; [all …]
|
H A D | foreachLoop.006.phpt | 2 Foreach loop tests - error case: key is a reference. 5 $a = array("a","b","c"); 6 foreach ($a as &$k=>$v) { 11 Fatal error: Key element cannot be a reference in %s on line 3
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | str_shuffle_basic.phpt | 6 * Description: Randomly shuffles a string 21 // For a given i/p string ensure that all combinations are 22 // generated given a reasonable sample of calls 23 $a = array(); 36 if (empty($a[$op])) { 38 $a[$op] = 0; 42 $a[$op]++; 45 $combinations = count($a); 48 echo "TEST FAILED.. Only $combinations out of a possible 24 combinations used\n";
|
H A D | strip_tags_variation9.phpt | 8 * Description: Strips HTML and PHP tags from a string 21 "<a>This is a hyper text tag</a>", 23 "<p>This is a paragraph</p>", 27 $quotes = "<html><a><p><b><?php"; 47 string(31) "<a>This is a hyper text tag</a>" 51 string(26) "<p>This is a paragraph</p>" 53 string(62) "<b>This is a text in bold letters
|
H A D | strspn.phpt | 5 $a = "22222222aaaa bbb1111 cccc"; 7 var_dump($a); 9 var_dump(strspn($a,$b)); 10 var_dump(strspn($a,$b,2)); 11 var_dump(strspn($a,$b,2,3));
|
/PHP-5.5/ext/ereg/tests/ |
H A D | ereg_basic_001.phpt | 30 --> Pattern: '..(a|b|c)(a|b|c)..'; string: '--- ab ---' 38 string(1) "a" 68 string(1) "a" 70 --> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; string: '--- aaa bbb ccc ddd ---' 78 string(1) "a" 96 --> Pattern: '\a'; string: 'a' 102 string(1) "a" 104 --> Pattern: '[0-9][^0-9]'; string: '2a' 110 string(2) "2a" 145 --> Pattern: '[[:print:]]{3}'; string: ' a ' [all …]
|
H A D | eregi_basic_001.phpt | 30 --> Pattern: '..(a|b|c)(a|b|c)..'; string: '--- ab ---' 38 string(1) "a" 68 string(1) "a" 70 --> Pattern: '(a{1})(a{1,}) (b{1,3}) (c+) (d?ddd|e)'; string: '--- aaa bbb ccc ddd ---' 78 string(1) "a" 96 --> Pattern: '\a'; string: 'a' 102 string(1) "a" 104 --> Pattern: '[0-9][^0-9]'; string: '2a' 110 string(2) "2a" 145 --> Pattern: '[[:print:]]{3}'; string: ' a ' [all …]
|
/PHP-5.5/ext/standard/tests/array/ |
H A D | array_reverse_variation2.phpt | 113 ["a"]=> 128 ["a"]=> 143 ["a"]=> 158 ["a"]=> 173 ["a"]=> 188 ["a"]=> 203 ["a"]=> 218 ["a"]=> 233 ["a"]=> 268 ["a"]=> [all …]
|
H A D | array_uintersect_uassoc_basic.phpt | 14 static function comp_func_cr($a, $b) { 15 if ($a->priv_member === $b->priv_member) return 0; 16 return ($a->priv_member > $b->priv_member) ? 1 : -1; 18 static function comp_func_key($a, $b) { 19 if ($a === $b) return 0; 20 return ($a > $b) ? 1 : -1; 23 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1… 25 $result = array_uintersect_uassoc($a, $b, array("cr", "comp_func_cr"), array("cr", "comp_func_key")…
|
H A D | array_udiff_uassoc_basic.phpt | 14 static function comp_func_cr($a, $b) { 15 if ($a->priv_member === $b->priv_member) return 0; 16 return ($a->priv_member > $b->priv_member) ? 1 : -1; 18 static function comp_func_key($a, $b) { 19 if ($a === $b) return 0; 20 return ($a > $b) ? 1 : -1; 23 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1… 25 $result = array_udiff_uassoc($a, $b, array("cr", "comp_func_cr"), array("cr", "comp_func_key"));
|
/PHP-5.5/ext/json/tests/ |
H A D | 004.phpt | 8 $a = new stdclass; 9 $a->prop = $a; 11 var_dump($a); 15 var_dump(json_encode($a)); 20 var_dump(json_encode($a, JSON_PARTIAL_OUTPUT_ON_ERROR));
|
/PHP-5.5/ext/phar/tests/cache_list/files/ |
H A D | phar_oo_test.inc | 7 $file = '<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>'; 17 $files['a.php'] = '<?php echo "This is a.php\n"; ?>'; 24 $files['a.csv'] =<<<EOF 26 2,a,b 31 $files['a.csv'] =<<<EOF 33 2,a,b 42 $files['a.php'] = '<?php echo new new class;';
|
/PHP-5.5/ext/phar/tests/files/ |
H A D | phar_oo_test.inc | 7 $file = (binary)'<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>'; 17 $files['a.php'] = '<?php echo "This is a.php\n"; ?>'; 24 $files['a.csv'] =<<<EOF 26 2,a,b 31 $files['a.csv'] =<<<EOF 33 2,a,b 42 $files['a.php'] = '<?php echo new new class;';
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | userstreams_002.phpt | 37 test("return value not a stream resource", $fd, "foo"); 53 Warning: stream_select(): cannot represent a stream of type user-space as a select()able descriptor… 60 Warning: stream_select(): cannot represent a stream of type user-space as a select()able descriptor… 65 ------ return value not a stream resource: ------- 67 Warning: stream_select(): supplied argument is not a valid stream resource in %s 69 Warning: stream_select(): test_wrapper::stream_cast must return a stream resource in %s 71 Warning: stream_select(): cannot represent a stream of type user-space as a select()able descriptor… 80 Warning: stream_select(): cannot represent a stream of type user-space as a select()able descriptor… 89 Warning: stream_select(): cannot represent a stream of type user-space as a select()able descriptor… 91 Warning: stream_select(): cannot represent a stream of type user-space as a select()able descriptor…
|