Bug #12885: don't agree to the persistent connection manual section

From: Date: Tue, 21 Aug 2001 21:03:13 +0000
Subject: Bug #12885: don't agree to the persistent connection manual section
Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-63995@lists.php.net to get a copy of this message
From: stefan.priebsch@e-novative.de Operating system: win98 PHP version: 4.0.6 PHP Bug Type: Documentation problem Bug description: don't agree to the persistent connection manual section When I did the following: 1. handle a = pconnect to a mysql db, say user "root", no password, host=localhost 2. select database "a" 3. handle b = pconnect to same mysql db, user "root", no password, host=localhost 4. select database "b" If i run a query against the database using handle a, it will have database b selected. However, the manual says on persistent connections: <quote> An important summary. Persistent connections were designed to have one-to-one mapping to regular connections. That means that you should always be able to replace persistent connections with non-persistent connections, and it won't change the way your script behaves. It may (and probably will) change the efficiency of the script, but not its behavior! </quote> This does *not* hold true, at least for mysql persistent connections in that case. If this behaviour is not by design in 4.0.6 on Win 98, I will be happy to provide more information if required. -- Edit bug report at: http://bugs.php.net/?id=12885&edit=1

« previous php.dev (#63995) next »