Home
last modified time | relevance | path

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

12345678910>>...187

/PHP-5.4/ext/standard/tests/array/
H A Dkrsort_object.phpt45 10 => new Integer(11), 20 => new Integer(66),
46 3 => new Integer(23), 4 => new Integer(-5),
47 50 => new Integer(0.001), 6 => new Integer(0)
52 "axx" => new String("axx"), "t" => new String("t"),
53 "w" => new String("w"), "py" => new String("py"),
54 "apple" => new String("apple"), "Orange" => new String("Orange"),
55 "Lemon" => new String("Lemon"), "aPPle" => new String("aPPle")
H A Dksort_object.phpt46 11 => new Integer(11), 66 => new Integer(66),
47 23 => new Integer(23), -5 => new Integer(-5),
48 1 => new Integer(0.001), 0 => new Integer(0)
53 "axx" => new String("axx"), "t" => new String("t"),
54 "w" => new String("w"), "py" => new String("py"),
55 "apple" => new String("apple"), "Orange" => new String("Orange"),
56 "Lemon" => new String("Lemon"), "aPPle" => new String("aPPle")
/PHP-5.4/Zend/tests/
H A Dns_060.phpt8 $a = new B;
9 $b = new A;
14 $a = new B;
15 $b = new A;
H A Dns_081.phpt10 new foo;
11 new bar;
17 new foo1;
18 new foo;
H A Dns_084.phpt10 new foo;
11 new bar;
17 new foo1;
18 new foo;
H A Dns_087.phpt10 new foo;
11 new bar;
19 new foo1;
20 new foo;
H A Dbug31177.phpt8 throw new Exception;
12 return new DbGowRecordSet($this->query());
16 new DbGowRecordSet($this->query());
28 $db = new DbGow;
H A Dbug51822.phpt17 $this->test = new DestructableObject;
28 //Test::$mystatic = new DestructorCreator();
30 $x = new Test();
33 Test::$mystatic = new DestructorCreator();
H A Dobjects_023.phpt6 $arr = array(new stdClass, 'stdClass');
8 new $arr[0]();
9 new $arr[1]();
H A Dobjects_022.phpt24 $foo = new foo;
25 $foo->testFoo(new foo);
26 $foo->testBar(new bar);
27 $foo->testBaz(new baz);
28 $foo->testFoo(new stdClass); // Catchable fatal error
H A Dns_086.phpt19 new foo;
20 new bar;
27 new foo1;
28 new foo;
H A Dbug26698.phpt12 throw new Exception('NONE');
26 $res = new Object();
39 $res = new Object();
52 $res = new Object();
62 $p = new Proxy();
/PHP-5.4/ext/spl/tests/
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 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) {
H A Drecursive_tree_iterator_001.phpt27 $it = new RecursiveArrayIterator($ary);
29 foreach(new RecursiveTreeIterator($it) as $k => $v) {
33 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT) as $k => $v) {
37 foreach(new RecursiveTreeIterator($it, RecursiveTreeIterator::BYPASS_CURRENT|RecursiveTreeIterator:…
41 foreach(new RecursiveTreeIterator($it, 0) as $k => $v) {
45 foreach(new RecursiveTreeIterator($it, 0, CachingIterator::CATCH_GET_CHILD) as $k => $v) {
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'),
/PHP-5.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 DReflectionProperty_setAccessible.phpt14 $a = new A;
15 $protected = new ReflectionProperty($a, 'protected');
16 $protectedStatic = new ReflectionProperty('A', 'protectedStatic');
17 $private = new ReflectionProperty($a, 'private');
18 $privateStatic = new ReflectionProperty('A', 'privateStatic');
72 $a = new A;
73 $b = new B;
74 $protected = new ReflectionProperty($b, 'protected');
75 $protectedStatic = new ReflectionProperty('B', 'protectedStatic');
76 $private = new ReflectionProperty($a, 'private');
H A DReflectionObject_isInstance_basic.phpt11 $instances = array( "myA" => new A,
12 "myB" => new B,
13 "myX" => new X );
16 $ro = new ReflectionObject(new $class);
H A Dbug40431.phpt7 $Obj = new stdClass;
9 $RefObj = new ReflectionObject($Obj);
27 $Obj = new test2;
29 $RefObj = new ReflectionObject($Obj);
44 $Obj = new test3;
46 $RefObj = new ReflectionObject($Obj);
65 $Obj = new test4;
67 $RefObj = new ReflectionObject($Obj);
/PHP-5.4/tests/classes/
H A Dinheritance_005.phpt22 echo "About to construct new B: \n";
23 $b = new B;
31 echo "About to construct new C: \n";
32 $c = new C;
44 About to construct new B:
50 About to construct new C:
H A Darray_access_013.phpt8 … public function offsetExists($offset) { throw new Exception(__METHOD__); return false; }
9 … public function offsetGet($offset) { throw new Exception(__METHOD__); return $offset; }
10 public function offsetSet($offset, $data ) { throw new Exception(__METHOD__); }
11 public function offsetUnset($offset) { throw new Exception(__METHOD__); }
14 $t = new Test;
/PHP-5.4/ext/date/tests/
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";
18 var_dump( new DateTimeZone($timezone, $extra_arg) );
25 -- Testing new DateTimeZone() with more than expected no. of arguments --
H A Doo_001.phpt15 $d = new DateTime;
18 $d = new _d;
22 new DateTime("1am todax");
27 $t = new DateTimeZone("UTC");
30 $t = new _t;
34 new DateTimeZone("GottaFindThisOne");
H A Dforward-transition-construction.phpt7 $date = new DateTime('2010-03-14 01:30:00');
10 $date = new DateTime('2010-03-14 02:00:00');
13 $date = new DateTime('2010-03-14 02:30:00');
16 $date = new DateTime('2010-03-14 03:00:00');
19 $date = new DateTime('2010-03-14 03:30:00');

Completed in 29 milliseconds

12345678910>>...187