Home
last modified time | relevance | path

Searched refs:a (Results 451 – 475 of 6311) sorted by relevance

1...<<11121314151617181920>>...253

/PHP-5.5/Zend/tests/
H A Dbug67985.phpt6 $a = ['zero', 'one', 'two'];
7 unset($a[2]);
8 $b = $a;
9 $a[] = 'three';
12 var_dump($a === $b);
H A Dgc_007.phpt7 $a = array(array());
8 $a[0][0] =& $a[0];
9 var_dump($a[0]);
11 unset($a);
H A Dgc_013.phpt7 $a = array();
9 $a[$i] =& $a;
11 $a[] = "xxx";
12 unset($a);
H A Dbug35163_2.phpt5 $a = array(1);
6 $b = 'a';
10 var_dump($a);
11 $a[0] = null;
12 $a = null;
H A Dbug68118.phpt2 Bug #68118: $a->foo .= 'test'; can leave $a->foo undefined
12 $a = new stdClass;
13 $a->undefined .= 'test';
14 var_dump($a);
H A D026.phpt2 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 D004.phpt6 class a {
7 function a(){
15 $a=new ReflectionClass("a");
16 $m=$a->getMethod("a");
31 $b = new a();
H A Dbug45765.phpt13 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 D018U.phpt19 $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 DgtFunctionTest.php52 $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 DpassByReference_008.phpt19 $a = 'original.a';
20 valRef($a, $a);
21 var_dump($a);
32 string(10) "original.a"
33 string(10) "original.a"
H A Dengine_assignExecutionOrder_008.phpt8 $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 DforeachLoop.006.phpt2 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 Dstr_shuffle_basic.phpt6 * 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 Dstrip_tags_variation9.phpt8 * 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 Dstrspn.phpt5 $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 Dereg_basic_001.phpt30 --> 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 Deregi_basic_001.phpt30 --> 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 Darray_reverse_variation2.phpt113 ["a"]=>
128 ["a"]=>
143 ["a"]=>
158 ["a"]=>
173 ["a"]=>
188 ["a"]=>
203 ["a"]=>
218 ["a"]=>
233 ["a"]=>
268 ["a"]=>
[all …]
H A Darray_uintersect_uassoc_basic.phpt14 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 Darray_udiff_uassoc_basic.phpt14 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 D004.phpt8 $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 Dphar_oo_test.inc7 $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 Dphar_oo_test.inc7 $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 Duserstreams_002.phpt37 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…

Completed in 50 milliseconds

1...<<11121314151617181920>>...253