]> granicus.if.org Git - php/commitdiff
fix dba by fixing key_len retrieval
authorMarcus Boerger <helly@php.net>
Tue, 4 Mar 2003 19:56:35 +0000 (19:56 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 4 Mar 2003 19:56:35 +0000 (19:56 +0000)
ext/dba/dba.c

index 76ab42b31b499d23dc3321fb9b9cef07ad866e94..f897667982d7435b086a1769182dd4cc241613a9 100644 (file)
@@ -149,7 +149,7 @@ static size_t php_dba_make_key(zval **key, char **key_str, char **key_free TSRML
        if(ac != 2 || zend_get_parameters_ex(ac, &key, &id) != SUCCESS) {       \
                WRONG_PARAM_COUNT;                                                                              \
        }                                                                                                                       \
-       if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC) < 0)) {\
+       if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
                RETURN_FALSE;                                                                                   \
        }
 
@@ -175,7 +175,7 @@ static size_t php_dba_make_key(zval **key, char **key_str, char **key_free TSRML
        default:                                                                                                        \
                WRONG_PARAM_COUNT;                                                                              \
        }                                                                                                                       \
-       if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC) < 0)) {\
+       if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
                RETURN_FALSE;                                                                                   \
        }
 
@@ -187,7 +187,7 @@ static size_t php_dba_make_key(zval **key, char **key_str, char **key_free TSRML
                WRONG_PARAM_COUNT;                                                                              \
        }                                                                                                                       \
        convert_to_string_ex(val);                                                                      \
-       if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC) < 0)) {\
+       if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
                RETURN_FALSE;                                                                                   \
        }