Home
last modified time | relevance | path

Searched refs:new (Results 151 – 175 of 5774) sorted by relevance

12345678910>>...231

/PHP-7.3/ext/spl/tests/
H A Dbug75155.phpt6 $array_a = new ArrayIterator(array('a', 'b', 'c'));
7 $array_b = new ArrayIterator(array('d', 'e', 'f'));
9 $iterator = new AppendIterator;
12 $iterator2 = new AppendIterator;
H A Diterator_029.phpt8 foreach(new RegexIterator(new ArrayIterator($ar), "/2/") as $k => $v)
17 foreach(new RegexIterator(new ArrayIterator($ar), "/2/", 0, RegexIterator::USE_KEY) as $k => $v)
H A DrecursiveIteratorIterator_endchildren_error.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
14 throw new Exception;
19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur…
23 $recItIt2 = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
H A Diterator_033.phpt6 $it = new ParentIterator(new RecursiveArrayIterator(array(1,array(21,22, array(231)),3)));
8 foreach(new RecursiveIteratorIterator($it) as $k=>$v)
16 foreach(new RecursiveIteratorIterator($it, 1) as $k=>$v)
/PHP-7.3/Zend/tests/
H A Dbug49893.phpt8 throw new Exception("2");
16 $this->a = new A();
17 throw new Exception("1");
21 $b = new B();
H A Dbug40757.phpt15 $base=new Base();
16 print_r($base->getFields(new Base()));
17 $child=new Child();
18 print_r($child->getFields(new Base()));
H A Dbug70944.phpt6 $e = new Exception("Foo");
8 throw new Exception("Bar", 0, $e);
17 $e = new Exception("Foo");
19 throw new Exception("Bar", 0, $e);
21 throw new Exception("Dummy", 0, $e);
H A Dbug74053.phpt12 static $new;
17 self::$b = new b;
18 self::$new[] = new a;
21 new a;
H A Dns_072.phpt23 new bar(new test);
24 new bar(null);
25 new bar(new \stdclass);
H A Dns_085.phpt10 new foo;
11 new bar;
18 new foo1;
19 new foo;
/PHP-7.3/ext/reflection/tests/
H A DReflectionFunction_isGenerator_basic.phpt11 $rf1 = new ReflectionFunction($closure1);
14 $rf2 = new ReflectionFunction($closure2);
25 $rf1 = new ReflectionFunction('func1');
28 $rf2 = new ReflectionFunction('func2');
41 $rc = new ReflectionClass('Foo');
H A Dbug75231.phpt20 print_r((new ReflectionMethod(B::class, 'method'))->invoke(new A()).PHP_EOL);
21 print_r((new ReflectionProperty(B::class, 'prop'))->getValue(new A()).PHP_EOL);
/PHP-7.3/ext/intl/tests/
H A Dmsgfmt_format_datetime.phpt18 $dt = new DateTime("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon"));
19 $dti = new DateTimeImmutable("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon"));
21 $mf = new MessageFormatter('en_US', $fmt);
H A Ddateformat_create_cal_arg_variant3.phpt16 $cal = new IntlGregorianCalendar('UTC', NULL);
17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
25 $cal = new IntlGregorianCalendar('UTC', NULL);
26 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
34 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
38 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
H A Ddateformat_create_cal_arg_variant4.phpt16 $cal = new IntlGregorianCalendar('UTC', NULL);
17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
25 $cal = new IntlGregorianCalendar('UTC', NULL);
26 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
34 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
38 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
H A Ddateformat_create_cal_arg_variant5.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
33 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
37 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
H A Ddateformat_create_cal_arg_variant2.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
33 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
37 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
/PHP-7.3/ext/dba/
H A Ddba_tcadb.c90 char *value, *new = NULL; in DBA_FETCH_FUNC() local
98 new = estrndup(value, value_size); in DBA_FETCH_FUNC()
102 return new; in DBA_FETCH_FUNC()
153 char *value, *new = NULL; in DBA_FIRSTKEY_FUNC() local
162 new = estrndup(value, value_size); in DBA_FIRSTKEY_FUNC()
166 return new; in DBA_FIRSTKEY_FUNC()
173 char *value, *new = NULL; in DBA_NEXTKEY_FUNC() local
180 new = estrndup(value, value_size); in DBA_NEXTKEY_FUNC()
184 return new; in DBA_NEXTKEY_FUNC()
/PHP-7.3/ext/date/tests/
H A Dbug52480.phpt8 $expectedDiff = (array) new DateInterval('P30D');
16 $start = new DateTime('2017-03-01', new DateTimeZone($timezone));
17 $end = new DateTime('2017-03-31', new DateTimeZone($timezone));
H A DDateTimeZone_construct_error.phpt2 Test new DateTimeZone() : error conditions
6 * Description: Returns new DateTimeZone object
15 echo "\n-- Testing new DateTimeZone() with more than expected no. of arguments --\n";
19 new DateTimeZone($timezone, $extra_arg);
29 -- Testing new DateTimeZone() with more than expected no. of arguments --
H A Dbug54597.phpt7 $tz = new DateTimeZone("Europe/Amsterdam");
8 $dateObject = new DateTime( 'January 0099', $tz );
10 $dateObject = new DateTime( 'January 1, 0099', $tz );
12 $dateObject = new DateTime( '0099-01', $tz );
H A Dbug73858.phpt13 $s = new DateTime($ss);
14 $e = new DateTime($es);
18 $s = (new DateTime(null))->setTimestamp(strtotime($ss)); // verbose setup method
19 $e = (new DateTime(null))->setTimestamp(strtotime($es)); // verbose setup method
27 $s = (new DateTime(null))->setTimestamp(strtotime($ss)); // verbose setup method
28 $e = new DateTime($es);
32 $s = new DateTime($ss);
33 $e = (new DateTime(null))->setTimestamp(strtotime($es)); // verbose setup method
41 $s = new DateTime($ss);
52 $s = new DateTime($ss);
[all …]
/PHP-7.3/ext/dom/tests/
H A DDOMNode_insertBefore.phpt11 $dom = new DOMDocument();
18 echo "Add new node B\n";
21 echo "Add new node A before B\n";
29 Add new node B
32 Add new node A before B
/PHP-7.3/ext/standard/tests/array/
H A Duasort_object2.phpt89 0 => new StaticClass(20),
90 1 => new StaticClass(50),
91 2 => new StaticClass(15),
92 3 => new StaticClass(70),
100 0 => new EmptyClass(),
101 1 => new EmptyClass(),
102 2 => new EmptyClass(),
103 3 => new EmptyClass(),
111 0 => new ChildClass(20),
112 1 => new ChildClass(500),
[all …]
/PHP-7.3/ext/soap/tests/
H A Dserver031.phpt34 return new ItemArray(array(
35 new Item(0),
36 new Item(1),
37 new Item(2),
38 new Item(3),
39 new Item(4),
40 new Item(5),
41 new Item(6),
42 new Item(7),
43 new Item(8),
[all …]

Completed in 34 milliseconds

12345678910>>...231