cvs: php4 /ext/dba dba.c

From: Date: Tue, 04 Mar 2003 19:56:35 +0000
Subject: cvs: php4 /ext/dba dba.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19371@lists.php.net to get a copy of this message
helly Tue Mar 4 14:56:35 2003 EDT Modified files: /php4/ext/dba dba.c Log: fix dba by fixing key_len retrieval Index: php4/ext/dba/dba.c diff -u php4/ext/dba/dba.c:1.84 php4/ext/dba/dba.c:1.85 --- php4/ext/dba/dba.c:1.84 Wed Feb 26 17:07:50 2003 +++ php4/ext/dba/dba.c Tue Mar 4 14:56:35 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dba.c,v 1.84 2003/02/26 22:07:50 helly Exp $ */ +/* $Id: dba.c,v 1.85 2003/03/04 19:56:35 helly Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -149,7 +149,7 @@ 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 @@ 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 @@ 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; \ }

« previous php.cvs (#19371) next »