Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53745 invoked by uid 1010); 15 Jan 2004 17:08:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53721 invoked from network); 15 Jan 2004 17:08:44 -0000 Received: from unknown (HELO plim.fujitsu-siemens.com) (217.115.66.8) by pb1.pair.com with SMTP; 15 Jan 2004 17:08:44 -0000 Received: from trulli.pdb.fsc.net ([172.25.96.53]) by plim.fujitsu-siemens.com (8.11.3/8.11.3) with ESMTP id i0FH8hu28429 for ; Thu, 15 Jan 2004 18:08:43 +0100 Received: from deejai2.mch.fsc.net (deejai2.mch.fsc.net [172.25.124.236]) by trulli.pdb.fsc.net (8.11.6/8.11.6) with ESMTP id i0FH8gh30327 for ; Thu, 15 Jan 2004 18:08:42 +0100 Received: from deejai2.mch.fsc.net (5vm2ff6ow4p0henr@localhost [127.0.0.1]) by deejai2.mch.fsc.net (8.12.9p2/8.12.9) with ESMTP id i0FH8VZU011480 for ; Thu, 15 Jan 2004 18:08:31 +0100 (CET) (envelope-from martin@deejai2.mch.fsc.net) Received: (from martin@localhost) by deejai2.mch.fsc.net (8.12.9p2/8.12.9/Submit) id i0FH8Vr0011479 for internals@lists.php.net; Thu, 15 Jan 2004 18:08:31 +0100 (CET) (envelope-from martin) Date: Thu, 15 Jan 2004 18:08:31 +0100 To: internals@lists.php.net Message-ID: <20040115170830.GA60445@deejai2.mch.fsc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.9-STABLE FreeBSD 4.9-STABLE X-Organization: Fujitsu Siemens Computers (Muenchen, Germany) X-Disclaimer: THE COMMENTS CONTAINED IN THIS MESSAGE REFLECT THE VIEWS OF THE WRITER AND ARE NOT NECESSARILY THE VIEWS OF FUJITSU SIEMENS COMPUTERS X-No-Junk-Mail: I do not want to get *any* junk mail. X-Virus-Scanned: by amavisd-new Subject: Re: [PHP-DEV] PHP 4.3.5RC1 and dba(db4) From: Martin.Kraemer@Fujitsu-Siemens.com (Martin Kraemer) Hello, I am noticing a strange effect in php-4.3.5RC1 while using dba_open("name", "c", "db4") -- this used to work in php-4.3.3 (I have both libphp4.so versions and can switch between them) but it fails in php-4.3.5RC1 with the error message: Warning: dba_open(...,c): Driver initialization failed for handler: db4: Unable to establish lock (no matter if I use "c", "cd" or "ct" for the flags). The only possibility to get it working is by using "c-" for $flags. Note that in ext/dba/dba_db4.c, I see some clues about a db4-internal locking: --snip--dba_db4.c::DBA_OPEN_FUNC(db4) #ifdef DB_FCNTL_LOCKING gmode |= DB_FCNTL_LOCKING; #endif --snip-- so I tried to change the handler[] for db4 to: --snip--dba.c::handler[] #if DBA_DB4 #ifdef DB_FCNTL_LOCKING DBA_HND(db4, DBA_LOCK_EXT) /* Locking done in library if set */ #else DBA_HND(db4, DBA_LOCK_ALL) /* No lock in lib */ #endif #endif --snip-- but that doesn't change the observed behaviour. Is it *my* error, or is something really broken in php-4.3.5RC1? Martin -- | Fujitsu Siemens Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730 Munich, Germany