Home
last modified time | relevance | path

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

12345678910>>...189

/PHP-5.5/Zend/tests/
H A Dbug60833.phpt8 $this->v1 = new sELF;
9 $this->v2 = new SELF;
17 $this->v3 = new sELF;
18 $this->v4 = new PARENT;
22 $t = new B();
H A Dns_072.phpt23 new bar(new test);
24 new bar(null);
25 new bar(new \stdclass);
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 Dbug65784.phpt9 throw new Exception("not catch");
13 throw new Exception("catched");
30 throw new Exception("catched");
34 throw new Exception("catched");
47 throw new Exception("not catched");
51 throw new NotExists();
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
/PHP-5.5/ext/intl/tests/
H A Ddateformat_create_cal_arg.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
33 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
37 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
H A Ddateformat_create_cal_arg_variant4.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
33 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
37 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
H A Ddateformat_create_cal_arg_variant2.phpt15 $cal = new IntlGregorianCalendar('UTC', NULL);
16 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
20 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
24 $cal = new IntlGregorianCalendar('UTC', NULL);
25 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
29 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
33 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
37 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
40 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
H A Ddateformat_create_cal_arg_variant3.phpt16 $cal = new IntlGregorianCalendar('UTC', NULL);
17 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
21 $df = new IntlDateFormatter('es_ES', 0, 0, NULL, $cal);
25 $cal = new IntlGregorianCalendar('UTC', NULL);
26 $df = new IntlDateFormatter('es_ES', 0, 0, 'Europe/Madrid', $cal);
30 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0);
34 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, NULL, IntlDateFormatter::TRADITIONAL);
38 $df = new IntlDateFormatter('es_ES@calendar=islamic', 0, 0, 'UTC', IntlDateFormatter::TRADITIONAL);
41 $df = new IntlDateFormatter('es_ES', 0, 0, 'UTC', 0);
/PHP-5.5/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()
136 char *value, *new = NULL; in DBA_FIRSTKEY_FUNC() local
143 new = estrndup(value, value_size); in DBA_FIRSTKEY_FUNC()
147 return new; in DBA_FIRSTKEY_FUNC()
154 char *value, *new = NULL; in DBA_NEXTKEY_FUNC() local
159 new = estrndup(value, value_size); in DBA_NEXTKEY_FUNC()
163 return new; in DBA_NEXTKEY_FUNC()
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.5/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_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 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 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)
/PHP-5.5/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"));
/PHP-5.5/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.5/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 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.5/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 30 milliseconds

12345678910>>...189