Home
last modified time | relevance | path

Searched refs:new (Results 201 – 225 of 4839) sorted by relevance

12345678910>>...194

/PHP-5.5/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-5.5/ext/date/tests/
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 Dbug65548.phpt9 $iToday = new DateTimeImmutable('today');
10 $iTomorrow = new DateTimeImmutable('tomorrow');
12 $mToday = new DateTime('today');
13 $mTomorrow = new DateTime('tomorrow');
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-5.5/Zend/tests/
H A Dbug26166.phpt20 $this->obj = new Foo();
29 $o = new Bar;
46 $o = new None;
54 throw new Exception("This is an error!");
58 $o = new Error;
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 Dbug38772.phpt34 $a = new A();
35 $b = new B();
36 $c = new C();
37 $d = new D();
H A Dexception_008.phpt9 throw new Exception("First");
16 throw new Exception("Second");
20 $ar = array(new TestFirst, new TestSecond);
H A Dbug31177-2.phpt7 if($n) throw new Exception("new");
10 $x = new foo();
/PHP-5.5/ext/soap/tests/interop/Round2/GroupB/
H A Dr2_groupB_004s.phpt9 $param = new SoapParam(new SoapVar(array(
10 new SoapVar("arg", XSD_STRING, null, null, "varString"),
11 new SoapVar(34, XSD_INT, null, null, "varInt"),
12 new SoapVar(123.45, XSD_FLOAT, null, null, "varFloat"),
13 new SoapVar(array(
14 new SoapVar("arg2", XSD_STRING, null, null, "varString"),
15 new SoapVar(342, XSD_INT, null, null, "varInt"),
16 new SoapVar(123.452, XSD_FLOAT, null, null, "varFloat")
19 $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=…
H A Dr2_groupB_005s.phpt9 $param = new SoapParam(new SoapVar(array(
10 new SoapVar("arg", XSD_STRING, null, null, "varString"),
11 new SoapVar(34, XSD_INT, null, null, "varInt"),
12 new SoapVar(325.325, XSD_FLOAT, null, null, "varFloat"),
13 new SoapVar(array(
14 new SoapVar("red", XSD_STRING),
15 new SoapVar("blue", XSD_STRING),
16 new SoapVar("green", XSD_STRING),
19 $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=…
/PHP-5.5/ext/standard/tests/array/
H A D007.phpt92 $a = array(new cr(9),new cr(12),new cr(23),new cr(4),new cr(-15),);
93 $b = array(new cr(9),new cr(22),new cr( 3),new cr(4),new cr(-15),);
96 $a = array("0.1" => new cr(9), "0.5" => new cr(12), 0 => new cr(23), 1=> new cr(4), 2 => new cr(-15…
97 $b = array("0.2" => new cr(9), "0.5" => new cr(22), 0 => new cr( 3), 1=> new cr(4), 2 => new cr(-15…
/PHP-5.5/ext/spl/tests/
H A Dregexiterator_getregex.phpt9 $iterator = new ArrayIterator($array);
12 $regexIterator = new RegexIterator($iterator, '/.at/');
16 $regexIterator = new RegexIterator($iterator, '//');
20 $regexIterator = new RegexIterator($iterator, '|\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b|');
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);
H A Diterator_037.phpt9 $it = new CachingIterator($ar, 0);
55 $ar = new MyArrayIterator(array(1, 2, 3));
61 $ar = new MyArrayIterator(array(new MyItem(1), new MyItem(2), new MyItem(3)));
73 $it = new CachingIterator($ar, CachingIterator::CALL_TOSTRING);
82 $it = new CachingIterator($ar, CachingIterator::TOSTRING_USE_INNER);
H A Dbug53144.phpt6 $o1 = new StdClass;
7 $o2 = new StdClass;
9 $b = new SplObjectStorage();
/PHP-5.5/ext/reflection/tests/
H A DReflectionFunction_construct.001.phpt9 $a = new ReflectionFunction(array(1, 2, 3));
11 $a = new ReflectionFunction('nonExistentFunction');
15 $a = new ReflectionFunction();
16 $a = new ReflectionFunction(1, 2);
H A DReflectionParameter_invalidMethodInConstructor.phpt8 new ReflectionParameter (array ('A', 'b'), 0);
13 new ReflectionParameter (array ('C', 'b'), 0);
18 new ReflectionParameter (array (new C, 'b'), 0);
/PHP-5.5/ext/phar/tests/zip/
H A Dopen_for_write_newfile_b.phpt2 Phar: fopen a .phar for writing (new file) zip-based
17 $phar = new Phar($fname);
39 $fp = fopen($alias . '/b/new.php', 'wb');
44 include $alias . '/b/new.php';
52 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar e…
59 …clude(phar://%sopen_for_write_newfile_b.phar.zip/b/new.php): failed to open stream: phar error: "b…
61 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.zip/b/new.php' for inclu…
H A Dopen_for_write_newfile_b_5_2.phpt2 Phar: fopen a .phar for writing (new file) zip-based
15 $phar = new Phar($fname);
37 $fp = fopen($alias . '/b/new.php', 'wb');
42 include $alias . '/b/new.php';
50 Warning: fopen(phar://%sopen_for_write_newfile_b_5_2.phar.zip/b/new.php): failed to open stream: ph…
57 …e(phar://%sopen_for_write_newfile_b_5_2.phar.zip/b/new.php): failed to open stream: phar error: "b…
59 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b_5_2.phar.zip/b/new.php' for i…
/PHP-5.5/ext/phar/tests/tar/
H A Dopen_for_write_newfile_b.phpt2 Phar: fopen a .phar for writing (new file) tar-based
17 $phar = new Phar($fname);
39 $fp = fopen($alias . '/b/new.php', 'wb');
44 include $alias . '/b/new.php';
53 Warning: fopen(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar e…
60 …clude(phar://%sopen_for_write_newfile_b.phar.tar/b/new.php): failed to open stream: phar error: "b…
62 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b.phar.tar/b/new.php' for inclu…
H A Dopen_for_write_newfile_b_5_2.phpt2 Phar: fopen a .phar for writing (new file) tar-based
15 $phar = new Phar($fname);
37 $fp = fopen($alias . '/b/new.php', 'wb');
42 include $alias . '/b/new.php';
51 Warning: fopen(phar://%sopen_for_write_newfile_b_5_2.phar.tar/b/new.php): failed to open stream: ph…
58 …e(phar://%sopen_for_write_newfile_b_5_2.phar.tar/b/new.php): failed to open stream: phar error: "b…
60 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_b_5_2.phar.tar/b/new.php' for i…
/PHP-5.5/ext/phar/tests/
H A Dtest_signaturealgos.phpt16 $a = new Phar(dirname(__FILE__) . '/files/sha1.phar');
19 $a = new Phar(dirname(__FILE__) . '/files/sha512.phar');
22 $a = new Phar(dirname(__FILE__) . '/files/sha256.phar');
25 $a = new Phar(dirname(__FILE__) . '/files/md5.phar');
28 $a = new Phar(dirname(__FILE__) . '/files/openssl.phar');
/PHP-5.5/ext/soap/tests/bugs/
H A Dbug50762.phpt21 $this->server = new SoapServer($wsdl, $options);
22 $this->server->setObject(new testSoap());
35 $cl = new LocalSoapClient(dirname(__FILE__).'/bug50762.wsdl', array('cache_wsdl'=>WSDL_CACHE_NONE, …
43 $cl->__setSoapHeaders(array(new SoapHeader('http://sova.pronto.ru/', 'authToken', new authToken('to…

Completed in 59 milliseconds

12345678910>>...194