Home
last modified time | relevance | path

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

12345678

/PHP-8.1/Zend/tests/traits/
H A Dbug65576b.phpt2 Bug #65576 (Constructor from trait conflicts with inherited constructor)
11 echo "Trait constructor\n";
19 echo "Parent constructor\n";
31 Parent constructor
32 Trait constructor
H A Dbug65576a.phpt2 Bug #65576 (Constructor from trait conflicts with inherited constructor)
10 echo "Trait constructor\n";
18 echo "Parent constructor\n";
30 Trait constructor
/PHP-8.1/tests/lang/
H A D030.phpt2 $this in constructor test
22 $bar1 =new foo('constructor');
27 $foo = new foo('constructor');
34 print ($names==array('constructor','outside','outside','constructor','outside','outside')) ? 'succe…
/PHP-8.1/ext/reflection/tests/
H A DReflectionMethod_constructor_basic.phpt12 echo "New-style constructor:\n";
18 echo "\nInherited new-style constructor\n";
27 echo "\nNot a constructor:\n";
39 New-style constructor:
42 Inherited new-style constructor
45 Not a constructor:
H A DReflectionObject_getConstructor_basic.phpt43 echo "No constructor for $class\n";
52 No constructor for B
53 No constructor for C
55 No constructor for D2
56 No constructor for X
57 No constructor for Y
H A DReflectionClass_newInstanceArgs_001.phpt11 echo "In constructor of class B with args $a, $b\n";
17 echo "In constructor of class C\n";
23 echo "In constructor of class D\n";
69 In constructor of class B with args x, 123
72 Access to non-public constructor of class C
73 Access to non-public constructor of class D
76 Class E does not have a constructor, so you cannot pass any constructor arguments
H A DReflectionClass_newInstance_001.phpt11 echo "In constructor of class B with args $a, $b\n";
17 echo "In constructor of class C\n";
23 echo "In constructor of class D\n";
72 In constructor of class B with args x, 123
75 Access to non-public constructor of class C
76 Access to non-public constructor of class D
79 Class E does not have a constructor, so you cannot pass any constructor arguments
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-8.1/Zend/tests/constexpr/
H A Dnew_not_allowed_property.phpt8 // during object creation, or as part of the constructor. Doing this during object creation
10 // based on newInstanceWithoutConstructor(). Handling this via the constructor is more
11 // promising, but requires injecting code in the constructor, which may require adding a
12 // constructor which is not explicitly declared, which may also require a child class to
13 // call a constructor that has not been explicitly declared, otherwise properties may be
15 // constructor invocation. Overall, the best way to address this is not clear right now.
/PHP-8.1/Zend/tests/
H A Dbug29368_1.phpt2 Bug #29368.1 (The destructor is called when an exception is thrown from the constructor).
12 echo "Inside constructor\n";
28 Inside constructor
H A Dctor_promotion_interface.phpt2 Constructor promotion cannot be used inside an abstract constructor (interface variant)
12 Fatal error: Cannot declare promoted property in an abstract constructor in %s on line %d
H A Dctor_promotion_abstract.phpt2 Constructor promotion cannot be used inside an abstract constructor
12 Fatal error: Cannot declare promoted property in an abstract constructor in %s on line %d
/PHP-8.1/ext/spl/
H A Dspl_engine.h27 zend_call_known_instance_method_with_1_params(pce->constructor, Z_OBJ_P(retval), NULL, arg1); in spl_instantiate_arg_ex1()
35 pce->constructor, Z_OBJ_P(retval), NULL, arg1, arg2); in spl_instantiate_arg_ex2()
42 zend_call_known_instance_method(pce->constructor, Z_OBJ_P(retval), NULL, argc, argv); in spl_instantiate_arg_n()
/PHP-8.1/ext/mysqli/tests/
H A Dbug29311.phpt2 Bug #29311 (Cannot override mysqli constructor)
13 /* class 1 calls parent constructor */
21 /* class 2 has an own constructor */
30 /* class 3 has no constructor */
H A D063.phpt2 resultset constructor
24 // an exception should be thrown from prepare (i.e. constructor) not from execute
H A Dmysqli_fetch_object_no_constructor.phpt2 mysqli_fetch_object() - calling constructor on class wo constructor
61 …args) must be empty when the specified class (mysqli_fetch_object_test) does not have a constructor
/PHP-8.1/ext/date/tests/
H A Dbug-gh8471.phpt47 The DateTime object has not been correctly initialized by its constructor
48 The DateTimeInterface object has not been correctly initialized by its constructor
49 The DateTimeImmutable object has not been correctly initialized by its constructor
50 The DateTimeInterface object has not been correctly initialized by its constructor
H A Dbug48476.phpt35 The DateTime object has not been correctly initialized by its constructor
36 The DateTime object has not been correctly initialized by its constructor
37 The DateTimeZone object has not been correctly initialized by its constructor
H A Doo_001.phpt67 The DateTime object has not been correctly initialized by its constructor
70 The DateTimeZone object has not been correctly initialized by its constructor
72 The DatePeriod object has not been correctly initialized by its constructor
73 The DatePeriod object has not been correctly initialized by its constructor
H A Dbug-gh11416.phpt26 Error: The DateTimeInterface object has not been correctly initialized by its constructor
27 Error: The DateTimeInterface object has not been correctly initialized by its constructor
/PHP-8.1/ext/intl/tests/
H A Dcalendar_toDateTime_error.phpt43 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception…
46 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in …
49 Warning: IntlCalendar::toDateTime(): intlcal_to_date_time: DateTimeZone constructor threw exception…
52 Warning: intlcal_to_date_time(): intlcal_to_date_time: DateTimeZone constructor threw exception in …
/PHP-8.1/ext/session/tests/
H A Dsession_set_save_handler_class_007.phpt21 echo "(#$this->num) constructor called\n";
62 (#1) constructor called
66 (#2) constructor called
/PHP-8.1/ext/gd/tests/
H A Dimagegammacorrect_variation2.phpt19 function test_gamma($in, $out, $constructor)
21 $im = $constructor(640, 480);
32 $kind = $constructor === 'imagecreate' ? 'palette' : 'truecolor';
/PHP-8.1/ext/standard/tests/file/
H A Dbug38450.phpt2 Bug #38450 (constructor is not called for classes used in userspace stream wrappers)
11 var_dump("constructor!");
105 string(12) "constructor!"

Completed in 29 milliseconds

12345678