Home
last modified time | relevance | path

Searched refs:new (Results 226 – 250 of 5518) sorted by relevance

12345678910>>...221

/PHP-7.4/Zend/tests/type_declarations/
H A Dtyped_properties_class_loading.phpt15 $test = new Test;
17 $test->propX = new stdClass;
26 $test->propX = new X;
32 $test->propY = new stdClass;
41 $r = new Y;
H A Dtyped_properties_089.phpt20 $a = new A;
21 $a->prop = new B;
24 $a = new A;
26 $a->prop = new B;
H A Dtyped_properties_039.phpt14 $objs = [new A, new A];
19 $v = new A;
20 $obj = new B;
/PHP-7.4/Zend/tests/
H A Dbug26166.phpt20 $this->obj = new Foo();
29 $o = new Bar;
40 $o = new NoneTest;
52 throw new Exception("This is an error!");
56 $o = new ErrorTest;
H A Dns_086.phpt19 new foo;
20 new bar;
27 new foo1;
28 new foo;
H A Dbug70805_1.phpt22 $a = new A;
23 $a->b = new B;
28 $c = new A;
37 $t = [new C];
H A Dexception_008.phpt9 throw new Exception("First");
16 throw new Exception("Second");
20 $ar = array(new TestFirst, new TestSecond);
H A Dbug79022.phpt7 new Foo();
23 new Dummy();
34 new Foo();
35 new Dummy();
/PHP-7.4/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct.phpt32 if (NULL !== ($db = @new PDO()))
37 print tryandcatch(2, '$db = new PDO(chr(0));');
62 $db = new PDO($dsn, $user, $pass);
139 $db = @new PDO($dsn, $user, $pass);
185 $db = new PDO($dsn, $user, $pass);
206 $db = new PDO($dsn, $user, $pass);
214 $db = @new PDO($dsn, $user, $pass);
225 $db = @new PDO($dsn, $user, $pass);
247 $db = new PDO($dsn, $user, $pass);
259 $db = new PDO($dsn, $user, $pass);
[all …]
/PHP-7.4/ext/spl/tests/
H A Dbug38618.phpt39 $it = new RecursiveArrayIterator($array, $flags);
40 foreach (new RecursiveIteratorIterator($it) as $k => $fruit) {
61 1 => new FruitPublic('apple'),
64 1 => new FruitPublic('grape'),
74 1 => new FruitProtected('apple'),
77 1 => new FruitProtected('grape'),
H A Dheap_009.phpt21 $heap = new SplMinHeap;
25 $heap = new SplMinHeap;
30 $heap = new SplMaxHeap;
34 $heap = new SplMaxHeap;
39 $heap = new SplPriorityQueue;
43 $heap = new SplPriorityQueue;
H A Diterator_056.phpt23 $it = new myFilterIterator();
29 $it = new myCachingIterator();
35 $it = new myRecursiveCachingIterator();
41 $it = new myParentIterator();
47 $it = new myLimitIterator();
52 $it = new myNoRewindIterator();
H A Diterator_005.phpt15 $it = new ArrayIteratorEx(range(0,3));
17 foreach(new IteratorIterator($it) as $v)
31 $it = new ArrayObjectEx(range(0,3));
33 foreach(new IteratorIterator($it) as $v)
H A Drecursive_tree_iterator_007.phpt8 $ary = array(new stdClass);
13 $this->it = new RecursiveArrayIterator($it);
20 $it = new RecursiveArrayIteratorAggregated($ary);
22 foreach(new RecursiveTreeIterator($it) as $k => $v) {
/PHP-7.4/ext/reflection/tests/
H A Dbug46064.phpt10 $o = new x;
14 var_dump($h = new reflectionproperty($o, 'z'));
24 var_dump(new reflectionproperty($o, 'zz'));
29 var_dump(new reflectionproperty($o, 'zzz'));
40 $p = new reflectionproperty($this, 'foobar');
45 new bar;
H A DReflectionParameter_isDefault.phpt8 $a = new A;
11 $ro = new ReflectionObject($a);
21 $prop1 = new ReflectionProperty($a, 'defprop');
22 $prop2 = new ReflectionProperty($a, 'myprop');
/PHP-7.4/ext/standard/tests/class_object/
H A Dget_object_vars_variation_005.phpt12 $obj = new stdClass;
13 $ao = new ArrayObject($obj);
19 $obj = new Test;
20 $ao = new ArrayObject($obj);
/PHP-7.4/Zend/tests/type_declarations/variance/
H A Dclass_order_autoload2.phpt11 var_dump(new A);
16 var_dump(new B);
20 var_dump(new C);
25 var_dump(new B);
/PHP-7.4/Zend/tests/assert/
H A Dexpect_008.phpt21 assert(($variable && $variable) || php_sapi_name(), new OdEar("constant message"));
25 new Two();
26 new Two();
27 new Two();
/PHP-7.4/ext/mysqli/tests/
H A Dmysqli_class_mysqli_warning.phpt17 $warning = new mysqli_warning();
18 $warning = new mysqli_warning(null);
19 $warning = new mysqli_warning(null, null);
21 $mysqli = new mysqli();
22 $warning = new mysqli_warning($mysqli);
24 $mysqli = new my_mysqli($host, $user, $passwd, $db, $port, $socket);
25 $stmt = new mysqli_stmt($mysqli);
26 $warning = new mysqli_warning($stmt);
29 $warning = new mysqli_warning($stmt);
31 $obj = new stdClass();
[all …]
/PHP-7.4/ext/pcre/pcre2lib/
H A Dpcre2_context.c231 pcre2_general_context *new = in pcre2_general_context_copy() local
234 if (new == NULL) return NULL; in pcre2_general_context_copy()
236 return new; in pcre2_general_context_copy()
243 pcre2_compile_context *new = in pcre2_compile_context_copy() local
246 if (new == NULL) return NULL; in pcre2_compile_context_copy()
248 return new; in pcre2_compile_context_copy()
255 pcre2_match_context *new = in pcre2_match_context_copy() local
258 if (new == NULL) return NULL; in pcre2_match_context_copy()
260 return new; in pcre2_match_context_copy()
268 pcre2_convert_context *new = in pcre2_convert_context_copy() local
[all …]
/PHP-7.4/ext/date/tests/
H A Dbug71635.phpt6 $period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2);
H A DDateTime_data-massive.inc15 $end = new DateTime;
19 $start = new DateTime;
26 $end = new DateTime;
30 $start = new DateTime;
/PHP-7.4/ext/intl/tests/
H A Dbug75193.phpt7 $a = new \Collator('en_US');
8 $b = [new stdclass, new stdclass];
/PHP-7.4/Zend/tests/try/
H A Dtry_finally_020.phpt15 foreach ([new A(1)] as $a) {
18 foreach ([new A(2)] as $a) {
21 foreach ([new A(3)] as $a) {
23 throw new Exception();

Completed in 35 milliseconds

12345678910>>...221