Overriding Built-In Functions and making db connection local

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?

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?

--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
brownbull [ Do, 19 Februar 2009 20:52 ] [ ID #1990135 ]

Re: Overriding Built-In Functions and making db connectionlocal

brownbull [at] 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/


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
dmagick [ Do, 19 Februar 2009 22:35 ] [ ID #1990137 ]
PHP » gmane.comp.php.database » Overriding Built-In Functions and making db connection local

Vorheriges Thema: HELP! PHP 4.4.4 and MySQL 4.1 - Can't find php_mysql.dll
Nächstes Thema: sqlnet.ora doesn't seem to be read since oci8 1.3.4