Home
last modified time | relevance | path

Searched refs:new (Results 451 – 475 of 4661) sorted by relevance

1...<<11121314151617181920>>...187

/PHP-5.4/Zend/tests/
H A Dclass_alias_003.phpt12 return new static;
16 $a = new foo;
H A Derrmsg_044.phpt6 $a[0] = new stdclass;
7 $a[0][0] = new stdclass;
H A Dindirect_method_call_001.phpt8 throw new Exception('foobar');
13 $X = (new foo)->Inexistent(3);
H A Dbug60138.phpt8 $iterator = new RecursiveIteratorIterator(
9 new RecursiveArrayIterator($tree),
H A Dfr47160.phpt45 $h= new Hello;
53 return array(new Hello,'world');
63 $c = new Hello;
71 $f = array(new Magic, 'foo');
90 $f = array(new Magic3, 'foo');
96 $f = array(new Hello2, 'world');
/PHP-5.4/ext/pdo_mysql/tests/
H A Dpdo_mysql___construct_options.phpt20 $db = new PDO($dsn, $user, $pass, array($option => $value));
69 if (NULL !== ($db = @new PDO($dsn, $user, $pass, 'wrong type')))
72 if (!is_object($db = new PDO($dsn, $user, $pass, array())))
78 if (is_object($db = new PDO($dsn, $user, $pass, array($invalid => true))))
81 $db = new PDO($dsn, $user, $pass);
91 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => true));
95 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_AUTOCOMMIT => false));
100 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => 10))))
103 if (!is_object($db = new PDO($dsn, $user, $pass, array(PDO::ATTR_TIMEOUT => PHP_INT_MAX))))
110 $db = new PDO($dsn, $user, $pass, array(PDO::ATTR_EMULATE_PREPARES => true));
[all …]
/PHP-5.4/tests/classes/
H A Dtype_hinting_004.phpt20 call_user_func('f1', new A);
23 call_user_func('f2', new A);
45 call_user_func(array('C', 'f1'), new A);
48 call_user_func(array('C', 'f2'), new A);
69 $d = new D;
71 call_user_func(array($d, 'f1'), new A);
74 call_user_func(array($d, 'f2'), new A);
/PHP-5.4/ext/soap/tests/interop/Round4/GroupH/
H A Dr4_groupH_complex_doclit_007w.phpt36 $s1 = new BaseStruct(new SOAPStruct("s1",1,1.1),1);
37 $s2 = new ExtendedStruct(new SOAPStruct("s2",2,2.2),2,"arg",-3,5);
38 $s3 = new MoreExtendedStruct(new SOAPStruct("s3",3,3.3),3,"arg",-3,5,true);
39 $client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"e…
H A Dr4_groupH_complex_doclit_008w.phpt36 $s1 = new BaseStruct(new SOAPStruct("s1",1,1.1),1);
37 $s2 = new ExtendedStruct(new SOAPStruct("s2",2,2.2),2,"arg",-3,5);
38 $s3 = new MoreExtendedStruct(new SOAPStruct("s3",3,3.3),3,"arg",-3,5,true);
39 $client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"e…
H A Dr4_groupH_complex_doclit_009w.phpt36 $s1 = new BaseStruct(new SOAPStruct("s1",1,1.1),1);
37 $s2 = new ExtendedStruct(new SOAPStruct("s2",2,2.2),2,"arg",-3,5);
38 $s3 = new MoreExtendedStruct(new SOAPStruct("s3",3,3.3),3,"arg",-3,5,true);
39 $client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"e…
H A Dr4_groupH_complex_doclit_010w.phpt36 $s1 = new BaseStruct(new SOAPStruct("s1",1,1.1),1);
37 $s2 = new ExtendedStruct(new SOAPStruct("s2",2,2.2),2,"arg",-3,5);
38 $s3 = new MoreExtendedStruct(new SOAPStruct("s3",3,3.3),3,"arg",-3,5,true);
39 $client = new SoapClient(dirname(__FILE__)."/round4_groupH_complex_doclit.wsdl",array("trace"=>1,"e…
/PHP-5.4/ext/reflection/tests/
H A Dbug30961.phpt13 $ref1 = new ReflectionClass('a');
14 $ref2 = new ReflectionClass('b');
H A Dbug46205.phpt5 $x = new reflectionmethod('reflectionparameter', 'export');
9 $x->invokeArgs(new reflectionparameter('trim', 'str'), array($y, 1));
H A DReflectionMethod_returnsReference_basic.phpt14 $methodInfo = new ReflectionMethod('TestClass::foo');
17 $methodInfo = new ReflectionMethod('TestClass::bar');
H A DReflectionMethod_invokeArgs_error3.phpt29 $testClassInstance = new TestClass();
32 $foo = new ReflectionMethod($testClassInstance, 'foo');
33 $staticMethod = new ReflectionMethod('TestClass::staticMethod');
34 $privateMethod = new ReflectionMethod("TestClass::privateMethod");
42 var_dump($foo->invokeArgs(new stdClass(), array()));
65 $abstractMethod = new ReflectionMethod("AbstractClass::foo");
/PHP-5.4/ext/standard/tests/serialize/
H A Dserialization_objects_002.phpt37 new members(), null);
38 $this->f = new nomembers();
54 new C(),
55 new D( 1, 2, 3333, 444444 ),
56 new D( .5, 0.005, -1.345, 10.005e5 ),
57 new D( TRUE, true, FALSE, false ),
58 new D( "a", 'a', "string", 'string' ),
59 new D( array(),
61 array(new nomembers(), $file_handle, NULL, ""),
64 new D( NULL, null, "", "\0" ),
[all …]
H A Dbug42919.phpt8 echo serialize(new Bar) . "\n";
9 $x = unserialize(serialize(new Bar));
/PHP-5.4/win32/build/
H A Dphpize.js.in33 var module_dirs = new Array();
64 var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"].*\\)", "gm");
66 var deps = new Array();
86 var fc = new Enumerator(f.SubFolders);
93 + c.replace(new RegExp('(["\\\\])', "g"), '\\$1') + "'));\r\n";
98 item = new Module_Item(n, c, dir_line, deps, contents);
113 + c.replace(new RegExp('(["\\\\])', "g"), '\\$1') + "'));\r\n";
118 item = new Module_Item(n, c, dir_line, deps, contents);
153 var module_names = (new VBArray(MODULES.Keys())).toArray();
170 module_names = (new VBArray(MODULES.Keys())).toArray();
[all …]
/PHP-5.4/ext/spl/internal/
H A Dsplfileobject.inc20 /** Flag: wheter to suppress new lines */
33 * Constructs a new file object
47 throw new RuntimeException("Cannot open file $file_name");
97 * @param delimiter new delimiter, defaults to ','
98 * @param enclosure new enclosure, defaults to '"'
141 * @param pos new file position
153 * @note a new line character does not increase $this->lnum
208 * @param $size new size to truncate file to
216 * @param $flags new flag set
321 throw new RuntimeException("Cannot read from file " . $this->fname);
[all …]
/PHP-5.4/ext/phar/tests/cache_list/files/
H A Dwrite11.phar2 $p = new Phar(__FILE__);
4 $p2 = new Phar(__FILE__);
H A Dwrite12.phar2 $p = new Phar(__FILE__);
4 $p2 = new Phar(__FILE__);
H A Dwrite9.phar2 $p = new Phar(__FILE__);
4 $p2 = new Phar(__FILE__);
/PHP-5.4/ext/soap/tests/bugs/
H A Dbug35142.phpt23 $this->server = new SoapServer($wsdl, $options);
35 $soapClient = new TestSoapClient($wsdl,
41 $logOnEvent = new LogOnEvent(34567, $timestamp);
42 $logOffEvents[] = new LogOffEvent(34567, $timestamp, "Smoked");
43 $logOffEvents[] = new LogOffEvent(34568, $timestamp, "SmokeFree");
44 $ivrEvents = new IVREvents("1.0", 101, 12345, 'IVR', $logOnEvent, $logOffEvents);
H A Dbug36226.phpt23 $this->server = new SoapServer($wsdl, $options);
35 $soapClient = new TestSoapClient($wsdl,
42 $logOnEvent = new LogOnEvent(34567, $timestamp);
43 $logOffEvents[] = new LogOffEvent(34567, $timestamp, "Smoked");
44 $logOffEvents[] = new LogOffEvent(34568, $timestamp, "SmokeFree");
45 $ivrEvents = new IVREvents("1.0", 101, 12345, 'IVR', $logOnEvent, $logOffEvents);
/PHP-5.4/main/
H A Dalloca.c205 register pointer new = malloc (sizeof (header) + size); local
208 if (new == 0)
211 ((header *) new)->h.next = last_alloca_header;
212 ((header *) new)->h.deep = depth;
214 last_alloca_header = (header *) new;
218 return (pointer) ((char *) new + sizeof (header));

Completed in 54 milliseconds

1...<<11121314151617181920>>...187