Home
last modified time | relevance | path

Searched refs:new (Results 76 – 100 of 4405) sorted by relevance

12345678910>>...177

/PHP-5.4/tests/classes/
H A Ddestructor_and_references.phpt11 $o1 = new test1;
12 $o2 = new test2;
13 $o3 = new test3;
14 $o4 = new test4;
22 $o = new once;
H A Dunset_properties.phpt74 $o = new Test;
86 echo $o->setPublicProperty('new publicProperty value via setter');
91 $o->publicProperty = 'new publicProperty value via public access';
121 echo $o->setPrivateProperty('new privateProperty value via setter');
136 __set "publicProperty" to "new publicProperty value via setter"
137 new publicProperty value via setter
140 new publicProperty value via public access
145 __set "protectedProperty" to "new protectedProperty value via setter"
147 new protectedProperty value via setter
152 __set "privateProperty" to "new privateProperty value via setter"
[all …]
/PHP-5.4/ext/standard/tests/array/
H A Dusort_object2.phpt68 0 => new StaticClass(20),
69 1 => new StaticClass(50),
70 2 => new StaticClass(15),
71 3 => new StaticClass(70),
79 0 => new EmptyClass(),
80 1 => new EmptyClass(),
81 2 => new EmptyClass(),
82 3 => new EmptyClass(),
90 0 => new ChildClass(20),
91 1 => new ChildClass(500),
[all …]
H A Drsort_object1.phpt45 new for_integer_rsort(11), new for_integer_rsort(66),
46 new for_integer_rsort(23), new for_integer_rsort(-5),
47 new for_integer_rsort(0.001), new for_integer_rsort(0)
52 new for_string_rsort("axx"), new for_string_rsort("t"),
53 new for_string_rsort("w"), new for_string_rsort("py"),
54 new for_string_rsort("apple"), new for_string_rsort("Orange"),
55 new for_string_rsort("Lemon"), new for_string_rsort("aPPle")
H A Dnatcasesort_object1.phpt36 new for_string_natcasesort("axx"), new for_string_natcasesort("t"),
37 new for_string_natcasesort("w"), new for_string_natcasesort("py"),
38 new for_string_natcasesort("apple"), new for_string_natcasesort("Orange"),
39 new for_string_natcasesort("Lemon"), new for_string_natcasesort("aPPle")
/PHP-5.4/ext/reflection/tests/
H A DReflectionMethod_constructor_basic.phpt13 $methodInfo = new ReflectionMethod("NewCtor::__construct");
18 echo "\nInherited new-style constructor\n";
19 $methodInfo = new ReflectionMethod("ExtendsNewCtor::__construct");
28 $methodInfo = new ReflectionMethod("OldCtor::OldCtor");
34 $methodInfo = new ReflectionMethod("ExtendsOldCtor::OldCtor");
43 $methodInfo = new ReflectionMethod("X::Y");
49 $methodInfo = new ReflectionMethod("Y::Y");
62 $methodInfo = new ReflectionMethod("OldAndNewCtor::OldAndNewCtor");
66 $methodInfo = new ReflectionMethod("OldAndNewCtor::__construct");
79 $methodInfo = new ReflectionMethod("NewAndOldCtor::__construct");
[all …]
H A DReflectionMethod_setAccessible.phpt12 $private = new ReflectionMethod('A', 'aPrivate');
13 $privateStatic = new ReflectionMethod('A', 'aPrivateStatic');
14 $protected = new ReflectionMethod('A', 'aProtected');
18 $private->invoke(new A, NULL);
26 $private->invokeArgs(new A, array(NULL));
50 $protected->invoke(new A, NULL);
58 $protected->invokeArgs(new A, array(NULL));
86 $private->invoke(new A, NULL);
87 $private->invokeArgs(new A, array(NULL));
90 $protected->invoke(new A, NULL);
[all …]
H A DReflectionClass_constructor_001.phpt5 $r1 = new ReflectionClass("stdClass");
7 $myInstance = new stdClass;
8 $r2 = new ReflectionClass($myInstance);
16 $myTrickClass = new TrickClass;
17 $r3 = new ReflectionClass($myTrickClass);
H A DReflectionObject_constructor_error.phpt6 var_dump(new ReflectionObject());
7 var_dump(new ReflectionObject('stdClass'));
8 $myInstance = new stdClass;
9 var_dump(new ReflectionObject($myInstance, $myInstance));
10 var_dump(new ReflectionObject(0));
11 var_dump(new ReflectionObject(null));
12 var_dump(new ReflectionObject(array(1,2)));
H A Dbug45139.phpt22 $rc = new ReflectionClass('C');
26 $rc = new ReflectionClass('A');
30 $rc = new ReflectionClass('B');
34 $rc = new ReflectionClass('C');
38 $rc = new ReflectionClass('C');
42 $rc = new ReflectionClass('B');
46 $rc = new ReflectionClass('C');
H A DReflectionProperty_setValue_error.phpt17 $instance = new TestClass();
18 $instanceWithNoProperties = new AnotherClass();
19 $propInfo = new ReflectionProperty('TestClass', 'pub2');
30 $propInfo = new ReflectionProperty('TestClass', 'stat');
36 var_dump($propInfo->setValue("A new value"));
42 var_dump($propInfo->setValue(true, "Another new value"));
47 $propInfo = new ReflectionProperty('TestClass', 'prot');
55 $propInfo = new ReflectionProperty('TestClass', 'pub2');
85 string(11) "A new value"
89 string(11) "A new value"
[all …]
/PHP-5.4/ext/spl/tests/
H A Diterator_024.phpt8 foreach(new RecursiveIteratorIterator(new ArrayObject($ar, 0, "RecursiveArrayIterator")) as $v) ech…
10 $it = new ArrayObject($ar);
15 foreach(new RecursiveIteratorIterator(new ArrayObject($ar)) as $v) echo "$v\n";
26 foreach(new RecursiveIteratorIterator($it) as $v) echo "$v\n";
H A DarrayObject___construct_basic1.phpt6 var_dump(new ArrayObject());
9 $a = new stdClass;
11 var_dump(new ArrayObject($a));
14 var_dump(new ArrayObject(array('key1' => 'val1')));
17 var_dump(new ArrayObject(new ArrayObject($a)));
H A Dobserver_008.phpt7 $o1 = new StdClass;
8 $o2 = new StdClass;
9 $o3 = new StdClass;
11 $a = new A;
15 $b = new SplObjectSTorage();
H A Dbug44615.phpt8 $a = new stdClass();
12 $rai = new RecursiveArrayIterator($array,RecursiveArrayIterator::CHILD_ARRAYS_ONLY);
14 foreach (new RecursiveIteratorIterator($rai) as $t) {
18 $rai = new RecursiveArrayIterator($array);
19 foreach (new RecursiveIteratorIterator($rai) as $t) {
H A Dspl_caching_iterator_constructor_flags.phpt10 $arrayIterator = new ArrayIterator($array);
12 $test = new CachingIterator($arrayIterator, 0);
13 $test = new CachingIterator($arrayIterator, 1);
14 $test = new CachingIterator($arrayIterator, 2);
15 $test = new CachingIterator($arrayIterator, 3); // this throws an exception
/PHP-5.4/Zend/tests/
H A Dclass_alias_012.phpt11 new foo;
15 var_dump(new foo);
16 var_dump(new T);
19 var_dump(new $var);
22 var_dump(new $var);
H A Dbug48409.phpt13 throw new ABCException;
31 $b = new BBB;
32 $c = new CCC;
52 throw new Exception;
58 $runner = new Runner;
59 $runner->run(new AAA);
H A Dns_072.phpt23 new bar(new test);
24 new bar(null);
25 new bar(new \stdclass);
/PHP-5.4/ext/date/tests/
H A Drfc-datetime_and_daylight_saving_time-type3-bd2.phpt20 $tz = new DateTimeZone('America/New_York');
26 $end = new DateTime('2010-11-07 05:30:00');
28 $start = new DateTime('2010-11-06 04:30:59');
32 $end = new DateTime('2010-11-07 01:30:00 EST');
34 $start = new DateTime('2010-11-06 04:30:00');
38 $end = new DateTime('2010-11-07 01:30:00 EDT');
40 $start = new DateTime('2010-11-06 04:30:00');
44 $end = new DateTime('2010-11-07 01:30:00 EST');
46 $start = new DateTime('2010-11-06 01:30:00');
H A Ddate_period.phpt6 $db = new DateTime( '2008-01-01' );
7 $de = new DateTime( '2008-12-31' );
10 foreach ( new DatePeriod( $db, $di, $de ) as $dt )
17 $db = new DateTime( '2007-12-31' );
18 $de = new DateTime( '2009-12-31 23:59:59' );
21 foreach ( new DatePeriod( $db, $di, $de, DatePeriod::EXCLUDE_START_DATE ) as $dt )
H A Dbug62561.phpt5 $tz = new DateTimeZone('America/New_York');
6 $ts = new DateTime('@1341115200', $tz);
7 $int = new DateInterval('P1D');
8 $dayFromTs = new DateTime('@1341115200', new DateTimeZone('America/New_York'));
/PHP-5.4/ext/dba/
H A Ddba_qdbm.c83 char *value, *new = NULL; in DBA_FETCH_FUNC() local
89 new = estrndup(value, value_size); in DBA_FETCH_FUNC()
93 return new; in DBA_FETCH_FUNC()
134 char *value, *new = NULL; in DBA_FIRSTKEY_FUNC() local
141 new = estrndup(value, value_size); in DBA_FIRSTKEY_FUNC()
145 return new; in DBA_FIRSTKEY_FUNC()
152 char *value, *new = NULL; in DBA_NEXTKEY_FUNC() local
157 new = estrndup(value, value_size); in DBA_NEXTKEY_FUNC()
161 return new; in DBA_NEXTKEY_FUNC()
/PHP-5.4/ext/phar/tests/
H A Dphar_oo_compressed_001.phpt22 $phar = new Phar($fname);
31 $phar['a'] = 'new a';
33 $phar['b'] = 'new b';
35 $phar['d'] = 'new d';
37 $phar = new Phar($fname);
60 string(5) "new a"
62 string(5) "new b"
66 string(5) "new d"
H A Dphar_oo_compressed_001b.phpt22 $phar = new Phar($fname);
31 $phar['a'] = 'new a';
33 $phar['b'] = 'new b';
35 $phar['d'] = 'new d';
37 $phar = new Phar($fname);
60 string(5) "new a"
62 string(5) "new b"
66 string(5) "new d"

Completed in 52 milliseconds

12345678910>>...177