]> granicus.if.org Git - php/commitdiff
Deprecate PHP 4 constructors
authorAndrea Faulds <ajf@ajf.me>
Tue, 31 Mar 2015 14:10:22 +0000 (16:10 +0200)
committerNikita Popov <nikic@php.net>
Tue, 31 Mar 2015 15:55:27 +0000 (17:55 +0200)
110 files changed:
Zend/tests/019.phpt
Zend/tests/bug18556.phpt
Zend/tests/bug20240.phpt
Zend/tests/bug30080.phpt
Zend/tests/bug32226.phpt
Zend/tests/bug39542/bug39542.php
Zend/tests/bug60536_001.phpt
Zend/tests/bug65108.phpt
Zend/tests/bug65322.phpt
Zend/tests/errmsg_045.phpt
Zend/tests/get_class_methods_002.phpt
Zend/zend_compile.c
Zend/zend_inheritance.c
Zend/zend_inheritance.h
ext/mbstring/tests/mb_convert_variables.phpt
ext/mysqli/tests/mysqli_stmt_bind_param_references.phpt
ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt
ext/pcre/tests/bug21758.phpt
ext/session/tests/006.phpt
ext/session/tests/019.phpt
ext/session/tests/026.phpt
ext/soap/tests/any.phpt
ext/soap/tests/interop/Round2/Base/r2_base_014p.phpt
ext/soap/tests/interop/Round2/Base/r2_base_014w.phpt
ext/soap/tests/interop/Round2/Base/r2_base_015p.phpt
ext/soap/tests/interop/Round2/Base/r2_base_015w.phpt
ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound1_001w.phpt
ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound2_001w.phpt
ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclit_003w.phpt
ext/soap/tests/interop/Round3/GroupD/r3_groupD_doclitparams_003w.phpt
ext/soap/tests/interop/Round3/GroupD/r3_groupD_import2_001w.phpt
ext/soap/tests/interop/Round3/GroupD/r3_groupD_import3_001w.phpt
ext/soap/tests/interop/Round3/GroupD/r3_groupD_import3_002w.phpt
ext/soap/tests/interop/Round3/GroupD/r3_groupD_rpcenc_003w.phpt
ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_001w.phpt
ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_002w.phpt
ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_003w.phpt
ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_005w.phpt
ext/soap/tests/interop/Round3/GroupE/r3_groupE_list_006w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_001w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_002w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_003w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_004w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_005w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_006w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_007w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_008w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_009w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_doclit_010w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_001w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_002w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_003w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_004w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_005w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_006w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_007w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_008w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_009w.phpt
ext/soap/tests/interop/Round4/GroupH/r4_groupH_complex_rpcenc_010w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_008w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_009w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_014w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_015w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_019w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_020w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_023w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_024w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_025w.phpt
ext/soap/tests/interop/Round4/GroupI/r4_groupI_xsd_028w.phpt
ext/standard/tests/array/007.phpt
ext/standard/tests/array/array_intersect_1.phpt
ext/standard/tests/array/array_udiff_assoc_basic.phpt
ext/standard/tests/array/array_udiff_basic.phpt
ext/standard/tests/array/array_udiff_uassoc_basic.phpt
ext/standard/tests/array/array_uintersect_assoc_basic.phpt
ext/standard/tests/array/array_uintersect_basic.phpt
ext/standard/tests/array/array_uintersect_uassoc_basic.phpt
ext/standard/tests/array/bug45312.phpt
ext/standard/tests/file/bug38450.phpt
ext/standard/tests/file/lstat_stat_variation18.phpt
ext/standard/tests/file/lstat_stat_variation20.phpt
ext/standard/tests/file/readlink_realpath_variation1.phpt
ext/standard/tests/file/symlink_link_linkinfo_is_link_variation1.phpt
ext/standard/tests/general_functions/debug_zval_dump_o.phpt
ext/standard/tests/general_functions/gettype_settype_basic.phpt
ext/standard/tests/general_functions/is_callable_basic2.phpt
ext/standard/tests/general_functions/is_object.phpt
ext/standard/tests/general_functions/print_r_64bit.phpt
ext/standard/tests/general_functions/var_dump_64bit.phpt
ext/standard/tests/general_functions/var_export-locale.phpt
ext/standard/tests/general_functions/var_export_basic6.phpt
ext/standard/tests/serialize/001.phpt
ext/standard/tests/serialize/bug14293.phpt
ext/standard/tests/serialize/bug21957.phpt
ext/standard/tests/serialize/serialization_objects_003.phpt
ext/tidy/tests/027.phpt
ext/xml/tests/bug32001.phpt
tests/classes/clone_006.phpt
tests/classes/ctor_dtor.phpt
tests/classes/dereferencing_001.phpt
tests/classes/object_reference_001.phpt
tests/lang/028.phpt
tests/lang/030.phpt
tests/lang/035.phpt
tests/lang/bug20175.phpt
tests/lang/bug21849.phpt
tests/lang/bug21961.phpt
tests/lang/bug23489.phpt
tests/lang/bug24926.phpt
tests/lang/error_2_exception_001.phpt

index 654f86bb1163987591afe9c00f8720a3393e2d5a..0548a38f88364e215c3998279ec4d5ae48fa93d8 100644 (file)
@@ -201,7 +201,7 @@ class Point
   var $y;
   var $lable;
   
