|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-09-22 23:54 UTC] aharvey@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: aharvey
[2013-09-22 23:54 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 19:00:02 2025 UTC |
Description: ------------ Calling dba functions (e.g. dba_exists/dba_insert) with a non-string key causes the key to be cast to a string. This also affects any variables that are copies of the key variable. This seems to be independent of database type - tested with db4 and flatfile databases. Test script: --------------- <?php $db = dba_open('/tmp/testdb', 'c', 'flatfile'); $i = 1; //use integer key $j = $i; //copy by value echo gettype($i)."\n"; echo gettype($j)."\n"; dba_exists($i, $db); echo gettype($i)."\n"; echo gettype($j)."\n"; Expected result: ---------------- integer integer integer integer Actual result: -------------- integer integer string string