Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 165) sorted by relevance

1234567

/PHP-5.5/tests/classes/
H A Dinheritance_002.phpt9 var_dump('Base constructor');
15 var_dump('Child constructor');
22 var_dump('Base constructor');
61 string(17) "Child constructor"
62 string(16) "Base constructor"
64 string(17) "Child constructor"
65 string(16) "Base constructor"
67 string(17) "Child constructor"
68 string(16) "Base constructor"
70 string(17) "Child constructor"
[all …]
/PHP-5.5/ext/reflection/tests/
H A DReflectionMethod_constructor_basic.phpt12 echo "New-style constructor:\n";
27 echo "\nOld-style constructor:\n";
42 echo "\nNot a constructor:\n";
89 New-style constructor:
92 Inherited new-style constructor
95 Old-style constructor:
98 Inherited old-style constructor:
101 Not a constructor:
107 Old-style constructor:
110 Redefined constructor:
[all …]
H A DReflectionClass_newInstance_001.phpt10 echo "In constructor of class A\n";
16 echo "In constructor of class B with args $a, $b\n";
22 echo "In constructor of class C\n";
28 echo "In constructor of class D\n";
74 In constructor of class A
75 In constructor of class A
88 In constructor of class B with args ,
89 In constructor of class B with args x, 123
94 Access to non-public constructor of class C
95 Access to non-public constructor of class D
[all …]
H A DReflectionClass_newInstanceArgs_001.phpt10 echo "In constructor of class A\n";
16 echo "In constructor of class B with args $a, $b\n";
22 echo "In constructor of class C\n";
28 echo "In constructor of class D\n";
74 In constructor of class A
75 In constructor of class A
88 In constructor of class B with args ,
89 In constructor of class B with args x, 123
94 Access to non-public constructor of class C
95 Access to non-public constructor of class D
[all …]
H A DReflectionClass_getConstructor_basic.phpt60 echo "No constructor for $class\n";
67 Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line %d
78 No constructor for X
79 No constructor for Y
H A DReflectionObject_getConstructor_basic.phpt60 echo "No constructor for $class\n";
67 Strict Standards: Redefining already defined constructor for class OldAndNewCtor in %s on line %d
78 No constructor for X
79 No constructor for Y
H A Dbug42976.phpt2 Bug #42976 (Crash when constructor for newInstance() or newInstanceArgs() fails)
31 Warning: ReflectionClass::newInstance(): Invocation of C's constructor failed in %sbug42976.php on …
36 Warning: ReflectionClass::newInstanceArgs(): Invocation of C's constructor failed in %sbug42976.php…
H A D007.phpt100 string(86) "Class NoCtor does not have a constructor, so you cannot pass any constructor arguments"
102 string(86) "Class NoCtor does not have a constructor, so you cannot pass any constructor arguments"
H A Dbug52854.phpt28 Class Test does not have a constructor, so you cannot pass any constructor arguments
/PHP-5.5/Zend/tests/traits/
H A Dbug55554a.phpt2 Bug #55137 (Legacy constructor not registered for class)
9 public function constructor() {
16 constructor as __construct;
22 constructor as LegacyConstructor;
26 echo "New constructor: ";
29 echo "Legacy constructor: ";
33 New constructor: ctor executed
34 Legacy constructor: ctor executed
H A Dbug55554c.phpt2 Bug #55137 (Legacy constructor not registered for class)
9 // and the two constructor definitions do not directly collide in that case.
33 echo "New constructor executed\n";
36 echo "Legacy constructor executed\n";
46 ReportCollision: New constructor executed
H A Dbug65576b.phpt2 Bug #65576 (Constructor from trait conflicts with inherited constructor)
19 echo "Parent constructor\n";
31 Parent constructor
H A Dbug55554f.phpt2 Bug #55137 (Legacy constructor not registered for class)
6 // Ensuring that inconsistent constructor use results in an error to avoid
29 Fatal error: ReportCollision has colliding constructor definitions coming from traits in %s on line…
H A Dbug55554g.phpt2 Bug #55137 (Legacy constructor not registered for class)
6 // Ensuring that inconsistent constructor use results in an error to avoid
29 Fatal error: ReportCollision has colliding constructor definitions coming from traits in %s on line…
H A Dbug55554d.phpt2 Bug #55137 (Legacy constructor not registered for class)
8 // It is not consistent with the normal constructor handling, but
31 Fatal error: ReportCollision has colliding constructor definitions coming from traits in %s on line…
H A Dbug65576a.phpt2 Bug #65576 (Constructor from trait conflicts with inherited constructor)
18 echo "Parent constructor\n";
H A Dbug55554b.phpt2 Bug #55137 (Legacy constructor not registered for class)
55 Fatal error: ReportCollision has colliding constructor definitions coming from traits in %s on line…
/PHP-5.5/tests/lang/
H A D030.phpt2 $this in constructor test
22 $bar1 =new foo('constructor');
27 $bar1 =& foo2(new foo('constructor'));
33 print ($names==array('constructor','outside','outside','constructor','outside','outside')) ? 'succe…
/PHP-5.5/ext/spl/
H A Dspl_engine.h37 …zend_call_method(retval, pce, &pce->constructor, pce->constructor->common.function_name, strlen(pc… in spl_instantiate_arg_ex1()
47 …zend_call_method(retval, pce, &pce->constructor, pce->constructor->common.function_name, strlen(pc… in spl_instantiate_arg_ex2()
55 zend_function *func = pce->constructor; in spl_instantiate_arg_n()
/PHP-5.5/ext/mysqli/tests/
H A Dbug29311.phpt2 Bug #29311 (Cannot override mysqli constructor)
12 /* class 1 calls parent constructor */
20 /* class 2 has an own constructor */
29 /* class 3 has no constructor */
/PHP-5.5/Zend/tests/
H A Dobjects_010.phpt2 redefining constructor (__construct second)
18 Strict Standards: Redefining already defined constructor for class test in %s on line %d
H A Dbug52160.phpt2 Bug #52160 (Invalid E_STRICT redefined constructor error)
32 Strict Standards: Redefining already defined constructor for class foo in %s on line %d
/PHP-5.5/ext/date/tests/
H A Dbug48476.phpt24 …ormat(): The DateTime object has not been correctly initialized by its constructor in %sbug48476.p…
27 …ormat(): The DateTime object has not been correctly initialized by its constructor in %sbug48476.p…
30 …t(): The DateTimeZone object has not been correctly initialized by its constructor in %sbug48476.p…
/PHP-5.5/ext/session/tests/
H A Dsession_set_save_handler_class_007.phpt25 echo "(#$this->num) constructor called\n";
65 (#1) constructor called
69 (#2) constructor called
/PHP-5.5/scripts/dev/generate-phpt/src/
H A DgtMethod.php34 $constructor = $reflectionClass->getConstructor();
35 foreach($constructor->getParameters() as $i => $param) {

Completed in 70 milliseconds

1234567