ID: 8075 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Closed Bug Type: Feature/Change Request Operating System: Redhat Linux 6.2 PHP Version: 4.0.2 New Comment:
this is possible in ZE2. Previous Comments: ------------------------------------------------------------------------ [2000-12-01 23:31:40] [EMAIL PROTECTED] What I mean is like this: function &getDB() { global $DB; if (!isset $DB) $DB = new SomeDatabaseConnectionClass() return $DB } and in some function/method I just could use it like this getDB()->query_limit($sql_text); It sure will make my code a lot smaller. TIA, Zakaria ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=8075&edit=1