]> granicus.if.org Git - php/commitdiff
Fix incorrect use of assignment in where equality was intended - class tests.
authorRobert Nicholson <nicholsr@php.net>
Fri, 23 Nov 2007 15:34:04 +0000 (15:34 +0000)
committerRobert Nicholson <nicholsr@php.net>
Fri, 23 Nov 2007 15:34:04 +0000 (15:34 +0000)
tests/classes/assign_op_property_001.phpt
tests/classes/incdec_property_001.phpt
tests/classes/incdec_property_002.phpt
tests/classes/incdec_property_003.phpt
tests/classes/incdec_property_004.phpt

index 54e519e8f62c222421a096822ce5a24be3739d34..21e131cfa4ecea26c24f3634632485e7e1993a3b 100644 (file)
@@ -7,13 +7,13 @@ class Test {
        private $real_a = 2;
        
        function __set($property, $value) {
-         if ($property = "a") {
+         if ($property == "a") {
            $this->real_a = $value;
          }
        }
 
        function __get($property) {
-         if ($property = "a") {
+         if ($property == "a") {
            return $this->real_a;
          }
        }
index 39bf06f65fba2e2d5bbc837393cd5f5af8c034df..97a24d30b640d45fb0f1270fa8508a5eb62c7232 100644 (file)
@@ -7,13 +7,13 @@ class Test {
        private $real_a = 2;
        
        function __set($property, $value) {
-         if ($property = "a") {
+         if ($property == "a") {
            $this->real_a = $value;
          }
        }
 
        function __get($property) {
-         if ($property = "a") {
+         if ($property == "a") {
            return $this->real_a;
          }
        }
index fe08625ea8006c2a7d9ca56e3d4a3dca2bc1a778..c1d7dded3b0631a91cbf35de05f9005c82f4312c 100644 (file)
@@ -7,13 +7,13 @@ class Test {
        private $real_a = 2;
        
        function __set($property, $value) {
-         if ($property = "a") {
+         if ($property == "a") {
            $this->real_a = $value;
          }
        }
 
        function __get($property) {
-         if ($property = "a") {
+         if ($property == "a") {
            return $this->real_a;
          }
        }
index d26277ab8d1c07d1d680156ececccd95c131b54f..1a923849f417f6242c9c8df51ae1c2da2617d38b 100644 (file)
@@ -7,13 +7,13 @@ class Test {
        private $real_a = 2;
        
        function __set($property, $value) {
-         if ($property = "a") {
+         if ($property == "a") {
            $this->real_a = $value;
          }
        }
 
        function __get($property) {
-         if ($property = "a") {
+         if ($property == "a") {
            return $this->real_a;
          }
        }
index 5ccad190b8a08188a056b01462deecf79b90a1e3..05e3b445ac130428e65ddfb49bf2c0337ceafca0 100644 (file)
@@ -7,13 +7,13 @@ class Test {
        private $real_a = 2;
        
        function __set($property, $value) {
-         if ($property = "a") {
+         if ($property == "a") {
            $this->real_a = $value;
          }
        }
 
        function __get($property) {
-         if ($property = "a") {
+         if ($property == "a") {
            return $this->real_a;
          }
        }