Re: Overriding Built-In Functions and making db connection local

From: Date: Thu, 19 Feb 2009 21:35:49 +0000
Subject: Re: Overriding Built-In Functions and making db connection local
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-45973@lists.php.net to get a copy of this message
brownbull@gmx.net wrote:
Hello, I'm searching for a possibility to override build-in function.PECL APD isn't a possible solution for me. Is there any other possibility to override a built-in function or to disallow the call without manipulation the php.ini?
You can't override existing functions (whether they're built in php ones or ones you make up yourself).
My second problem is that it is needed for a special framework that the conenction to a database isn't set global. I need it to ensure that every databasecall is through my class. Is there any possibility for this?
Nope. You can't just disable the function because your class needs to make it, and disable_functions disables that function everywhere, you can't tell it to do it for every file but "x.php". -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#45973) next »