]> granicus.if.org Git - php/commitdiff
fix typo (Z_USTRVAL_P -> Z_USTRLEN_P) and CS
authorAntony Dovgal <tony2001@php.net>
Fri, 27 Apr 2007 21:27:14 +0000 (21:27 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 27 Apr 2007 21:27:14 +0000 (21:27 +0000)
Zend/zend_operators.c

index 6c29cd42baa97c06bed3ee985282843232f7a7e8..d1cd6355ab2e9fd2da2dec472af1df02bb5f8388 100644 (file)
@@ -570,9 +570,8 @@ ZEND_API int convert_to_boolean(zval *op)
                        {
                                UChar *strval = Z_USTRVAL_P(op);
 
-                               if (Z_USTRVAL_P(op) == 0
-                                       || (Z_USTRLEN_P(op)==1 &&
-                                               (Z_USTRVAL_P(op)[0]=='0'))) {
+                               if (Z_USTRLEN_P(op) == 0
+                                       || (Z_USTRLEN_P(op)==1 && Z_USTRVAL_P(op)[0]=='0')) {
                                        Z_LVAL_P(op) = 0;
                                } else {
                                        Z_LVAL_P(op) = 1;