Home
last modified time | relevance | path

Searched refs:new (Results 26 – 50 of 3982) sorted by relevance

12345678910>>...160

/PHP-7.4/ext/spl/tests/
H A Diterator_018.phpt8 foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$val)
15 $it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D'));
16 $it = new InfiniteIterator($it);
17 $it = new LimitIterator($it, 2, 5);
25 $it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D'));
26 $it = new LimitIterator($it, 1, 2);
27 $it = new InfiniteIterator($it);
28 $it = new LimitIterator($it, 2, 5);
/PHP-7.4/Zend/tests/
H A Dclass_alias_018.phpt15 var_dump(is_subclass_of(new foo, 'foo'));
16 var_dump(is_subclass_of(new foo, 'bar'));
17 var_dump(is_subclass_of(new foo, 'baz'));
19 var_dump(is_subclass_of(new bar, 'foo'));
20 var_dump(is_subclass_of(new bar, 'bar'));
21 var_dump(is_subclass_of(new bar, 'baz'));
23 var_dump(is_subclass_of(new baz, 'foo'));
24 var_dump(is_subclass_of(new baz, 'bar'));
25 var_dump(is_subclass_of(new baz, 'baz'));
H A Dtemporary_cleaning_005.phpt7 throw new Exception();
10 $a = [new stdClass, new stdClass];
11 foreach ([$a, [new stdClass]] as $b) {
18 $y = new stdClass;
19 while ($x-- && new stdClass) {
28 foreach ([$a, [new stdClass]] as $b) {
35 $y = new stdClass;
36 while ($x-- && new stdClass) {
H A Dtemporary_cleaning_004.phpt7 throw new Exception();
10 $a = [new stdClass, new stdClass];
17 $y = new stdClass;
18 while ($x-- && new stdClass) {
32 $y = new stdClass;
33 while ($x-- && new stdClass) {
/PHP-7.4/ext/standard/tests/array/
H A Darray_uintersect_assoc_basic.phpt19 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1…
20 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1 => new cr(4), 2 => new cr(-15…
H A Darray_udiff_basic.phpt19 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1…
20 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1 => new cr(4), 2 => new cr(-15…
H A Darray_uintersect_basic.phpt19 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1…
20 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1 => new cr(4), 2 => new cr(-15…
H A Dbug45312.phpt23 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1…
24 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1 => new cr(4), 2 => new cr(-15…
H A Darray_udiff_assoc_basic.phpt19 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1…
20 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1 => new cr(4), 2 => new cr(-15…
H A Darray_uintersect_uassoc_basic.phpt23 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1…
24 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1 => new cr(4), 2 => new cr(-15…
H A Darray_udiff_uassoc_basic.phpt23 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1 => new cr(4), 2 => new cr(-1…
24 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr(3), 1 => new cr(4), 2 => new cr(-15…
/PHP-7.4/ext/date/tests/
H A Drfc-datetime_and_daylight_saving_time-type3-ba.phpt16 $start = new DateTime('2010-11-07 01:59:59');
18 $interval = new DateInterval($interval_spec);
22 $start = new DateTime('2010-11-06 04:30:00');
24 $interval = new DateInterval($interval_spec);
28 $start = new DateTime('2010-11-06 04:30:00');
30 $interval = new DateInterval($interval_spec);
34 $start = new DateTime('2010-11-06 04:30:00');
36 $interval = new DateInterval($interval_spec);
40 $start = new DateTime('2010-11-06 04:30:00');
42 $interval = new DateInterval($interval_spec);
[all …]
H A Dbug73489.phpt6 $datetime = new DateTime('2016-11-09 20:00:00', new DateTimeZone('UTC'));
8 $datetime->setTimeZone(new DateTimeZone('-03:00'));
9 $datetime->setTimeZone(new DateTimeZone('-03:00'));
13 $datetime = new DateTime('2016-11-09 20:00:00', new DateTimeZone('UTC'));
15 $datetime->setTimeZone(new DateTimeZone('-03:00'));
17 $datetime->setTimeZone(new DateTimeZone('-03:00'));
H A Drfc-datetime_and_daylight_saving_time-type3-bs.phpt9 $tz = new DateTimeZone('America/New_York');
17 $end = new DateTime('2010-11-07 01:00:00 EST');
20 $interval = new DateInterval($interval_spec);
24 $end = new DateTime('2010-11-07 04:30:00');
26 $interval = new DateInterval($interval_spec);
30 $end = new DateTime('2010-11-07 03:30:00');
32 $interval = new DateInterval($interval_spec);
36 $end = new DateTime('2010-11-07 02:30:00');
38 $interval = new DateInterval($interval_spec);
45 $interval = new DateInterval($interval_spec);
[all …]
H A Dbug40743.phpt5 $dt = new DateTime('@1200506699', new DateTimeZone('Europe/Berlin'));
12 $dt = new DateTime('16 Jan 08 13:04:59');
15 $dt = new DateTime('@1200506699');
18 $dt = new DateTime('@1200506699');
19 $dt->setTimezone( new DateTimeZone( 'America/New_York' ) );
22 $dt = new DateTime('@1200506699', new DateTimeZone('Europe/Berlin'));
25 $dt = new DateTime('16 Jan 08 13:04:59 America/Chicago');
28 $dt = new DateTime('16 Jan 08 13:04:59 America/Chicago', new DateTimeZone('Europe/Berlin'));
H A Drfc-datetime_and_daylight_saving_time-type3-fd.phpt16 $end = new DateTime('2010-03-14 03:00:00');
17 $start = new DateTime('2010-03-14 01:59:59');
21 $end = new DateTime('2010-03-14 04:30:00');
22 $start = new DateTime('2010-03-13 04:30:00');
26 $end = new DateTime('2010-03-14 03:30:00');
27 $start = new DateTime('2010-03-13 04:30:00');
31 $end = new DateTime('2010-03-14 01:30:00');
32 $start = new DateTime('2010-03-13 04:30:00');
36 $end = new DateTime('2010-03-14 01:30:00');
37 $start = new DateTime('2010-03-13 01:30:00');
[all …]
H A Drfc-datetime_and_daylight_saving_time-type3-fs.phpt18 $end = new DateTime('2010-03-14 03:00:00');
20 $interval = new DateInterval($interval_spec);
24 $end = new DateTime('2010-03-14 04:30:00');
26 $interval = new DateInterval($interval_spec);
30 $end = new DateTime('2010-03-14 03:30:00');
32 $interval = new DateInterval($interval_spec);
36 $end = new DateTime('2010-03-14 01:30:00');
38 $interval = new DateInterval($interval_spec);
42 $end = new DateTime('2010-03-14 01:30:00');
44 $interval = new DateInterval($interval_spec);
[all …]
/PHP-7.4/ext/dom/tests/
H A Dbug32615.phpt7 $dom = new DomDocument;
9 $frag->appendChild(new DOMElement('root'));
13 $frag->appendChild(new DOMElement('first'));
16 $frag->appendChild(new DOMElement('second'));
26 $frag->appendChild(new DOMElement('newsecond'));
32 $frag->appendChild(new DOMElement('third'));
35 $frag->appendChild(new DOMElement('start'));
44 $frag->appendChild(new DOMElement('first'));
55 $frag->appendChild(new DOMElement('first'));
61 $frag->appendChild(new DOMElement('second'));
[all …]
/PHP-7.4/ext/soap/tests/interop/Round4/GroupH/
H A Dround4_groupH_simple_doclit.inc5 …return new SoapFault("Server", "Fault in response to 'echoEmptyFault'.", null, null, "SimpleFault"…
9 …return new SoapFault("Server", "Fault in response to 'echoStringFault'.", null, $input, "SimpleFau…
13 …return new SoapFault("Server", "Fault in response to 'echoIntArrayFault'.", null, $input, "SimpleF…
18 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param1…
20 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $input->param2…
22 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, null, "SimpleF…
28 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param1…
30 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param3…
32 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $input->param2…
38 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults3'.", null, $input->param2…
[all …]
H A Dround4_groupH_simple_rpcenc.inc5 …return new SoapFault("Server", "Fault in response to 'echoEmptyFault'.", null, null, "SimpleFault"…
9 …return new SoapFault("Server", "Fault in response to 'echoStringFault'.", null, $input, "SimpleFau…
13 …return new SoapFault("Server", "Fault in response to 'echoIntArrayFault'.", null, $input, "SimpleF…
18 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $string, "Simp…
20 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, $floats, "Simp…
22 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults1'.", null, null, "SimpleF…
28 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $string, "Simp…
32 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults2'.", null, $float, "Simpl…
46 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $enum, "Simple…
48 …return new SoapFault("Server", "Fault in response to 'echoMultipleFaults4'.", null, $int, "SimpleF…
[all …]
/PHP-7.4/ext/opcache/tests/
H A Dbug77275.phpt13 public function offsetSet($offset, $value) { throw new \Exception; }
15 public function offsetExists($offset) { throw new \Exception; }
16 public function offsetUnset($offset) { throw new \Exception; }
21 $b = new Bar();
22 $c = new Bar();
23 $d = new Bar();
25 $rec = new Record();
29 (new Baz())->run();
/PHP-7.4/ext/phar/tests/zip/files/
H A Dcorrupt2.php.inc3 $a = new corrupt_zipmaker;
7 $a = new corrupt_zipmaker;
11 $a = new corrupt_zipmaker;
15 $a = new corrupt_zipmaker;
18 $a = new corrupt_zipmaker;
21 $a = new corrupt_zipmaker;
24 $a = new corrupt_zipmaker;
27 $a = new corrupt_zipmaker;
30 $a = new corrupt_zipmaker;
33 $a = new corrupt_zipmaker;
[all …]
/PHP-7.4/tests/lang/
H A DforeachLoop.013.phpt303 string(5) "new.0"
305 string(5) "new.1"
307 string(5) "new.2"
309 string(5) "new.3"
313 string(5) "new.5"
339 string(5) "new.0"
341 string(5) "new.1"
343 string(5) "new.2"
347 string(5) "new.4"
349 string(5) "new.5"
[all …]
H A DforeachLoop.015.phpt305 string(5) "new.0"
307 string(5) "new.1"
309 string(5) "new.2"
311 string(5) "new.3"
315 string(5) "new.5"
341 string(5) "new.0"
343 string(5) "new.1"
345 string(5) "new.2"
349 string(5) "new.4"
351 string(5) "new.5"
[all …]
/PHP-7.4/Zend/tests/varSyntax/
H A DnewVariable.phpt2 Variable as class name for new expression
16 var_dump(new $className);
17 var_dump(new $array['className']);
18 var_dump(new $array{'className'});
19 var_dump(new $obj->className);
20 var_dump(new Test::$className);
21 var_dump(new $test::$className);
22 var_dump(new $weird[0]->foo::$className);

Completed in 36 milliseconds

12345678910>>...160