cvs: php-src(PHP_5_3) /tests/classes assign_op_property_001.phpt incdec_property_001.phpt incdec_property_002.phpt incdec_property_003.phpt
incdec_property_004.phpt
| From: | Robert Nicholson | Date: | Fri, 23 Nov 2007 15:36:41 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /tests/classes assign_op_property_001.phpt incdec_property_001.phpt incdec_property_002.phpt incdec_property_003.phpt incdec_property_004.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47299@lists.php.net to get a copy of this message | ||
nicholsr Fri Nov 23 15:36:41 2007 UTC
Modified files: (Branch: PHP_5_3)
/php-src/tests/classes incdec_property_001.phpt
incdec_property_004.phpt
incdec_property_002.phpt
assign_op_property_001.phpt
incdec_property_003.phpt
Log:
Fix incorrect use of assignment in where equality was intended - class tests.
http://cvs.php.net/viewvc.cgi/php-src/tests/classes/incdec_property_001.phpt?r1=1.1&r2=1.1.8.1&diff_format=u
Index: php-src/tests/classes/incdec_property_001.phpt
diff -u php-src/tests/classes/incdec_property_001.phpt:1.1
php-src/tests/classes/incdec_property_001.phpt:1.1.8.1
--- php-src/tests/classes/incdec_property_001.phpt:1.1 Fri Dec 19 15:08:56 2003
+++ php-src/tests/classes/incdec_property_001.phpt Fri Nov 23 15:36:41 2007
@@ -7,13 +7,13 @@
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;
}
}
http://cvs.php.net/viewvc.cgi/php-src/tests/classes/incdec_property_004.phpt?r1=1.1&r2=1.1.8.1&diff_format=u
Index: php-src/tests/classes/incdec_property_004.phpt
diff -u php-src/tests/classes/incdec_property_004.phpt:1.1
php-src/tests/classes/incdec_property_004.phpt:1.1.8.1
--- php-src/tests/classes/incdec_property_004.phpt:1.1 Fri Dec 19 15:08:56 2003
+++ php-src/tests/classes/incdec_property_004.phpt Fri Nov 23 15:36:41 2007
@@ -7,13 +7,13 @@
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;
}
}
http://cvs.php.net/viewvc.cgi/php-src/tests/classes/incdec_property_002.phpt?r1=1.1&r2=1.1.8.1&diff_format=u
Index: php-src/tests/classes/incdec_property_002.phpt
diff -u php-src/tests/classes/incdec_property_002.phpt:1.1
php-src/tests/classes/incdec_property_002.phpt:1.1.8.1
--- php-src/tests/classes/incdec_property_002.phpt:1.1 Fri Dec 19 15:08:56 2003
+++ php-src/tests/classes/incdec_property_002.phpt Fri Nov 23 15:36:41 2007
@@ -7,13 +7,13 @@
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;
}
}
http://cvs.php.net/viewvc.cgi/php-src/tests/classes/assign_op_property_001.phpt?r1=1.1&r2=1.1.8.1&diff_format=u
Index: php-src/tests/classes/assign_op_property_001.phpt
diff -u php-src/tests/classes/assign_op_property_001.phpt:1.1
php-src/tests/classes/assign_op_property_001.phpt:1.1.8.1
--- php-src/tests/classes/assign_op_property_001.phpt:1.1 Fri Dec 19 15:08:56 2003
+++ php-src/tests/classes/assign_op_property_001.phpt Fri Nov 23 15:36:41 2007
@@ -7,13 +7,13 @@
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;
}
}
http://cvs.php.net/viewvc.cgi/php-src/tests/classes/incdec_property_003.phpt?r1=1.1&r2=1.1.8.1&diff_format=u
Index: php-src/tests/classes/incdec_property_003.phpt
diff -u php-src/tests/classes/incdec_property_003.phpt:1.1
php-src/tests/classes/incdec_property_003.phpt:1.1.8.1
--- php-src/tests/classes/incdec_property_003.phpt:1.1 Fri Dec 19 15:08:56 2003
+++ php-src/tests/classes/incdec_property_003.phpt Fri Nov 23 15:36:41 2007
@@ -7,13 +7,13 @@
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;
}
}