Home
last modified time | relevance | path

Searched refs:new (Results 251 – 275 of 5774) sorted by relevance

1...<<11121314151617181920>>...231

/PHP-7.3/Zend/tests/
H A Dbug63635.phpt24 $top = new Node();
26 $ci = new Node($top);
28 $cj = new Node($ci);
30 $ck = new Node($cj);
H A Dobjects_031.phpt6 $x[] = clone new stdclass;
7 $x[] = clone new stdclass;
8 $x[] = clone new stdclass;
H A Dzend2.php.txt23 self::$m_instance = new Counter();
58 return new Circle();
60 return new Square();
112 $obj = new HelloWorld();
139 $this->name = new Name($_name);
148 $person = new Person("John", "New York");
170 throw new MyException("'This is an exception!'");
211 $obj = new MyCloneable();
249 $obj = new BaseClass();
251 $obj = new SubClass();
[all …]
H A Dbug26166.phpt20 $this->obj = new Foo();
29 $o = new Bar;
46 $o = new NoneTest;
54 throw new Exception("This is an error!");
58 $o = new ErrorTest;
H A Dbug67922.phpt8 return new stdClass;
12 $b = new stdClass;
13 $b->c = new C;
H A Dtemporary_cleaning_001.phpt7 throw new Exception();
12 $y = new stdClass;
13 while ($x-- && new stdClass) {
H A Dbug31177-2.phpt7 if($n) throw new Exception("new");
10 $x = new foo();
H A Dns_070.phpt14 new bar(new \stdclass);
15 new bar(null);
H A Dbug38772.phpt34 $a = new A();
35 $b = new B();
36 $c = new C();
37 $d = new D();
H A Dclosure_042.phpt7 $d = $c->bindTo(new stdClass);
9 $rm = new ReflectionFunction($d);
13 $d = $c->bindTo(new stdClass, NULL);
15 $rm = new ReflectionFunction($d);
H A Dexception_007.phpt8 throw new Exception("First", 1, new Exception("Another", 0, NULL));
11 throw new Exception("Second", 2, $e);
15 throw new Exception("Third", 3, $e);
/PHP-7.3/ext/spl/tests/
H A Dfixedarray_005.phpt7 $a = new SplFixedArray(new stdClass);
13 $a = new SplFixedArray('FOO');
19 $a = new SplFixedArray('');
H A Dbug53144.phpt6 $o1 = new StdClass;
7 $o2 = new StdClass;
9 $b = new SplObjectStorage();
H A Dspl_limit_iterator_check_limits.phpt9 $arrayIterator = new ArrayIterator($array);
12 $limitIterator = new LimitIterator($arrayIterator, -1);
19 $limitIterator = new LimitIterator($arrayIterator, 0, -2);
25 $limitIterator = new LimitIterator($arrayIterator, 0, -1);
/PHP-7.3/ext/date/tests/
H A Dbug65548.phpt9 $iToday = new DateTimeImmutable('today');
10 $iTomorrow = new DateTimeImmutable('tomorrow');
12 $mToday = new DateTime('today');
13 $mTomorrow = new DateTime('tomorrow');
H A DDatePeriod_properties1.phpt8 $start = new DateTime;
9 $interval = new DateInterval('P1D');
10 $end = new DateTime;
11 $period = new DatePeriod($start, $interval, $end);
H A Ddate_period-immutable.phpt6 $db1 = new DateTimeImmutable( '2008-01-01' );
7 $db2 = new DateTime( '2008-01-01' );
8 $de = new DateTime( '2008-03-31' );
11 foreach ( new DatePeriod( $db1, $di, $de ) as $dt )
19 foreach ( new DatePeriod( $db2, $di, $de ) as $dt )
H A DDateTime_extends_basic2.phpt9 echo "*** Testing new DateTime() : with user space __construct magic method ***\n";
17 $dtz = new DateTimeZone(date_default_timezone_get());
23 $d = new DateTimeExt("1967-05-01 22:30:41");
29 *** Testing new DateTime() : with user space __construct magic method ***
/PHP-7.3/ext/soap/tests/interop/Round2/GroupB/
H A Dr2_groupB_003s.phpt7 $param = new SoapParam(new SoapVar(array(
8 new SoapVar(array(
9 new SoapVar('row0col0', XSD_STRING),
10 new SoapVar('row0col1', XSD_STRING),
11 new SoapVar('row0col2', XSD_STRING)
13 new SoapVar(array(
14 new SoapVar('row1col0', XSD_STRING),
15 new SoapVar('row1col1', XSD_STRING),
16 new SoapVar('row1col2', XSD_STRING)
19 $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=…
/PHP-7.3/ext/phar/tests/tar/
H A Dopen_for_write_newfile_b.phpt2 Phar: fopen a .phar for writing (new file) tar-based
16 $phar = new Phar($fname);
38 $fp = fopen($alias . '/b/new.php', 'wb');
43 include $alias . '/b/new.php';
51 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar e…
58 …clude(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar error: "b…
60 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.tar/b/new.php' for inclu…
/PHP-7.3/ext/phar/tests/zip/
H A Dopen_for_write_newfile_b.phpt2 Phar: fopen a .phar for writing (new file) zip-based
16 $phar = new Phar($fname);
38 $fp = fopen($alias . '/b/new.php', 'wb');
43 include $alias . '/b/new.php';
50 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar e…
57 …clude(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar error: "b…
59 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.zip/b/new.php' for inclu…
/PHP-7.3/ext/reflection/tests/
H A DReflectionMethod_invoke_basic.phpt16 throw new Exception("Called willThrow()");
41 $foo = new ReflectionMethod('TestClass', 'foo');
42 $methodWithArgs = new ReflectionMethod('TestClass', 'methodWithArgs');
43 $staticMethod = new ReflectionMethod('TestClass::staticMethod');
44 $privateMethod = new ReflectionMethod("TestClass::privateMethod");
45 $methodThatThrows = new ReflectionMethod("TestClass::willThrow");
47 $testClassInstance = new TestClass();
65 var_dump($staticMethod->invoke(new stdClass()));
H A DReflectionFunction_construct.001.phpt10 $a = new ReflectionFunction(array(1, 2, 3));
16 $a = new ReflectionFunction('nonExistentFunction');
21 $a = new ReflectionFunction();
26 $a = new ReflectionFunction(1, 2);
31 $a = new ReflectionFunction([]);
/PHP-7.3/ext/mysqli/tests/
H A Dmysqli_connect_oo.phpt2 new mysqli()
16 $obj = new stdClass();
41 if (!is_object($mysqli = new mysqli($host, $user)) || (0 !== mysqli_connect_errno())) {
48 if (!is_object($mysqli = new mysqli($host)) || (0 !== mysqli_connect_errno())) {
55 if (!is_object($mysqli = new mysqli()) || (0 !== mysqli_connect_errno())) {
58 // There shall be NO connection! Using new mysqli(void) shall not use defaults for a connection!
70 if (!is_object($mysqli = new mysqli())) {
100 $mysqli = new mysqli($host, $user, $passwd, $db, $port);
109 $mysqli = new mysqli($host, $user, $passwd, $db);
118 $mysqli = new mysqli($host, $user);
[all …]
/PHP-7.3/Zend/tests/generators/
H A Dthrow_rethrow.phpt13 throw new LogicException('new throw');
18 var_dump($gen->throw(new RuntimeException('throw')));
28 Fatal error: Uncaught LogicException: new throw in %s:%d

Completed in 30 milliseconds

1...<<11121314151617181920>>...231