Home
last modified time | relevance | path

Searched refs:new (Results 101 – 125 of 4661) sorted by relevance

12345678910>>...187

/PHP-5.4/ext/standard/tests/array/
H A Dbug28739.phpt12 $p1 = array(new p(2), new p(1), new p(0));
13 $p2 = array(new p(0), new p(2), new p(3));
H A Duasort_object2.phpt89 0 => new StaticClass(20),
90 1 => new StaticClass(50),
91 2 => new StaticClass(15),
92 3 => new StaticClass(70),
100 0 => new EmptyClass(),
101 1 => new EmptyClass(),
102 2 => new EmptyClass(),
103 3 => new EmptyClass(),
111 0 => new ChildClass(20),
112 1 => new ChildClass(500),
[all …]
/PHP-5.4/ext/date/tests/
H A Dbug43003.phpt7 $oDateTest = new DateTime("@0", new DateTimeZone(date_default_timezone_get()));
10 $oDateTest->setTimezone(new DateTimeZone("UTC"));
13 $oDateTest->setTimezone(new DateTimeZone(date_default_timezone_get()));
16 $oDateTest = new DateTime("@0");
19 $oDateTest->setTimezone( new DateTimeZone(date_default_timezone_get()));
/PHP-5.4/ext/reflection/tests/
H A Dbug30148.phpt17 $a = new ReflectionMethod('Root','Root');
18 $b = new ReflectionMethod('Base','Root');
19 $c = new ReflectionMethod('Base','__construct');
20 $d = new ReflectionMethod('Derived','Root');
21 $e = new ReflectionMethod('Derived','__construct');
H A DReflectionClass_constructor_002.phpt6 var_dump(new ReflectionClass());
12 var_dump(new ReflectionClass(null));
18 var_dump(new ReflectionClass(true));
24 var_dump(new ReflectionClass(1));
30 var_dump(new ReflectionClass(array(1,2,3)));
36 var_dump(new ReflectionClass("stdClass", 1));
42 var_dump(new ReflectionClass("X"));
H A DReflectionClass_getName_basic.phpt12 $r1 = new ReflectionClass("stdClass");
14 $myInstance = new stdClass;
15 $r2 = new ReflectionClass($myInstance);
17 $r3 = new ReflectionClass("TrickClass");
/PHP-5.4/ext/spl/tests/
H A Diterator_002.phpt15 return new RecursiceArrayIterator($this->current());
33 return new RecursiceArrayIterator($this->getInnerIterator()->current());
39 $dir = new RecursiveIteratorIterator(new CrashIterator(new RecursiceArrayIterator($array)), Recursi…
H A Dcountable_count_variation1.phpt19 return new returnObject;
31 throw new Exception('Thrown from count');
37 var_dump(count(new returnNull));
40 var_dump(count(new returnString));
43 var_dump(count(new returnObject));
46 var_dump(count(new returnArray));
50 echo count(new throwException);
H A Dfixedarray_021.phpt7 $a = new SplFixedArray();
14 $b = new SplFixedArray(-10);
20 $b = new SplFixedArray();
28 $c = new SplFixedArray(0);
32 $d = new SplFixedArray();
40 $e = new SplFixedArray(10);
54 $a = new SplFixedArray(4);
H A DrecursiveIteratorIterator_nextelement_error.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
14 throw new Exception;
19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur…
23 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
H A DrecursiveIteratorIterator_beginchildren_error.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
14 throw new Exception;
19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur…
23 $recItIt2 = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
H A DrecursiveIteratorIterator_callHasChildren_error.phpt7 $arrOb = new ArrayObject($arr);
9 $recArrIt = new RecursiveArrayIterator($arrOb->getIterator());
14 throw new Exception;
19 $recItIt = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY, Recur…
23 $recItIt2 = new MyRecursiveIteratorIterator($recArrIt, RecursiveIteratorIterator::LEAVES_ONLY);
H A Darray_016.phpt6 $it = new ArrayIterator(range(0,3));
8 foreach(new IteratorIterator($it) as $v)
13 $it = new ArrayObject(range(0,3));
15 foreach(new IteratorIterator($it) as $v)
H A Dbug61418.phpt5 $fileIterator = new FilesystemIterator(__DIR__, FilesystemIterator::KEY_AS_FILENAME);
6 $regexpIterator = new RegexIterator($fileIterator, '#.*#');
13 $dirIterator = new DirectoryIterator(__DIR__);
14 $regexpIterator2 = new RegexIterator($dirIterator, '#.*#');
H A Darray_019.phpt6 $ar = new ArrayObject(array(1)); foreach($ar as &$v) var_dump($v);
7 $ar = new ArrayIterator(array(2)); foreach($ar as &$v) var_dump($v);
8 $ar = new RecursiveArrayIterator(array(3)); foreach($ar as &$v) var_dump($v);
18 $ar = new ArrayIteratorEx(array(4)); foreach($ar as $v) var_dump($v);
19 $ar = new ArrayIteratorEx(array(5)); foreach($ar as &$v) var_dump($v);
/PHP-5.4/Zend/tests/
H A Dbug45178.phpt2 Bug #45178 memory corruption on assignment result of "new" by reference
10 $a =& new Foo();
18 $b =& new Bar();
23 Deprecated: Assigning the return value of new by reference is deprecated in %sbug45178.php on line 7
25 Deprecated: Assigning the return value of new by reference is deprecated in %sbug45178.php on line …
H A Dindirect_property_access.phpt16 $bar = new bar;
18 var_dump((new bar)->y); // foo
19 var_dump((new $x)->y); // foo
20 var_dump((new $bar->y)->x); // 1
H A Dbug64720.phpt9 self::$requests[1] = new self();
35 new Error();
39 new Error();
43 $foo = new Foo();
44 $bar = new Bar();
H A Dbug40757.phpt15 $base=new Base();
16 print_r($base->getFields(new Base()));
17 $child=new Child();
18 print_r($child->getFields(new Base()));
H A Dbug49893.phpt8 throw new Exception("2");
16 $this->a = new A();
17 throw new Exception("1");
21 $b = new B();
/PHP-5.4/ext/soap/tests/
H A Dserver031.phpt34 return new ItemArray(array(
35 new Item(0),
36 new Item(1),
37 new Item(2),
38 new Item(3),
39 new Item(4),
40 new Item(5),
41 new Item(6),
42 new Item(7),
43 new Item(8),
[all …]
/PHP-5.4/ext/dba/
H A Ddba_tcadb.c92 char *value, *new = NULL; in DBA_FETCH_FUNC() local
100 new = estrndup(value, value_size); in DBA_FETCH_FUNC()
104 return new; in DBA_FETCH_FUNC()
155 char *value, *new = NULL; in DBA_FIRSTKEY_FUNC() local
164 new = estrndup(value, value_size); in DBA_FIRSTKEY_FUNC()
168 return new; in DBA_FIRSTKEY_FUNC()
175 char *value, *new = NULL; in DBA_NEXTKEY_FUNC() local
182 new = estrndup(value, value_size); in DBA_NEXTKEY_FUNC()
186 return new; in DBA_NEXTKEY_FUNC()
/PHP-5.4/sapi/fpm/fpm/
H A Dfpm_atomic.h104 static inline int atomic_cas_64(atomic_t *lock, atomic_uint_t old, atomic_uint_t new) /* {{{ */ in atomic_cas_64() argument
106 __asm__ __volatile__("casx [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_64()
108 return new; in atomic_cas_64()
121 static inline int atomic_cas_32(atomic_t *lock, atomic_uint_t old, atomic_uint_t new) /* {{{ */ in atomic_cas_32() argument
123 __asm__ __volatile__("cas [%2], %3, %0 " : "=&r"(new) : "0"(new), "r"(lock), "r"(old): "memory"); in atomic_cas_32()
125 return new; in atomic_cas_32()
/PHP-5.4/ext/phar/tests/zip/
H A Dcorrupt_008.phpt9 new PharData(dirname(__FILE__) . '/files/compress_unsup1.zip');
14 new PharData(dirname(__FILE__) . '/files/compress_unsup2.zip');
19 new PharData(dirname(__FILE__) . '/files/compress_unsup3.zip');
24 new PharData(dirname(__FILE__) . '/files/compress_unsup4.zip');
29 new PharData(dirname(__FILE__) . '/files/compress_unsup5.zip');
34 new PharData(dirname(__FILE__) . '/files/compress_unsup6.zip');
39 new PharData(dirname(__FILE__) . '/files/compress_unsup7.zip');
44 new PharData(dirname(__FILE__) . '/files/compress_unsup9.zip');
49 new PharData(dirname(__FILE__) . '/files/compress_unsup10.zip');
54 new PharData(dirname(__FILE__) . '/files/compress_unsup14.zip');
[all …]
/PHP-5.4/tests/lang/
H A DforeachLoop.009.phpt29 array_push($refedArray, "new.$k");
43 array_push($refedArray, "new.$k");
67 key: 3; value: new.0
68 key: 4; value: new.1
69 key: 5; value: new.2
70 key: 6; value: new.3
77 key: 3; value: new.0
78 key: 4; value: new.1
79 key: 5; value: new.2
80 key: 6; value: new.3

Completed in 119 milliseconds

12345678910>>...187