/PHP-5.4/tests/classes/ |
H A D | destructor_and_references.phpt | 11 $o1 = new test1; 12 $o2 = new test2; 13 $o3 = new test3; 14 $o4 = new test4; 22 $o = new once;
|
H A D | unset_properties.phpt | 74 $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 D | usort_object2.phpt | 68 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 D | rsort_object1.phpt | 45 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 D | natcasesort_object1.phpt | 36 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 D | ReflectionMethod_constructor_basic.phpt | 13 $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 D | ReflectionMethod_setAccessible.phpt | 12 $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 D | ReflectionClass_constructor_001.phpt | 5 $r1 = new ReflectionClass("stdClass"); 7 $myInstance = new stdClass; 8 $r2 = new ReflectionClass($myInstance); 16 $myTrickClass = new TrickClass; 17 $r3 = new ReflectionClass($myTrickClass);
|
H A D | ReflectionObject_constructor_error.phpt | 6 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 D | bug45139.phpt | 22 $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 D | ReflectionProperty_setValue_error.phpt | 17 $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 D | iterator_024.phpt | 8 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 D | arrayObject___construct_basic1.phpt | 6 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 D | observer_008.phpt | 7 $o1 = new StdClass; 8 $o2 = new StdClass; 9 $o3 = new StdClass; 11 $a = new A; 15 $b = new SplObjectSTorage();
|
H A D | bug44615.phpt | 8 $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 D | spl_caching_iterator_constructor_flags.phpt | 10 $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 D | class_alias_012.phpt | 11 new foo; 15 var_dump(new foo); 16 var_dump(new T); 19 var_dump(new $var); 22 var_dump(new $var);
|
H A D | bug48409.phpt | 13 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 D | ns_072.phpt | 23 new bar(new test); 24 new bar(null); 25 new bar(new \stdclass);
|
/PHP-5.4/ext/date/tests/ |
H A D | rfc-datetime_and_daylight_saving_time-type3-bd2.phpt | 20 $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 D | date_period.phpt | 6 $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 D | bug62561.phpt | 5 $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 D | dba_qdbm.c | 83 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 D | phar_oo_compressed_001.phpt | 22 $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 D | phar_oo_compressed_001b.phpt | 22 $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"
|