Re: Exceptions and Errors

From: Date: Thu, 15 Apr 2004 16:37:14 +0000
Subject: Re: Exceptions and Errors
References: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  Groups: php.internals 
Request: Send a blank email to internals+get-9195@lists.php.net to get a copy of this message
Brad Fisher wrote:
Lukas Smith wrote:
Our original idea was to handle this with an if statement like so: if (version_compare(phpversion(), "5.0.0") == -1) { // assign factoried method to this for PHP 4 // $this =& <Your_Package_Name>::factory();
// $this =& <Your_Package_Name>::singleton(); eval('$this =& <Your_Package_Name>::singleton();');
Seems to be an appropriately ugly BC hack for an appropriately issue to begin with. So yes that will have to do then. Thx for the hint. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07

« previous php.internals (#9195) next »