Re: DB_DataContainer

From: Date: Sat, 10 Mar 2007 10:56:40 +0000
Subject: Re: DB_DataContainer
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-250198@lists.php.net to get a copy of this message
In PHP 5 some things changed, and that's why they first check if PHP version is 5 or greater, if so, it constructs this class and function in PHP5 style, else it uses older syntax. You might want to take a look at this manual page: http://www.php.net/manual/en/migration5.php Tijnema On 3/10/07, php trainer <phptrainer@gmail.com> wrote:
Could someone explain what this does and why it's beneficial? Thanks, Ed -------------------------------------------------- if (version_compare(phpversion(), '5.0.0', 'ge')) { class DB_DataContainer_Overload {
       function __call($method,$args) {
           $retval = null;
           $this->___call($method,$args,$retval);
           return($retval);
       }
} } else { eval('
       class DB_DataContainer_Overload {
           function __call($method,$args,&$retval) {
               return($this->___call($method,$args,$retval));
           }
       }
'); }


« previous php.general (#250198) next »