/PHP-7.4/Zend/tests/type_declarations/ |
H A D | typed_properties_class_loading.phpt | 15 $test = new Test; 17 $test->propX = new stdClass; 26 $test->propX = new X; 32 $test->propY = new stdClass; 41 $r = new Y;
|
H A D | typed_properties_089.phpt | 20 $a = new A; 21 $a->prop = new B; 24 $a = new A; 26 $a->prop = new B;
|
H A D | typed_properties_039.phpt | 14 $objs = [new A, new A]; 19 $v = new A; 20 $obj = new B;
|
/PHP-7.4/Zend/tests/ |
H A D | bug26166.phpt | 20 $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 D | ns_086.phpt | 19 new foo; 20 new bar; 27 new foo1; 28 new foo;
|
H A D | bug70805_1.phpt | 22 $a = new A; 23 $a->b = new B; 28 $c = new A; 37 $t = [new C];
|
H A D | exception_008.phpt | 9 throw new Exception("First"); 16 throw new Exception("Second"); 20 $ar = array(new TestFirst, new TestSecond);
|
H A D | bug79022.phpt | 7 new Foo(); 23 new Dummy(); 34 new Foo(); 35 new Dummy();
|
/PHP-7.4/ext/pdo_mysql/tests/ |
H A D | pdo_mysql___construct.phpt | 32 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 D | bug38618.phpt | 39 $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 D | heap_009.phpt | 21 $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 D | iterator_056.phpt | 23 $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 D | iterator_005.phpt | 15 $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 D | recursive_tree_iterator_007.phpt | 8 $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 D | bug46064.phpt | 10 $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 D | ReflectionParameter_isDefault.phpt | 8 $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 D | get_object_vars_variation_005.phpt | 12 $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 D | class_order_autoload2.phpt | 11 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 D | expect_008.phpt | 21 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 D | mysqli_class_mysqli_warning.phpt | 17 $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 D | pcre2_context.c | 231 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 D | bug71635.phpt | 6 $period = new DatePeriod(new DateTimeImmutable("now"), new DateInterval("P2Y4DT6H8M"), 2);
|
H A D | DateTime_data-massive.inc | 15 $end = new DateTime; 19 $start = new DateTime; 26 $end = new DateTime; 30 $start = new DateTime;
|
/PHP-7.4/ext/intl/tests/ |
H A D | bug75193.phpt | 7 $a = new \Collator('en_US'); 8 $b = [new stdclass, new stdclass];
|
/PHP-7.4/Zend/tests/try/ |
H A D | try_finally_020.phpt | 15 foreach ([new A(1)] as $a) { 18 foreach ([new A(2)] as $a) { 21 foreach ([new A(3)] as $a) { 23 throw new Exception();
|