-  function Point($x, $y) {
+  function __construct($x, $y) {
     $this->x = $x;
     $this->y = $y;
   }
@@ -1271,7 +1271,7 @@ bool(false)
 bool(true)
 array(3) {
   [0]=>
-  string(5) "Point"
+  string(11) "__construct"
   [1]=>
   string(8) "setLable"
   [2]=>
index 036abb2ada873dfdf786c4b49f49468706e92d6a..f8e48c2772e7365e7872f2dd6b2b76f0aff9c35f 100644 (file)
@@ -8,7 +8,7 @@ setlocale(LC_ALL, $g_lang);
 
 class InfoBlob {
    var $foo;
-   function InfoBlob() {
+   function __construct() {
       $this->foo = "Foo";
    }
 }
index acf673a277b7d32a77873ddd2e38df9b657cd645..53bb0505761ef13a6b12ea97362e5d594c6d4062 100644 (file)
@@ -9,7 +9,7 @@ class test
 {
     public $member;
 
-    function test() {
+    function __construct() {
         $this->member = 1;
         register_shutdown_function(array($this, 'destructor'));
     }
index 8cac75ab8d2475745d11d9132b71315afe2c7031..ff4a82b21ff36ea462efecfd96881151e4b4c227 100644 (file)
@@ -3,7 +3,7 @@ Bug #30080 (Passing array or non array of objects)
 --FILE--
 <?php
 class foo {    
-  function foo($arrayobj) { 
+  function __construct($arrayobj) { 
     var_dump($arrayobj);
   } 
 } 
index 9536c921a3335ffb1f6258875c413fe1c619e6e7..f8e13cfb6eb9d0247150e2328bda654dcccc6569 100644 (file)
@@ -5,7 +5,7 @@ Bug #32226 (SEGV with exception handler on non existing instance)
 
 class A
 {
-        public function A()
+        public function __construct()
         {
                 set_exception_handler(array($this, 'EH'));
 
index 90cb36cc6813732f20a6cd724582cd7504867ba5..13b3b3eaf47781cc80fe049df5bc2b3749cd5d64 100755 (executable)
@@ -1,6 +1,6 @@
 <?php
 class bug39542 {
-       function bug39542() {
+       function __construct() {
                echo "ok\n";
        }
 }
index a94e21eceed83575beaca34285783f1020ff968e..37a5a6d8138d36e095eceab88e0cf9e9262e1d72 100644 (file)
@@ -8,17 +8,17 @@ class X {
 }
 class Y extends X {
          use T;
-         function x() {
+         function __construct() {
              return ++$this->x;
       }
 }
 class Z extends Y {
-         function z() {
+         function __construct() {
                  return ++$this->x;
       }
 }
 $a = new Z();
-$a->x();
+$a->__construct();
 echo "DONE";
 ?>
 --EXPECTF--
index d3e5a65b26eb5c906e9ebc417e33ddd4fa8624e7..23e1e856d7df5a991253b01bc51aa7f57602b7bc 100644 (file)
@@ -8,7 +8,7 @@ class C {
 }
 
 class B {
-       public function B() {
+       public function __construct() {
                $isCallable = is_callable(array(new C, 'f'));
                var_dump($isCallable);
        }
index aab163d915e114987939172e9ba73efac236b551..b8b97dd77785f42cfc183505e37ed013bad379fb 100644 (file)
@@ -13,10 +13,12 @@ set_error_handler(function($_, $msg, $file) {
     new B;
 });
 
-eval('class A { function a() {} function __construct() {} }');
+/* This is just a particular example of a non-fatal compile-time error
+ * If this breaks in future, just find another example and use it instead */
+eval('abstract class foo { abstract static function bar(); }');
 
 ?>
 --EXPECTF--
-string(50) "Redefining already defined constructor for class A"
+string(%d) "Static function foo::bar() should not be abstract"
 string(%d) "%s(%d) : eval()'d code"
 string(1) "B"
index b27f67ade4caa4162b78146a42d0f075b859967e..331425ad9c1a5edcefd3ddb48fe448d650e5f61e 100644 (file)
@@ -8,11 +8,13 @@ set_error_handler(function($_, $msg, $file) {
        echo $undefined;
 });
 
-eval('class A { function a() {} function __construct() {} }');
+/* This is just a particular example of a non-fatal compile-time error
+ * If this breaks in future, just find another example and use it instead */
+eval('abstract class foo { abstract static function bar(); }');
 
 ?>
 --EXPECTF--
-string(50) "Redefining already defined constructor for class A"
+string(%d) "Static function foo::bar() should not be abstract"
 string(%d) "%s(%d) : eval()'d code"
 
 Notice: Undefined variable: undefined in %s on line %d
index 27da6e8d9b5526af341b4fff8ca32a554cb8f8b7..62f326c0531d058ace98c077941605ed45ce8cca 100644 (file)
@@ -24,7 +24,6 @@ new B;
 
 ?>
 --EXPECTF--
-Strict Standards: Redefining already defined constructor for class B in %s on line %d
 array(2) {
   [0]=>
   string(1) "a"
index 2a76ff39e661c7934ac387131e1d618c99a83acd..ad696857b4dc8a1a568d5c152f7ad87e4c43054d 100644 (file)
@@ -3171,7 +3171,7 @@ void zend_compile_method_call(znode *result, zend_ast *ast, uint32_t type) /* {{
 }
 /* }}} */
 
-zend_bool zend_is_constructor(zend_string *name) /* {{{ */
+static zend_bool zend_is_constructor(zend_string *name) /* {{{ */
 {
        return zend_string_equals_literal_ci(name, ZEND_CONSTRUCTOR_FUNC_NAME);
 }
@@ -4409,10 +4409,6 @@ void zend_begin_method_decl(zend_op_array *op_array, zend_string *name, zend_boo
                                ce->constructor = (zend_function *) op_array;
                        }
                } else if (zend_string_equals_literal(lcname, ZEND_CONSTRUCTOR_FUNC_NAME)) {
-                       if (CG(active_class_entry)->constructor) {
-                               zend_error(E_STRICT, "Redefining already defined constructor for class %s",
-                                       ce->name->val);
-                       }
                        ce->constructor = (zend_function *) op_array;
                } else if (zend_string_equals_literal(lcname, ZEND_DESTRUCTOR_FUNC_NAME)) {
                        ce->destructor = (zend_function *) op_array;
index 3e9083c8a4e964485249bb4feacbf51cfe204ee9..fd40c8ed841dde2cb8bcaf64580b2ce222b4f199 100644 (file)
@@ -23,6 +23,7 @@
 #include "zend_execute.h"
 #include "zend_inheritance.h"
 #include "zend_smart_str.h"
+#include "zend_inheritance.h"
 
 static void ptr_dtor(zval *zv) /* {{{ */
 {
@@ -1596,6 +1597,9 @@ ZEND_API void zend_do_bind_traits(zend_class_entry *ce) /* {{{ */
        /* verify that all abstract methods from traits have been implemented */
        zend_verify_abstract_class(ce);
 
+       /* Emit E_DEPRECATED for PHP 4 constructors */
+       zend_check_deprecated_constructor(ce);
+
        /* now everything should be fine and an added ZEND_ACC_IMPLICIT_ABSTRACT_CLASS should be removed */
        if (ce->ce_flags & ZEND_ACC_IMPLICIT_ABSTRACT_CLASS) {
                ce->ce_flags -= ZEND_ACC_IMPLICIT_ABSTRACT_CLASS;
@@ -1603,6 +1607,29 @@ ZEND_API void zend_do_bind_traits(zend_class_entry *ce) /* {{{ */
 }
 /* }}} */
 
+
+static zend_bool zend_has_deprecated_constructor(const zend_class_entry *ce) /* {{{ */
+{
+       const zend_string *constructor_name;
+       if (!ce->constructor) {
+               return 0;
+       }
+       constructor_name = ce->constructor->common.function_name;
+       return !zend_binary_strcasecmp(
+               ce->name->val, ce->name->len,
+               constructor_name->val, constructor_name->len
+       );
+}
+/* }}} */
+
+void zend_check_deprecated_constructor(const zend_class_entry *ce) /* {{{ */
+{
+       if (zend_has_deprecated_constructor(ce)) {
+               zend_error(E_DEPRECATED, "Methods with the same name as their class will not be constructors in a future version of PHP; %s has a deprecated constructor", ce->name->val);
+       }
+}
+/* }}} */
+
 /*
  * Local variables:
  * tab-width: 4
index 7ec6231cd23adc1803e954fa711f83d522a85a58..f7ad6dc0602f5359d07865fdeacb01a6f19f246f 100644 (file)
@@ -33,6 +33,8 @@ ZEND_API void zend_do_bind_traits(zend_class_entry *ce);
 ZEND_API void zend_do_inheritance(zend_class_entry *ce, zend_class_entry *parent_ce);
 void zend_do_early_binding(void);
 
+void zend_check_deprecated_constructor(const zend_class_entry *ce);
+
 END_EXTERN_C()
 
 #endif
index 01ced051044786707609da428f2c0456412d9c43..22253b5352c3b9d1665f763cd63b3d22507f6a6e 100644 (file)
@@ -76,7 +76,7 @@ class foo
        public $s2;
        public $s3;
 
-       function foo() 
+       function __construct() 
        {
                global $sjis, $jis, $euc_jp;
                
@@ -92,7 +92,7 @@ class bar
        public $s2;
        public $s3;
 
-       function bar() 
+       function __construct() 
        {
                global $sjis, $jis, $euc_jp;
                
index 91cb9d022b4936a6ee42aaef2e64ad1507f71577..58626be67232fec651d46b1746989205140abeb1 100644 (file)
@@ -177,7 +177,7 @@ require_once('skipifconnectfailure.inc');
 
        class foo {
                public $foo;
-               function foo() {
+               function __construct() {
                        $this->foo = &$this->bar;
                }
        }
@@ -204,4 +204,4 @@ require_once('skipifconnectfailure.inc');
        require_once("clean_table.inc");
 ?>
 --EXPECTF--
-done!
\ No newline at end of file
+done!
index ee659d4b4ab066d006809c9ef46351de7b531970..c297f8ff67363b763415a49453f26d916dff1a0d 100644 (file)
@@ -194,7 +194,7 @@ require_once('skipifconnectfailure.inc');
        unset($bar); unset($id); unset($label_ref);
        class foo {
                public $foo;
-               public function foo() {
+               public function __construct() {
                        $this->foo = &$this->bar;
                }
        }
@@ -219,8 +219,8 @@ require_once('skipifconnectfailure.inc');
        class mega_bar extends bar {
                private $id;
                public $id_ref;
-               public function mega_bar() {
-                       $this->foo();
+               public function __construct() {
+                       parent::construct();
                        $this->id_ref = &$this->id;
                }
        }
@@ -311,4 +311,4 @@ object(mega_bar)#5 (4) {
   [%u|b%"foo"]=>
   &%unicode|string%(1) "a"
 }
-done!
\ No newline at end of file
+done!
index 78a1d6a7475a6d005bddc9b46bc32aa8c1781c6a..db599196f2c98a1916287502ce0f16e86f5b5aae 100644 (file)
@@ -3,7 +3,7 @@ Bug #21758 (preg_replace_callback() not working with class methods)
 --FILE--
 <?php
   class Foo {
-    function foo() {
+    function __construct() {
       
       $s = 'preg_replace() is broken';
       
index c9a11d3337eb7b948a095e7bd6a568260e52d319..7653b8c16712450dc15dee73f0a03309757dd445 100644 (file)
@@ -21,7 +21,7 @@ class a {
  
 class b {
     public $a;
-    function b(&$a) {
+    function __construct(&$a) {
         $this->a = &$a;
     }
 }
index 0f06add5a11540e847c2dafcfd86ebb4cae60f5b..58250070006fd60945223e4abc4d5eee26c86956 100644 (file)
@@ -15,7 +15,7 @@ error_reporting(E_ALL);
 
 class TFoo {
        public $c;
-       function TFoo($c) {
+       function __construct($c) {
                $this->c = $c;
        }
        function inc() {
index f797286bf657bc31b1afdd876eff62de1f4e2f4b..d29d6b57d26b371d23c53bab2bd8ac7663563257 100644 (file)
@@ -21,7 +21,7 @@ class a {
  
 class b {
     public $a;
-    function b(&$a) {
+    function __construct(&$a) {
         $this->a = &$a;
     }
 }
index 93a0e6693a83700d9090786c6e3c2b59b27f7515..7c0b7ff25272e4d7b7f20776843cca536c85173e 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 61a2213ef07e4827f81078d578b5a9d7d7b4c858..b78142d44ea90e77370e03196a838658d77c21b1 100644 (file)
@@ -7,7 +7,7 @@ precision=14
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index b03cc1969ae29ecabde3ed40903385c0c7023ccc..da78659a1366620088be67c61852f78b92f108c2 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 930c27714982e78f8e9eab28322238a500416c99..bb532f46d022af22a3d7ef7fc626d787b120949d 100644 (file)
@@ -7,7 +7,7 @@ precision=14
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 46b8d7d78058a9c357d9ff39d652c812c86505c7..f4e24ad17ba8939caedb3f4077526b9988988302 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index edff0a4d9beba1c52be6a868f5c8bb01bf676c22..c27c783b35c7f6240ec4e738963f330fc3b2b410 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class Person {
-    function Person($a=NULL, $i=NULL, $n=NULL, $m=NULL) {
+    function __construct($a=NULL, $i=NULL, $n=NULL, $m=NULL) {
         $this->Age = $a;
         $this->ID = $i;
         $this->Name = $n;
index b1a60df774f6a7aa7b9c375246f9d05d2edb8e66..8e418e1c00830a4c09a448e571598f75268f5a4e 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class Person {
-    function Person($a=NULL, $i=NULL, $n=NULL, $m=NULL) {
+    function __construct($a=NULL, $i=NULL, $n=NULL, $m=NULL) {
         $this->Age = $a;
         $this->ID = $i;
         $this->Name = $n;
@@ -16,7 +16,7 @@ class Person {
     }
 }
 class Employee {
-    function Employee($person=NULL,$id=NULL,$salary=NULL) {
+    function __construct($person=NULL,$id=NULL,$salary=NULL) {
         $this->person = $person;
         $this->ID = $id;
         $this->salary = $salary;
index 2e74e7cfdad58b8302ae6171152bd5b93f5a9cae..74f0ec0728233fdc2af9cd3601b65afe50b7b6ee 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 26ce8de2827230c60a8afd328abaae32c1ec5349..e788ffefa3c4a4c44d4da0a508eb81258978dacd 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 270b30fc92554f478dfc236dd43b6d48fbb117bd..ed0387a17e00cf7af9c551486754069d42865bac 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 892ef456155e3525d77d973cfdd5281a9df46e9e..f732115b76f7b9281f3a5f1d32e0cc9615393c23 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index e4279fc883f3f384d6b9a074d27ae0cd19dd7147..b2f740ce09cb34f24f72a23fbaea05d109fafc9d 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index cc27d6f7b8c5faf12513b50e41b939a936fc775f..63bd4c7cf1b124b9c30ad7658014ce49e3804aea 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 07b087ef4614b620ea017afe3c0c938c8a558aa7..11039c0f3206eaba0d4d2162a9946d070ee98e25 100644 (file)
@@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPList {
-    function SOAPList($s, $i, $c) {
+    function __construct($s, $i, $c) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->child = $c;
index efc25e272c5e75685522b7815de3ba69340e9097..053581dfa0e7a33214e3695f8448c3e0ae2b974b 100644 (file)
@@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPList {
-    function SOAPList($s, $i, $c) {
+    function __construct($s, $i, $c) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->child = $c;
index 705e2036ee1d3dfa666182f6d84774c788f4a7fe..982114cdeda553e8d6e445efc22e5f3c5139f08b 100644 (file)
@@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPList {
-    function SOAPList($s, $i, $c) {
+    function __construct($s, $i, $c) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->child = $c;
index 8d149a304822125e2730af20df740ee33ddba61f..4a0e047856991e17ed686595e447a8d78f2d6925 100644 (file)
@@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPList {
-    function SOAPList($s, $i, $c) {
+    function __construct($s, $i, $c) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->child = $c;
index 9726f848e3738d20748ea80a657e4af82cd7023e..694eb1a7f248013bad2662717b536702488a0690 100644 (file)
@@ -7,7 +7,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPList {
-    function SOAPList($s, $i, $c) {
+    function __construct($s, $i, $c) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->child = $c;
index 27a0c9333ccae0c0739b097acc8016c0f9e36bb5..3e1593382bc0263eed539019db31aeef4bff2285 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 1ed1fe721c37b775ddf39e8d897b4e94a91bc132..b2cb8161f650ba1aa639561351ebf96ea6497b6a 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
index fde7d75e47c480e0f7a624f7aec7ed3c3acab559..3cf1236fc2ea1bc95d265a49a13fee6f0494f460 100644 (file)
@@ -8,21 +8,21 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
index d448974f2d1e11dbe0472809fe781f9a0a49bbc0..1c07c32009e3f04cd014077010ba9612459bf7f3 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
index 52451acffca02d802b90de379054984207a538a1..c2710fc74295828c057261d77e5b28ef7d16acf2 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
index c9ad1c5f5dd4e124e74d81da7cda4bdd2ad70d62..31976b740fc204ed347e532c926139ab8cbc442d 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
index fac6c3b06951fe16ee8512fc39bfe2189ace4201..9db050ad678b65d3fb2d3bda17627c598faae83c 100644 (file)
@@ -7,29 +7,29 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
     }
 }
 class MoreExtendedStruct extends ExtendedStruct {
-    function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) {
-        $this->ExtendedStruct($f, $s, $x1, $x2, $x3);
+    function __construct($f, $s, $x1, $x2, $x3, $b) {
+        parent::__construct($f, $s, $x1, $x2, $x3);
         $this->booleanMessage = $b;
     }
 }
index c020790b48570fd8c8bfd014bb2de2a22010be2d..d420abe183d279f26c74b0b137bd195d94ad6702 100644 (file)
@@ -7,29 +7,29 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
     }
 }
 class MoreExtendedStruct extends ExtendedStruct {
-    function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) {
-        $this->ExtendedStruct($f, $s, $x1, $x2, $x3);
+    function __construct($f, $s, $x1, $x2, $x3, $b) {
+        parent::__construct($f, $s, $x1, $x2, $x3);
         $this->booleanMessage = $b;
     }
 }
index f3a07d75e6586c21175e6f19373425930a5d95d7..53c6b7fbc76c5c271c46da6f8623befdd3b81f1b 100644 (file)
@@ -7,29 +7,29 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
     }
 }
 class MoreExtendedStruct extends ExtendedStruct {
-    function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) {
-        $this->ExtendedStruct($f, $s, $x1, $x2, $x3);
+    function __construct($f, $s, $x1, $x2, $x3, $b) {
+        parent::__construct($f, $s, $x1, $x2, $x3);
         $this->booleanMessage = $b;
     }
 }
index 55d62c1db2bad6dadf30fb9091a2a2da0824b548..2e966e9a36f93536cf15d73a07092a059b849797 100644 (file)
@@ -7,29 +7,29 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->structMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
     }
 }
 class MoreExtendedStruct extends ExtendedStruct {
-    function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) {
-        $this->ExtendedStruct($f, $s, $x1, $x2, $x3);
+    function __construct($f, $s, $x1, $x2, $x3, $b) {
+        parent::__construct($f, $s, $x1, $x2, $x3);
         $this->booleanMessage = $b;
     }
 }
index bf867d9c129c03613adfa68460b2a24e49a2ff2e..c1695268d75b8df955931e7e4f7bb58bd2abe950 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 6ac7641e2b28dfb572a9ab342028dbb0798226bc..4bcdf1f441a4ec0eab7fe50a18309ccf55b87b10 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
index dda5b69e2967d6e802597ee3f6ebc047dccc4cdc..ec52aece46fd073182158f8a2fd09a554471edb3 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
index e4b29176cb09abd42ccbe9253596b67c056b5081..07cde239e855d9e07cb775c9a860acbb02a74fde 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
index 074b258ab68d0b802771d1f935ff0d54d9502921..a68957441f7466b6b4a9d1400f35272e4bae4311 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
index 8fd9b3948bddc32541999a67b3b5a306fc1c27e3..bc0cef2ea20ac5d9d4acd6e011c9dc41e29ee7ff 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPStruct {
-    function SOAPStruct($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
index f54c18842d9839430839f4e4ab1915a09b10b1d2..fd2df8f42540811cd4b54efcd97f1e4d2bf1fd81 100644 (file)
@@ -8,22 +8,22 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
     }
 }
 class MoreExtendedStruct extends ExtendedStruct {
-    function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) {
-        $this->ExtendedStruct($f, $s, $x1, $x2, $x3);
+    function __construct($f, $s, $x1, $x2, $x3, $b) {
+        parent::__construct($f, $s, $x1, $x2, $x3);
         $this->booleanMessage = $b;
     }
 }
index d6f16a7bbcee41fe9684213a94a86ea71f3f1ede..cc1fc72b9c3e6748e4ae67fa3b67d78726257178 100644 (file)
@@ -8,22 +8,22 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
     }
 }
 class MoreExtendedStruct extends ExtendedStruct {
-    function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) {
-        $this->ExtendedStruct($f, $s, $x1, $x2, $x3);
+    function __construct($f, $s, $x1, $x2, $x3, $b) {
+        parent::__construct($f, $s, $x1, $x2, $x3);
         $this->booleanMessage = $b;
     }
 }
index 2bf73412ec7571304b0c383aa230e3d1fa719a65..1a2d950577f6b4e3cf271452f884d3e2f79c3234 100644 (file)
@@ -8,22 +8,22 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
     }
 }
 class MoreExtendedStruct extends ExtendedStruct {
-    function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) {
-        $this->ExtendedStruct($f, $s, $x1, $x2, $x3);
+    function __construct($f, $s, $x1, $x2, $x3, $b) {
+        parent::__construct($f, $s, $x1, $x2, $x3);
         $this->booleanMessage = $b;
     }
 }
index f1eeac2f26722245889e59e7239aa1d97ce24f98..906812e6b7fc040eca99e52ff3e826466ed346f8 100644 (file)
@@ -8,22 +8,22 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class BaseStruct {
-    function BaseStruct($f, $s) {
+    function __construct($f, $s) {
         $this->floatMessage = $f;
         $this->shortMessage = $s;
     }
 }
 class ExtendedStruct extends BaseStruct {
-    function ExtendedStruct($f, $s, $x1, $x2, $x3) {
-        $this->BaseStruct($f,$s);
+    function __construct($f, $s, $x1, $x2, $x3) {
+        parent::__construct($f,$s);
         $this->stringMessage = $x1;
         $this->intMessage = $x2;
         $this->anotherIntMessage = $x3;
     }
 }
 class MoreExtendedStruct extends ExtendedStruct {
-    function MoreExtendedStruct($f, $s, $x1, $x2, $x3, $b) {
-        $this->ExtendedStruct($f, $s, $x1, $x2, $x3);
+    function __construct($f, $s, $x1, $x2, $x3, $b) {
+        parent::__construct($f, $s, $x1, $x2, $x3);
         $this->booleanMessage = $b;
     }
 }
index d9dbed46bc8cba06efbb3a9315d48c6b4818b007..2ebcabd1db656c810aa08df70fa3f2b30e31b93e 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 41bf371202ff7e3396b8b87af48461bc0f881afb..af0040f78321c6d363b1323f9a1427e634874aa3 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index f3150b57407046d54a51c0539a99c4156cf019d4..4bcda95e387d326d481840503c98866d3dfc7311 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 6f0700057221078485ee1dc6374d53136eded2e9..490d903e5a6924b57cd2844da67230365073536d 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index ea9bb0fe9c66fa7108fbe494d06bbd663447a64d..4630add1c43a4861d301e3069571779fb231f314 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 1b6382c4478d4989dcdf79abf8a9d2b50acc4670..0034ba82b036b38a80e792871635b28228e6d56d 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index d312dbfac71dd88884496f26fa361c237e37ffe9..4afa56485b64f8fabc47e7024a4824bc9ba63029 100644 (file)
@@ -8,14 +8,14 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
     }
 }
 class SOAPComplexTypeComplexType {
-    function SOAPComplexTypeComplexType($s, $i, $f, $c) {
+    function __construct($s, $i, $f, $c) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index dc4cdce6363fbdbc850347e3443d0580eb89082a..f30f1afb31f2c5e66aa94d4663a187d5c0276b34 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexTypeComplexType {
-    function SOAPComplexTypeComplexType($s, $i, $f, $c) {
+    function __construct($s, $i, $f, $c) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 9ff683188de675f26e51c0f673432da3b39b4dbb..7b6d8eceb2eeefb8025ce805df3fad8625999815 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPMultiOccursComplexType {
-    function SOAPMultiOccursComplexType($s, $i, $f, $c) {
+    function __construct($s, $i, $f, $c) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index 5751a46e2c1196b65b925229b805e87e7cb31c5c..a5ff11a7b3a332d79a47b573758d38a4b1e8dff3 100644 (file)
@@ -8,7 +8,7 @@ soap.wsdl_cache_enabled=0
 --FILE--
 <?php
 class SOAPComplexType {
-    function SOAPComplexType($s, $i, $f) {
+    function __construct($s, $i, $f) {
         $this->varString = $s;
         $this->varInt = $i;
         $this->varFloat = $f;
index e30b8fe2c1d6892d8010b7d4d28c31a3cd06c834..4a1270eca6c88d61cf1a18a1d10d184690f9809a 100644 (file)
@@ -53,7 +53,7 @@ error_reporting(E_ALL);
 class cr {
        private $priv_member;
        public  $public_member;
-       function cr($val) {
+       function __construct($val) {
                $this->priv_member = $val;
                $this->public_member = $val;
        }
index 41f20330fde50f3cfac6c52ac278f36d4bc64b4c..ce8fdd1cac011461c9e1d87a5b3f5f62f8df71be 100644 (file)
@@ -6,7 +6,7 @@ error_reporting(E_ALL);
 class cr {
        private $priv_member;
        public  $public_member;
-       function cr($val) {
+       function __construct($val) {
                $this->priv_member = $val;
                $this->public_member = $val;
        }
index 769bafb76beaa3b5daaa00a5e5ace03fbc75be05..d115bcc32667e064ba1607f0a9e25125ebdf8ddb 100644 (file)
@@ -8,7 +8,7 @@ array_udiff_assoc(): Test return type and value for expected input
 */
 class cr {
     private $priv_member;
-    function cr($val) {
+    function __construct($val) {
         $this->priv_member = $val;
     }
     static function comp_func_cr($a, $b) {
@@ -38,4 +38,4 @@ array(3) {
     ["priv_member":"cr":private]=>
     int(23)
   }
-}
\ No newline at end of file
+}
index 3da1b60c5c74af63ca108907904c360028321f4d..5dbece34cc221e36ab4160b15054f4295018c674 100644 (file)
@@ -8,7 +8,7 @@ array_udiff():Test return type and value for expected input
 */
 class cr {
     private $priv_member;
-    function cr($val) {
+    function __construct($val) {
         $this->priv_member = $val;
     }
     static function comp_func_cr($a, $b) {
@@ -33,4 +33,4 @@ array(2) {
     ["priv_member":"cr":private]=>
     int(23)
   }
-}
\ No newline at end of file
+}
index 6095696f4170a7de164f14995325663b46146240..51b4bc17592ad61e2a8709b5d32c25ed543f56f8 100644 (file)
@@ -8,7 +8,7 @@ array_udiff_uassoc(): Test return type and value for expected input
 */
 class cr {
     private $priv_member;
-    function cr($val) {
+    function __construct($val) {
         $this->priv_member = $val;
     }
     static function comp_func_cr($a, $b) {
@@ -42,4 +42,4 @@ array(3) {
     ["priv_member":"cr":private]=>
     int(23)
   }
-}
\ No newline at end of file
+}
index 7e9fff7875e3abc04248a641a8fe4446b9a59c4b..d3645c7ceaa4718ca987099bc116cb01bbfeb02b 100644 (file)
@@ -8,7 +8,7 @@ array_uintersect_assoc(): Test return type and value for expected input
 */
 class cr {
     private $priv_member;
-    function cr($val) {
+    function __construct($val) {
         $this->priv_member = $val;
     }
     static function comp_func_cr($a, $b) {
@@ -33,4 +33,4 @@ array(2) {
     ["priv_member":"cr":private]=>
     int(-15)
   }
-}
\ No newline at end of file
+}
index 8d4b803589ccd9f8aeef5c0616d55722e6492c83..4965d599bafcd2033db625202a36e23c01e6be9d 100644 (file)
@@ -8,7 +8,7 @@ array_uintersect(): Test return type and value for expected input
 */
 class cr {
     private $priv_member;
-    function cr($val) {
+    function __construct($val) {
         $this->priv_member = $val;
     }
     static function comp_func_cr($a, $b) {
@@ -38,4 +38,4 @@ array(3) {
     ["priv_member":"cr":private]=>
     int(-15)
   }
-}
\ No newline at end of file
+}
index a474bc7ff588c59ed3ab42309608e3685f9da1a4..5e1ea1a7d9871c4c5b32b49e7675c553d9a45465 100644 (file)
@@ -8,7 +8,7 @@ array_uintersect_uassoc(): Test return type and value for expected input
 */
 class cr {
     private $priv_member;
-    function cr($val) {
+    function __construct($val) {
         $this->priv_member = $val;
     }
     static function comp_func_cr($a, $b) {
@@ -37,4 +37,4 @@ array(2) {
     ["priv_member":"cr":private]=>
     int(-15)
   }
-}
\ No newline at end of file
+}
index 017defefae9a482176420777db981599c31e268f..858bdfa4bf628268200b921fdd28510d2ce3b068 100644 (file)
@@ -4,7 +4,7 @@ Bug #45312 (Segmentation fault on second request for array functions)
 <?php
 class cr {
     private $priv_member;
-    function cr($val) {
+    function __construct($val) {
         $this->priv_member = $val;
     }
     static function comp_func_cr($a, $b) {
index d108897988b48aed73e74d3891f4f6b3cc1453e7..07e413b92b9218114cb70a0ce6b916cf6f3ced1e 100644 (file)
@@ -7,7 +7,7 @@ class VariableStream {
        var $position;
        var $varname;
 
-       function VariableStream($var) {
+       function __construct($var) {
                var_dump("constructor!");
        }
 
@@ -102,7 +102,7 @@ var_dump($myvar);
 echo "Done\n";
 ?>
 --EXPECTF--    
-Warning: Missing argument 1 for VariableStream::VariableStream() in %s on line %d
+Warning: Missing argument 1 for VariableStream::__construct() in %s on line %d
 string(12) "constructor!"
 line1
 line2
index fc98739fa7a2ab0dc4a09c924bef7d6852c7c215..6ee563d68457da28d0eeafcf737608d55c772cda 100644 (file)
@@ -30,7 +30,7 @@ echo "*** Testing stat() with filename & directory name stored inside an object
 
 class names {
   public $var_name;
-  public function names($name) {
+  public function __construct($name) {
     $this->var_name = $name;
   }
 }
index 30b81ad8b1a5fd3d9377898513eb486c550b44dd..8dcd70c79819eed1b7b814a3fce91bfa375dcc11 100644 (file)
@@ -29,7 +29,7 @@ symlink("$file_path/lstat_stat_variation20.tmp", "$file_path/lstat_stat_variatio
 echo "*** Testing lstat() with linkname stored inside an object/array ***\n";
 class names {
   public $var_name;
-  public function names($name) {
+  public function __construct($name) {
     $this->var_name = $name;
   }
 }
index 9c795e97940b280ae968e206b286e17ffb8f3624..341e39a9dea2c1ba9b3150cb7547a60ec10f5d27 100644 (file)
@@ -28,7 +28,7 @@ fclose($file_handle);
 // creating object with members as linkname
 class object_temp {
   public $linkname;
-  function object_temp($link) {
+  function __construct($link) {
     $this->linkname = $link;
   }
 }
index e3185c403607785c20cd8bcc3b324459a1d51045..b1b1afc7401e60b12644442168506c81ed308532 100644 (file)
@@ -36,7 +36,7 @@ fclose($fp);
 echo "*** Testing symlink(), link(), linkinfo() and is_link() with linknames stored as members in an object ***\n";
 class object_temp {
   var $linkname;
-  function object_temp($link) {
+  function __construct($link) {
     $this->linkname = $link;
   }
 }
index 4f286ec6061b15b74d8a9a7d4f8a68e03ccfd70c..1f2b7e155d5ac81b486a68e175ec568c8917bb6c 100644 (file)
@@ -39,7 +39,7 @@ class object_class {
   }
   public $array_var  = array( "key1" => 1, "key2 " => 3);
 
-  function object_class () {
+  function __construct () {
       $this->value1 = 5;
       $this->object_class1 = $this;
   }
@@ -65,7 +65,7 @@ class contains_object_class
      echo "func() is called \n";
    }
 
-   function contains_object_class () {
+   function __construct () {
      $this->class_object1 = new object_class();
      $this->class_object2 = new object_class();
      $this->class_object3 = $this->class_object1;
index 43454733e8ce2d7329ccc11950cb78f00f38f41b..b2762fd83a31e6dbd5f0bb6a52beae7331ad810e 100644 (file)
@@ -38,7 +38,7 @@ class point
   var $x;
   var $y;
 
-  function point($x, $y) {
+  function __construct($x, $y) {
      $this->x = $x;
      $this->y = $y;
   }
index c900032fea5c99cb7a5fea0e4f7614f319188203..d842534124bb0f888c35265757c8430995f8e517 100644 (file)
@@ -71,7 +71,7 @@ class contains_object_class
      echo "func() is called \n";
    }
 
-   function contains_object_class () {
+   function __construct () {
      $this->class_object1 = new object_class();
      $this->no_member_class_object = new no_member_class();
    }
@@ -784,4 +784,4 @@ bool(true)
 object_class::foo1
 bool(true)
 object_class::foo1
-===DONE===
\ No newline at end of file
+===DONE===
index 33fd422e769a7b33053ebe27834dca431e530dea..89b5081fae4c01cdde97d8dcc31da9e320a5d43c 100644 (file)
@@ -61,7 +61,7 @@ class myClass
   private   $private_var;
   protected $protected_var;
 
-  function myClass ( ) {
+  function __construct ( ) {
     $this->foo_object = new foo();
     $this->public_var = 10;
     $this->public_var1 = new foo();
index f3ebd58cc54473c95d208a72c7f80de67e473c8d..d62b3f9790292720df67755b887c8be0c226f746 100644 (file)
@@ -155,7 +155,7 @@ class object_class
   protected $protected_var1 = "string_1";
   protected $protected_var2;
 
-  function object_class ( ) {
+  function __construct ( ) {
     $this->value = 50;
     $this->public_var2 = 11;
     $this->private_var2 = 21;
@@ -191,7 +191,7 @@ class contains_object_class
      echo "func() is called \n";
    }
 
-   function contains_object_class () {
+   function __construct () {
      $this->class_object1 = new object_class();
      $this->class_object2 = new object_class();
      $this->class_object3 = $this->class_object1;
index a81980c02bb14f059d986bbc8e7b2fb992edd843..3672357936e3e58f202c7c32acbc2501dd456c23 100644 (file)
@@ -148,7 +148,7 @@ class object_class
   protected $protected_var1 = "string_1";
   protected $protected_var2;
 
-  function object_class ( ) {
+  function __construct ( ) {
     $this->value = 50;
     $this->public_var2 = 11;
     $this->private_var2 = 21;
@@ -184,7 +184,7 @@ class contains_object_class
      echo "func() is called \n";
    }
 
-   function contains_object_class () {
+   function __construct () {
      $this->class_object1 = new object_class();
      $this->class_object2 = new object_class();
      $this->class_object3 = $this->class_object1;
index 76a18ac3a7d68a0ff39b4bbd511eed25c17f5c19..1cadb4aa55d2891d514dc5ed07ed58676020738c 100644 (file)
@@ -233,7 +233,7 @@ class myClass
   private $private_var;
   protected $protected_var;
 
-  function myClass ( ) {
+  function __construct ( ) {
     $this->foo_object = new foo();
     $this->public_var = 10;
     $this->public_var1 = new foo();
index 8935d0e79d78be3f4edb51ef0f4f229ba6cae5f1..38fdb373dfc5db555af219d4f1e6b125bb5f634e 100644 (file)
@@ -61,7 +61,7 @@ class myClass
   private $private_var;
   protected $protected_var;
 
-  function myClass ( ) {
+  function __construct ( ) {
     $this->foo_object = new foo();
     $this->public_var = 10;
     $this->public_var1 = new foo();
index 600c9b706d94175c95469e629f83b2f03b297795..e83b9af002e24bda2635c762aa041f356f3ad767 100644 (file)
@@ -6,7 +6,7 @@ serialize_precision=100
 <?php 
 class t
 {
-       function t()
+       function __construct()
        {
                $this->a = "hallo";
        }
@@ -18,7 +18,7 @@ class s
        public $b;
        public $c;
 
-       function s()
+       function __construct()
        {
                $this->a = "hallo";
                $this->b = "php";
index 3fca7e406edcf4ec7574a3888b2d6881d5670201..8e7b8a9d7d36abcb5d3f6e7219911ff4c8680099 100644 (file)
@@ -4,7 +4,7 @@ Bug #14293 (serialize() and __sleep())
 <?php 
 class t
 {
-       function t()
+       function __construct()
        {
                $this->a = 'hello';
        }
index 29eeb2ee6c721d846817b194b622d75a5409573a..2084503d24387fa50c1204333aedffda88d654da 100644 (file)
@@ -6,7 +6,7 @@ class test
 {
        public $a, $b;
 
-       function test()
+       function __construct()
        {
                $this->a = 7;
                $this->b = 2;
index 2313ffab8837231001c8760abb074f328c7138ce..5e6773a2ae41dedba26a35f20b3d81e15ec4129d 100644 (file)
@@ -19,7 +19,7 @@ echo "\n--- Testing Abstract Class ---\n";
 // abstract class
 abstract class Name 
 {
-  public function Name() {
+  public function __construct() {
     $this->a = 10;
     $this->b = 12.222;
     $this->c = "string";
index 8d9f66eaf714d4a006d062af15f3b35bd135c119..cd984dd9e7df061c87e293213522f7e387b0a6a0 100644 (file)
@@ -10,7 +10,7 @@ Bug: tidy segfaults with markup=false
 abstract class BaseClass {
         private static $tidyconfig;
 
-        public function BaseClass() {
+        public function __construct() {
                 $this->tidyconfig = array(
                         'indent'                        => false,
                         'clean'                         => true,
@@ -38,7 +38,7 @@ abstract class BaseClass {
 }
 
 class ChildClass extends BaseClass {
-        public function ChildClass() {
+        public function __construct() {
                 parent::__construct();
         }
 
index 0853b3ab1c15a41589e7a17c9d0978a32dfef346..b5d2a7b0bd64004e21169b1ca4ce08ae8bec50e7 100644 (file)
@@ -14,7 +14,7 @@ class testcase {
        private $tags;
        private $chunk_size;
 
-       function testcase($enc, $chunk_size = 0, $bom = 0, $omit_prologue = 0) {
+       function __construct($enc, $chunk_size = 0, $bom = 0, $omit_prologue = 0) {
                $this->encoding = $enc;
                $this->chunk_size = $chunk_size;
                $this->bom = $bom;
index de22fec15193868c40c8275e9c2c99e42736f04e..15f0a5ec523fd21782c6472373f545acf74a56ff 100644 (file)
@@ -10,7 +10,7 @@ error_reporting=2047
 class MyCloneable {
        static $id = 0;
 
-       function MyCloneable() {
+       function __construct() {
                $this->id = self::$id++;
        }
 
index ea6813cc96d6e4611a5f7485385c90481e26ee54..6af863e576843203d13bff31834150be979b6192 100644 (file)
@@ -6,7 +6,7 @@ ZE2 The new constructor/destructor is called
 <?php
 
 class early {
-       function early() {
+       function __construct() {
                echo __CLASS__ . "::" . __FUNCTION__ . "\n";
        }
        function __destruct() {
@@ -24,7 +24,7 @@ class late {
 }
 
 $t = new early();
-$t->early();
+$t->__construct();
 unset($t);
 $t = new late();
 //unset($t); delay to end of script
@@ -32,8 +32,8 @@ $t = new late();
 echo "Done\n";
 ?>
 --EXPECTF--
-early::early
-early::early
+early::__construct
+early::__construct
 early::__destruct
 late::__construct
 Done
index dd2aba78e57888f2ce0c63230d92efd06e7b2661..886baeb288004c47969e1b73211d0d0d2dc6de22 100644 (file)
@@ -6,7 +6,7 @@ ZE2 dereferencing of objects from methods
 <?php
 
 class Name {
-       function Name($_name) {
+       function __construct($_name) {
                $this->name = $_name;
        }
 
@@ -18,7 +18,7 @@ class Name {
 class Person {
        private $name;
 
-       function person($_name, $_address) {
+       function __construct($_name, $_address) {
                $this->name = new Name($_name);
        }
 
index 74acb5de1360ddd023e67875ec66eee859280b90..f114d1aa95466e3e2710a6300984a6328c72c67c 100644 (file)
@@ -8,7 +8,7 @@ ZE2 object references
 class Foo {
        public $name;
     
-       function Foo() {
+       function __construct() {
                $this->name = "I'm Foo!\n";
        }
 }
index bd4525ee60e5ce0bce653b10e2fd97d823e21cc1..2c51b79cb25b0077d178383fcfcf4f0fd04efef4 100644 (file)
@@ -28,7 +28,7 @@ function dafna()
 
 
 class dafna_class {
-       function dafna_class() {
+       function __construct() {
                $this->myname = "Dafna";
        }
        function GetMyName() {
index 758369bf0848ec98ac8a37c2cdbcabca683b09bf..9ee40ea5aab973a0a17c0aa5a163d767bca04aaa 100644 (file)
@@ -3,7 +3,7 @@ $this in constructor test
 --FILE--
 <?php
 class foo {
-       function foo($name) {
+       function __construct($name) {
        $GLOBALS['List']= &$this;
        $this->Name = $name;
                $GLOBALS['List']->echoName();
index 9472999f4716747b61b878f96e7061283a01917f..a5e3a7f4cc9ca503f1a889c738d7c29bcfe936a0 100644 (file)
@@ -5,7 +5,7 @@ ZE2: set_exception_handler()
 --FILE--
 <?php
 class MyException extends Exception {
-       function MyException($_error) {
+       function __construct($_error) {
                $this->error = $_error; 
        }
        
index bee3688d66b7778795e297fefac2a7d8355fcbd8..a3fdd297e13307cb55a892b4ca86f46176918cd8 100644 (file)
@@ -95,7 +95,7 @@ $oop_global = 0;
 class oop_class {
        var $oop_name;
        
-       function oop_class() {
+       function __construct() {
                global $oop_global;
                echo "oop_class()\n";
                $this->oop_name = 'oop:' . ++$oop_global;
@@ -105,7 +105,7 @@ class oop_class {
 class oop_test {
        static $oop_value;
        
-       function oop_test() {
+       function __construct() {
                echo "oop_test()\n";
        }
        
index 30b311320bebf74c9100508eac5a79e95dc3ebe6..2ce99769d9b9d42e2d755392429785251dabf16b 100644 (file)
@@ -5,7 +5,7 @@ Bug #21849 (self::constant doesn't work as method's default parameter)
 class foo {
        const bar = "fubar\n";
        
-       function foo($arg = self::bar) {
+       function __construct($arg = self::bar) {
                echo $arg;
        }
 }
index 24581d663e8c24205536a10fe9c2fff48fb1da43..9b7199208dacfbe7b9a345978b1cc2929f1a5a6a 100644 (file)
@@ -8,7 +8,7 @@ Bug #21961 (get_parent_class() segfault)
 class man
 {
        public $name, $bars;
-       function man()
+       function __construct()
        {
                $this->name = 'Mr. X';
                $this->bars = array();
@@ -29,7 +29,7 @@ class bar extends man
 {
        public $name;
 
-       function bar($w)
+       function __construct($w)
        {
                $this->name = $w;
        }
index 645bb1b7df36812904375077768214c94901e89e..c8535c5123211086d5409ad4a015001ac32b6abd 100644 (file)
@@ -3,7 +3,7 @@ Bug #23489 (ob_start() is broken with method callbacks)
 --FILE--
 <?php
 class Test {
-  function Test() {
+  function __construct() {
     ob_start(
       array(
         $this, 'transform'
index 3d2cc7008baf22de7e70a16dc389c4fb64ddae68..8f853dba4791dbef35034fe5bf508dfefba1db37 100644 (file)
@@ -9,7 +9,7 @@ class foo {
 
     public $functions = array();
     
-    function foo()
+    function __construct()
     {
         $function = create_function('', 'return "FOO\n";');
         print($function());
index 61f45d47d578efd85da4974cb6438d3fd9ca2b75..9596ba23310cfa4d1db370ab6d128e470dfb82a3 100644 (file)
@@ -6,7 +6,7 @@ ZE2 errors caught as exceptions
 <?php
 
 class MyException extends Exception {
-       function MyException($_errno, $_errmsg) {
+       function __construct($_errno, $_errmsg) {
                $this->errno = $_errno;
                $this->errmsg = $_errmsg;
        }