/PHP-5.4/Zend/tests/ |
H A D | class_alias_003.phpt | 12 return new static; 16 $a = new foo;
|
H A D | errmsg_044.phpt | 6 $a[0] = new stdclass; 7 $a[0][0] = new stdclass;
|
H A D | indirect_method_call_001.phpt | 8 throw new Exception('foobar'); 13 $X = (new foo)->Inexistent(3);
|
H A D | bug60138.phpt | 8 $iterator = new RecursiveIteratorIterator( 9 new RecursiveArrayIterator($tree),
|
H A D | fr47160.phpt | 45 $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 D | pdo_mysql___construct_options.phpt | 20 $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 D | type_hinting_004.phpt | 20 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 D | r4_groupH_complex_doclit_007w.phpt | 36 $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 D | r4_groupH_complex_doclit_008w.phpt | 36 $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 D | r4_groupH_complex_doclit_009w.phpt | 36 $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 D | r4_groupH_complex_doclit_010w.phpt | 36 $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 D | bug30961.phpt | 13 $ref1 = new ReflectionClass('a'); 14 $ref2 = new ReflectionClass('b');
|
H A D | bug46205.phpt | 5 $x = new reflectionmethod('reflectionparameter', 'export'); 9 $x->invokeArgs(new reflectionparameter('trim', 'str'), array($y, 1));
|
H A D | ReflectionMethod_returnsReference_basic.phpt | 14 $methodInfo = new ReflectionMethod('TestClass::foo'); 17 $methodInfo = new ReflectionMethod('TestClass::bar');
|
H A D | ReflectionMethod_invokeArgs_error3.phpt | 29 $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 D | serialization_objects_002.phpt | 37 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 D | bug42919.phpt | 8 echo serialize(new Bar) . "\n"; 9 $x = unserialize(serialize(new Bar));
|
/PHP-5.4/win32/build/ |
H A D | phpize.js.in | 33 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 D | splfileobject.inc | 20 /** 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 D | write11.phar | 2 $p = new Phar(__FILE__); 4 $p2 = new Phar(__FILE__);
|
H A D | write12.phar | 2 $p = new Phar(__FILE__); 4 $p2 = new Phar(__FILE__);
|
H A D | write9.phar | 2 $p = new Phar(__FILE__); 4 $p2 = new Phar(__FILE__);
|
/PHP-5.4/ext/soap/tests/bugs/ |
H A D | bug35142.phpt | 23 $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 D | bug36226.phpt | 23 $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 D | alloca.c | 205 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));
|