Home
last modified time | relevance | path

Searched refs:a (Results 226 – 250 of 6239) sorted by relevance

12345678910>>...250

/PHP-7.4/ext/standard/tests/serialize/
H A Dserialization_arrays_001.phpt8 * Description: Returns a string representation of variable (which can later be unserialized)
13 * Description: Takes a string representation of variable and recreates it
21 $arr_circ = array(0, 1, -2, 3.333333, "a", array(), &$arr_circ);
28 $arr_asso = array("a" => "test");
29 $arr_asso[ "b" ] = &$arr_asso[ "a" ];
41a:7:{i:0;i:0;i:1;i:1;i:2;i:-2;i:3;d:3.333333000000000101437080957111902534961700439453125;i:4;s:1:…
52 string(1) "a"
67 string(1) "a"
78 ["a"]=>
83 string(37) "a:2:{s:1:"a";s:4:"test";s:1:"b";R:2;}"
[all …]
/PHP-7.4/ext/spl/tests/
H A Dbug69335.phpt5 $a = array(1=>1, 3=>3, 5=>5, 7=>7);
6 $a = new ArrayObject($a);
8 foreach ($a as $k => $v) {
11 $a['a'] = "?";
20 string(6) "a => ?"
H A Dfixedarray_021.phpt7 $a = new SplFixedArray();
9 var_dump(count($a));
10 var_dump($a->count());
35 var_dump(count($a));
36 var_dump($a->count());
37 var_dump($a);
55 $a["2"] = "foo";
56 $a["1"] = "foo";
57 $a["3"] = "0";
59 var_dump(isset($a["0"], $a[-1]), $a["1"]);
[all …]
/PHP-7.4/ext/standard/tests/file/
H A Dfputcsv_variation9.phpt35 "a+", "a+b", "a+t",
113 -- file opened in a+ --
124 -- file opened in a+b --
135 -- file opened in a+t --
245 -- file opened in a+ --
256 -- file opened in a+b --
267 -- file opened in a+t --
377 -- file opened in a+ --
509 -- file opened in a+ --
641 -- file opened in a+ --
[all …]
/PHP-7.4/Zend/tests/
H A Dgc_005.phpt7 $a = new stdClass();
8 $a->a = $a;
9 var_dump($a);
10 unset($a);
16 ["a"]=>
H A Dgc_021.phpt7 $a = array();
8 $a[0] =& $a;
9 $a[1] = array();
10 $a[1][0] =& $a[1];
12 $a =& $b;
H A Dbug38469.phpt5 $a = array();
6 $a[0] = $a;
7 var_dump($a);
13 $a = array();
14 $a[0] = $a;
15 var_dump($a);
H A Dbug78752.phpt7 $a = new stdClass;
8 $a->a = $a;
17 $a = new stdClass;
18 $a->a = $a;
H A Dbug79934.phpt8 // lines with only CRLF should not cause a parse error
9 eval("\$s1 = <<<HEREDOC\r\n a\r\n\r\n b\r\n HEREDOC;");
12 // lines with only a LF should not cause a parse error
13 eval("\$s2 = <<<HEREDOC\n a\n\n b\n HEREDOC;");
16 // lines with only a CR should not cause a parse error
17 eval("\$s3 = <<<HEREDOC\r a\r\r b\r HEREDOC;");
20 // lines with only whitespace should not cause a parse error
26 string(10) "a\r\n\r\nb"
27 string(6) "a\n\nb"
28 string(6) "a\r\rb"
[all …]
/PHP-7.4/ext/phar/tests/tar/files/
H A Dfrontcontroller5.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller5.phar.tar');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
H A Dfrontcontroller6.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller6.phar.tar');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
H A Dfrontcontroller7.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller7.phar.tar');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
/PHP-7.4/ext/phar/tests/zip/files/
H A Dfrontcontroller5.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller5.phar.zip');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
H A Dfrontcontroller6.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller6.phar.zip');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
H A Dfrontcontroller7.phar.inc3 $a = new Phar(dirname(__FILE__) . '/frontcontroller7.phar.zip');
4 $a['a.php'] = 'hio';
5 $a['a.jpg'] = 'hio';
6 $a['a.phps'] = '<?php function hio(){}';
7 $a->setStub('<?php
/PHP-7.4/ext/standard/tests/general_functions/
H A Dbug44394_2.phpt8 session.trans_sid_tags="a=href,area=href,frame=src,form="
9 url_rewriter.tags="a=href,area=href,frame=src,form="
19 $string = "<a href='a?q=1'>asd</a>";
21 output_add_rewrite_var('a', 'b');
37 <a href='a?q=1&a=b&PHPSESSID=%s'>asd</a>
/PHP-7.4/ext/phar/tests/
H A Dphar_buildfromiterator9.phpt12 var $a;
13 function __construct(array $a)
15 $this->a = $a;
19 return next($this->a);
23 return current($this->a);
27 return key($this->a);
31 return current($this->a);
35 return reset($this->a);
41 …var_dump($phar->buildFromIterator(new myIterator(array('a' => $a = fopen(basename(__FILE__, 'php')…
42 fclose($a);
[all …]
/PHP-7.4/ext/phar/tests/tar/
H A Dphar_buildfromiterator9.phpt12 var $a;
13 function __construct(array $a)
15 $this->a = $a;
19 return next($this->a);
23 return current($this->a);
27 return key($this->a);
31 return current($this->a);
35 return reset($this->a);
41 …var_dump($phar->buildFromIterator(new myIterator(array('a' => $a = fopen(basename(__FILE__, 'php')…
42 fclose($a);
[all …]
/PHP-7.4/ext/phar/tests/zip/
H A Dphar_buildfromiterator9.phpt12 var $a;
13 function __construct(array $a)
15 $this->a = $a;
19 return next($this->a);
23 return current($this->a);
27 return key($this->a);
31 return current($this->a);
35 return reset($this->a);
41 …var_dump($phar->buildFromIterator(new myIterator(array('a' => $a = fopen(basename(__FILE__, 'php')…
42 fclose($a);
[all …]
/PHP-7.4/tests/lang/
H A Dbug24658.phpt6 function no_typehint($a) {
7 var_dump($a);
9 function typehint(foo $a) {
10 var_dump($a);
12 function no_typehint_ref(&$a) {
13 var_dump($a);
15 function typehint_ref(foo &$a) {
16 var_dump($a);
19 $a = array(new foo(), 1, 2);
25 array_walk($a, 'no_typehint');
[all …]
/PHP-7.4/ext/standard/tests/strings/
H A Dstrip_tags_array.phpt6 $string = '<p>foo <b>bar</b> <a href="#">foobar</a></p>';
8 var_dump(strip_tags($string, ['a']));
9 var_dump(strip_tags($string, ['p', 'a']));
11 var_dump(strip_tags($string, ['p' => true, 'a' => false]));
12 var_dump(strip_tags($string, ['p' => 'a']));
23 string(30) "foo bar <a href="#">foobar</a>"
24 string(37) "<p>foo bar <a href="#">foobar</a></p>"
27 string(30) "foo bar <a href="#">foobar</a>"
/PHP-7.4/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();
40 …th the same name as their class will not be constructors in a future version of PHP; a has a depre…
41 Trying to invoke non static method a::a() without an object
H A Dbug49719.phpt2 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(25) "Property a does not exist"
/PHP-7.4/ext/standard/tests/assert/
H A Dassert03.phpt11 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 Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
38 assertion failed - a - %d,"$a != 0"
40 Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
41 assertion failed - b - %d,"$a != 0"
/PHP-7.4/Zend/tests/generators/
H A Dyield_precedence.phpt7 yield "a" . "b";
8 yield "a" or die;
9 yield "k" => "a" . "b";
10 yield "k" => "a" or die;
11 var_dump([yield "k" => "a" . "b"]);
12 yield yield "k1" => yield "k2" => "a" . "b";
13 yield yield "k1" => (yield "k2") => "a" . "b";
14 var_dump([yield "k1" => yield "k2" => "a" . "b"]);
15 var_dump([yield "k1" => (yield "k2") => "a" . "b"]);
26 1 => a
[all …]

Completed in 35 milliseconds

12345678910>>...250