note 8382 deleted from function.dbmdelete by philip

From: Date: Fri, 18 Apr 2008 05:38:17 +0000
Subject: note 8382 deleted from function.dbmdelete by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-138466@lists.php.net to get a copy of this message
Note Submitter: v dot a dot rao at online dot nl ---- Doesn't return false if the key is not in the database (contrary to what the documentation states). Returns -1 (TRUE) if the key doesn't exist Returns 0 (FALSE) if the key does exist This is still a bug (3.0.16 and 4.0.2) and it can still cost you your Saturday afternoon if you comply with the PHP documentation on TRUE (non-zero) and FALSE (0) with regards to this function. http://www.php.net/manual/language.expressions.php

« previous php.notes (#138466) next »