Home
last modified time | relevance | path

Searched refs:new (Results 226 – 250 of 4839) sorted by relevance

12345678910>>...194

/PHP-5.5/Zend/tests/
H A Dns_070.phpt14 new bar(new \stdclass);
15 new bar(null);
H A Deach_002.phpt6 $foo = each(new stdClass);
9 var_dump(each(new stdClass));
11 $a = array(new stdClass);
H A Dbug30162.phpt9 throw new Exception;
23 $this->z = new FIIFO;
35 $db = new FIIFO();
40 $db = new hariCow;
H A Dclosure_042.phpt9 $d = $c->bindTo(new stdClass);
11 $rm = new ReflectionFunction($d);
15 $d = $c->bindTo(new stdClass, NULL);
17 $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-5.5/ext/soap/tests/interop/Round2/Base/
H A Dr2_base_015s.phpt17 $struct1 = new SoapVar(array(
18 new SoapVar('arg', XSD_STRING, null, null, 'varString'),
19 new SoapVar('34', XSD_INT, null, null, 'varInt'),
20 new SoapVar('325.325', XSD_FLOAT, null, null, 'varFloat')
22 $struct2 = new SoapVar(array(
23 new SoapVar('arg', XSD_STRING, null, null, 'varString'),
24 new SoapVar('34', XSD_INT, null, null, 'varInt'),
25 new SoapVar('325.325', XSD_FLOAT, null, null, 'varFloat')
28 $param = new SoapParam(new SoapVar(array(
32 $client = new SoapClient(NULL,array("location"=>"test://","uri"=>"http://soapinterop.org/","trace"=…
/PHP-5.5/ext/spl/tests/
H A DarrayObject_magicMethods1.phpt31 $obj = new UsesMagic;
33 $ao = new ArrayObject($obj);
36 $ao['dynamic'] = 'new';
37 $ao['dynamic'] = 'new.changed';
83 string(11) "new.changed"
98 string(11) "new.changed"
107 string(11) "new.changed"
119 string(11) "new.changed"
134 string(11) "new.changed"
153 string(11) "new.changed"
[all …]
H A Dbug61326.phpt5 $aobj1 = new ArrayObject(array(0));
6 $aobj2 = new ArrayObject(array(1));
9 $aobj3 = new ArrayObject(array(0));
H A Dbug50579.phpt14 $h = new foo;
15 $i = new RegexIterator($h, '/^test(.*)/', RegexIterator::REPLACE);
26 $h = new foo;
27 $i = new RegexIterator($h, '/^test(.*)/', RegexIterator::REPLACE);
H A DarrayObject___construct_error1.phpt6 $a = new stdClass;
9 var_dump(new ArrayObject($a, 0, "Exception"));
16 var_dump(new ArrayObject(new stdClass, 0, "nonExistentClassName"));
/PHP-5.5/tests/lang/
H A DforeachLoop.012.phpt294 string(5) "new.0"
315 string(5) "new.0"
317 string(5) "new.1"
343 string(5) "new.0"
345 string(5) "new.1"
347 string(5) "new.2"
378 string(5) "new.0"
380 string(5) "new.1"
382 string(5) "new.2"
384 string(5) "new.3"
[all …]
/PHP-5.5/ext/reflection/tests/
H A Dparameters_001.phpt12 $f = new ReflectionMethod('Test', 'func');
16 $p = new ReflectionParameter(array('Test', 'func'), 'x');
19 $p = new ReflectionParameter(array('Test', 'func'), 'y');
23 $p = new ReflectionParameter(array('Test', 'func'), 'z');
H A Dbug39067.phpt18 $rc = new ReflectionClass('C');
21 $rc = new ReflectionClass('B');
24 $rc = new ReflectionClass('A');
35 $rc = new ReflectionClass('Test2');
H A DReflectionClass_isIterateable_variation1.phpt12 $reflection = new ReflectionClass($obj);
16 $basicClass = new BasicClass();
17 $stdClass = new StdClass();
/PHP-5.5/ext/phar/tests/cache_list/files/
H A Dwrite6.phar.inc6 $phar = new Phar($fname);
8 $phar = new Phar(__FILE__);
13 $arr = $phar->buildFromIterator(new RecursiveDirectoryIterator($d, RecursiveDirectoryIterator::SKIP…
17 $phar2 = new Phar(__FILE__);
H A Dwrite8.phar.inc6 $phar = new Phar($fname);
8 $p = new Phar(__FILE__);
10 $p2 = new Phar(__FILE__);
/PHP-5.5/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 exception 'LogicException' with message 'new throw' in %s:%d
/PHP-5.5/ext/intl/tests/
H A Dcalendar_setTimeZone_variation2.phpt13 $intlcal = new IntlGregorianCalendar();
16 $intlcal->setTimeZone(new DateTimeZone('Europe/Madrid'));
19 $pstdate = new DateTime('2012-01-01 00:00:00 PST');
23 $offsetdate = new DateTime('2012-01-01 00:00:00 -02:30');
/PHP-5.5/ext/standard/tests/serialize/
H A Dbug64146.phpt14 $this->a[] = new B(1);
15 $this->a[] = new B(2);
25 $this->b = new C($c);
49 $a = unserialize(serialize(new A()));
/PHP-5.5/ext/date/tests/
H A DDateTimeZone_getOffset_basic1.phpt16 $tz1 = new DateTimeZone("Europe/London");
17 $date = new DateTime("GMT");
20 $tz2 = new DateTimeZone("America/New_York");
23 $tz3 = new DateTimeZone("America/Los_Angeles");
/PHP-5.5/ext/standard/tests/array/
H A Dbug35821.phpt10 throw new Exception();
19 $arr = array(new Element(), new Element(), new Element());
/PHP-5.5/ext/soap/tests/bugs/
H A Dbug30928.phpt23 $this->server = new SoapServer($wsdl, $options);
36 $x = new LocalSoapClient(dirname(__FILE__)."/bug30928.wsdl",
38 var_dump($x->test(new foo()));
40 $x = new LocalSoapClient(dirname(__FILE__)."/bug30928.wsdl",
42 var_dump($x->test(new foo()));
/PHP-5.5/ext/standard/tests/strings/
H A Dnl2br_variation3.phpt11 * combinations of new line chars to 'str' argument
15 //heredoc string containing new line chars(\n, \r and combinations of \r & \n) and new lines
25 //heredoc string containing embedded 'new line chars'/'new lines' in the string
28 This is \tes\t for \n \new lines
/PHP-5.5/ext/phar/tests/
H A Dopen_for_write_newfile_c.phpt2 Phar: fopen a .phar for writing (new file)
23 $fp = fopen($pname . '/b/new.php', 'wb');
27 include $pname . '/b/new.php';
35 Warning: fopen(phar://%sopen_for_write_newfile_c.phar.php/b/new.php): failed to open stream: phar e…
42 …clude(phar://%sopen_for_write_newfile_c.phar.php/b/new.php): failed to open stream: phar error: "b…
44 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c.phar.php/b/new.php' for inclu…
H A Dopen_for_write_newfile_c_5_2.phpt2 Phar: fopen a .phar for writing (new file)
21 $fp = fopen($pname . '/b/new.php', 'wb');
25 include $pname . '/b/new.php';
33 Warning: fopen(phar://%sopen_for_write_newfile_c_5_2.phar.php/b/new.php): failed to open stream: ph…
40 …e(phar://%sopen_for_write_newfile_c_5_2.phar.php/b/new.php): failed to open stream: phar error: "b…
42 Warning: include(): Failed opening 'phar://%sopen_for_write_newfile_c_5_2.phar.php/b/new.php' for i…

Completed in 91 milliseconds

12345678910>>...194