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
[EMAIL PROTECTED]
_______________________________
  BackendMedia
  www.backendmedia.com
  [EMAIL PROTECTED]

  Linn Zwoch Smith GbR
  Pariser Str. 44
  D-10707 Berlin

  Tel +49 30 83 22 50 00
  Fax +49 30 83 22 50 07

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to