/PHP-7.3/ext/spl/tests/ |
H A D | bug75155.phpt | 6 $array_a = new ArrayIterator(array('a', 'b', 'c')); 7 $array_b = new ArrayIterator(array('d', 'e', 'f')); 9 $iterator = new AppendIterator; 12 $iterator2 = new AppendIterator;
|
H A D | iterator_029.phpt | 8 foreach(new RegexIterator(new ArrayIterator($ar), "/2/") as $k => $v) 17 foreach(new RegexIterator(new ArrayIterator($ar), "/2/", 0, RegexIterator::USE_KEY) as $k => $v)
|
H A D | recursiveIteratorIterator_endchildren_error.phpt | 7 $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 D | iterator_033.phpt | 6 $it = new ParentIterator(new RecursiveArrayIterator(array(1,array(21,22, array(231)),3))); 8 foreach(new RecursiveIteratorIterator($it) as $k=>$v) 16 foreach(new RecursiveIteratorIterator($it, 1) as $k=>$v)
|
/PHP-7.3/Zend/tests/ |
H A D | bug49893.phpt | 8 throw new Exception("2"); 16 $this->a = new A(); 17 throw new Exception("1"); 21 $b = new B();
|
H A D | bug40757.phpt | 15 $base=new Base(); 16 print_r($base->getFields(new Base())); 17 $child=new Child(); 18 print_r($child->getFields(new Base()));
|
H A D | bug70944.phpt | 6 $e = new Exception("Foo"); 8 throw new Exception("Bar", 0, $e); 17 $e = new Exception("Foo"); 19 throw new Exception("Bar", 0, $e); 21 throw new Exception("Dummy", 0, $e);
|
H A D | bug74053.phpt | 12 static $new; 17 self::$b = new b; 18 self::$new[] = new a; 21 new a;
|
H A D | ns_072.phpt | 23 new bar(new test); 24 new bar(null); 25 new bar(new \stdclass);
|
H A D | ns_085.phpt | 10 new foo; 11 new bar; 18 new foo1; 19 new foo;
|
/PHP-7.3/ext/reflection/tests/ |
H A D | ReflectionFunction_isGenerator_basic.phpt | 11 $rf1 = new ReflectionFunction($closure1); 14 $rf2 = new ReflectionFunction($closure2); 25 $rf1 = new ReflectionFunction('func1'); 28 $rf2 = new ReflectionFunction('func2'); 41 $rc = new ReflectionClass('Foo');
|
H A D | bug75231.phpt | 20 print_r((new ReflectionMethod(B::class, 'method'))->invoke(new A()).PHP_EOL); 21 print_r((new ReflectionProperty(B::class, 'prop'))->getValue(new A()).PHP_EOL);
|
/PHP-7.3/ext/intl/tests/ |
H A D | msgfmt_format_datetime.phpt | 18 $dt = new DateTime("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon")); 19 $dti = new DateTimeImmutable("2012-05-06 18:00:42", new DateTimeZone("Europe/Lisbon")); 21 $mf = new MessageFormatter('en_US', $fmt);
|
H A D | dateformat_create_cal_arg_variant3.phpt | 16 $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);
|
H A D | dateformat_create_cal_arg_variant4.phpt | 16 $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);
|
H A D | dateformat_create_cal_arg_variant5.phpt | 15 $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 D | dateformat_create_cal_arg_variant2.phpt | 15 $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);
|
/PHP-7.3/ext/dba/ |
H A D | dba_tcadb.c | 90 char *value, *new = NULL; in DBA_FETCH_FUNC() local 98 new = estrndup(value, value_size); in DBA_FETCH_FUNC() 102 return new; in DBA_FETCH_FUNC() 153 char *value, *new = NULL; in DBA_FIRSTKEY_FUNC() local 162 new = estrndup(value, value_size); in DBA_FIRSTKEY_FUNC() 166 return new; in DBA_FIRSTKEY_FUNC() 173 char *value, *new = NULL; in DBA_NEXTKEY_FUNC() local 180 new = estrndup(value, value_size); in DBA_NEXTKEY_FUNC() 184 return new; in DBA_NEXTKEY_FUNC()
|
/PHP-7.3/ext/date/tests/ |
H A D | bug52480.phpt | 8 $expectedDiff = (array) new DateInterval('P30D'); 16 $start = new DateTime('2017-03-01', new DateTimeZone($timezone)); 17 $end = new DateTime('2017-03-31', new DateTimeZone($timezone));
|
H A D | DateTimeZone_construct_error.phpt | 2 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"; 19 new DateTimeZone($timezone, $extra_arg); 29 -- Testing new DateTimeZone() with more than expected no. of arguments --
|
H A D | bug54597.phpt | 7 $tz = new DateTimeZone("Europe/Amsterdam"); 8 $dateObject = new DateTime( 'January 0099', $tz ); 10 $dateObject = new DateTime( 'January 1, 0099', $tz ); 12 $dateObject = new DateTime( '0099-01', $tz );
|
H A D | bug73858.phpt | 13 $s = new DateTime($ss); 14 $e = new DateTime($es); 18 $s = (new DateTime(null))->setTimestamp(strtotime($ss)); // verbose setup method 19 $e = (new DateTime(null))->setTimestamp(strtotime($es)); // verbose setup method 27 $s = (new DateTime(null))->setTimestamp(strtotime($ss)); // verbose setup method 28 $e = new DateTime($es); 32 $s = new DateTime($ss); 33 $e = (new DateTime(null))->setTimestamp(strtotime($es)); // verbose setup method 41 $s = new DateTime($ss); 52 $s = new DateTime($ss); [all …]
|
/PHP-7.3/ext/dom/tests/ |
H A D | DOMNode_insertBefore.phpt | 11 $dom = new DOMDocument(); 18 echo "Add new node B\n"; 21 echo "Add new node A before B\n"; 29 Add new node B 32 Add new node A before B
|
/PHP-7.3/ext/standard/tests/array/ |
H A D | uasort_object2.phpt | 89 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-7.3/ext/soap/tests/ |
H A D | server031.phpt | 34 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 …]
|