]> granicus.if.org Git - php/commitdiff
MFZE1
authorDerick Rethans <derick@php.net>
Sun, 14 Jul 2002 11:48:45 +0000 (11:48 +0000)
committerDerick Rethans <derick@php.net>
Sun, 14 Jul 2002 11:48:45 +0000 (11:48 +0000)
Zend/zend_operators.c

index b7857a2d0311abe04860bda7062bd824be7a6771..fef83c6d48eaf765c716e4fb2851fb65ec03f6b5 100644 (file)
@@ -1451,7 +1451,7 @@ ZEND_API int increment_function(zval *op1)
 {
        switch (op1->type) {
                case IS_BOOL:
-                       if (!op->value.lval) {
+                       if (!op1->value.lval) {
                                op1->value.lval = 1;
                        }
                        break;
@@ -1518,7 +1518,7 @@ ZEND_API int decrement_function(zval *op1)
        
        switch (op1->type) {
                case IS_BOOL:
-                       if (op->value.lval) {
+                       if (op1->value.lval) {
                                op1->value.lval = 0;
                        } else {
                                op1->value.lval = 1;