diff options
| author | Marcus Boerger <helly@php.net> | 2003-03-04 19:56:35 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2003-03-04 19:56:35 +0000 |
| commit | 238abf8c7f1108d4e52b58cba8761b7147bbeb82 (patch) | |
| tree | 8708cca0aacde5503b6fe4bfc8ff1af82db71cbe /ext/dba/dba.c | |
| parent | a06b5bde22a0d822571e7256c719624c3e158780 (diff) | |
| download | php-git-238abf8c7f1108d4e52b58cba8761b7147bbeb82.tar.gz | |
fix dba by fixing key_len retrieval
Diffstat (limited to 'ext/dba/dba.c')
| -rw-r--r-- | ext/dba/dba.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dba/dba.c b/ext/dba/dba.c index 76ab42b31b..f897667982 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -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; \ } |
