Weird pdo-mysql behavior

From: Date: Thu, 13 Nov 2008 10:20:38 +0000
Subject: Weird pdo-mysql behavior
Groups: php.general 
Request: Send a blank email to php-general+get-283243@lists.php.net to get a copy of this message
Hi list, I am developing something using PDO and I've noticed something weird that I want to share with you. I am creating a database handler in a script and I pass the handler to many functions I use in order to avoid creating a new connection into the function itself. Although this works in a compiled LAMP I have, this stops working when I use a prepackaged version of another LAMP I have. If I change the script in the non-working system and make the connection from inside the function using a new handler then everything works like a charm. Is there a chance that I am using a different configuration in say php.ini that can cause such behavior. Let me know what you think. -- Thodoris

« previous php.general (#283243) next »