ID: 14383 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Open Bug Type: DBM/DBA related Operating System: FreeBSD 4.4-STABLE PHP Version: 4.0.6 New Comment:
Ok, I just tested it with 4.1.0 and I still get the exact same error, no change. I'll try to get a snap if I can and try it. Previous Comments: ------------------------------------------------------------------------ [2001-12-13 02:51:58] [EMAIL PROTECTED] No, I've not tried it with 4.1.0. I'm trying to get it or one of the snaps right now and the servers are slllowwww...:( Will report back when I get it tested. -- GB ------------------------------------------------------------------------ [2001-12-13 02:39:11] [EMAIL PROTECTED] Did you try it with 4.1.0? Do you still have the problem? If you still have problem, could you try snapshot also? http://snaps.php.net/ If you still have problem with snapshot, I'll look into what's wrong. ------------------------------------------------------------------------ [2001-12-13 02:33:07] [EMAIL PROTECTED] Yes, if I don't use any postgres commands then the dba stuff works fine. GB ------------------------------------------------------------------------ [2001-12-12 03:42:31] [EMAIL PROTECTED] Just trying to clarify. If you don't use postgresql functions *before* dba functions, your script works as expected? Could you try it with 4.1.0 to see it helps? -- Yasuo ------------------------------------------------------------------------ [2001-12-07 14:37:40] [EMAIL PROTECTED] Hello, If I use postgres first within a PHP script then DBA can not find any keys. It will return the error: "Warning: Unable to find DBA identifier 1 in /www/sites/Test/htdocs/dbafuncs.php on line 31" If I do not use a pg_connect, then it works perfectly. Here is a short script that triggers it. --SNIP-- $dbh = pg_connect("dbname=helpme user=helpme"); if (!$dbh) { die ("Could not connect to the server"); } pg_close($dbh); $dbalocation = "/www/sites/Test/xxadmindb"; echo "$dbalocation<br><br>"; $dbm = dba_open("$dbalocation", "r", "ndbm") || die ("Could not open file"); if(!$dbm) { die ("no handle"); } $key = dba_firstkey($dbm); if(!$key) { echo "<br><br>Error with retreiving Key<br><br>\n"; } $info[$key] = dba_fetch($key, $dbm); while($key != false) { $key = dba_nextkey($dbm); if(!$key) { break; } $info[$key] = dba_fetch($key, $dbm); } dba_close($dbm); --SNIP-- The dba_open works just fine and returns a handle, however anything that needs a key will fail with the above error. GB Clark ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14383&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]