felipe                                   Sun, 13 Mar 2011 14:21:58 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=309172

Log:
- Fixed bug #54242 (dba_insert returns true if key already exists)

Bug: http://bugs.php.net/54242 (Open) dba_insert returns true if key already 
exists
      
Changed paths:
    U   php/php-src/trunk/ext/dba/dba_flatfile.c

Modified: php/php-src/trunk/ext/dba/dba_flatfile.c
===================================================================
--- php/php-src/trunk/ext/dba/dba_flatfile.c    2011-03-13 14:19:31 UTC (rev 
309171)
+++ php/php-src/trunk/ext/dba/dba_flatfile.c    2011-03-13 14:21:58 UTC (rev 
309172)
@@ -96,7 +96,7 @@
                return SUCCESS;
        case 1:
                php_error_docref1(NULL TSRMLS_CC, key, E_WARNING, "Key already 
exists");
-               return SUCCESS;
+               return FAILURE;
        }
 }


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to