[PEPr] Comment on PHP::PHP_Compat_Func

From: Date: Thu, 29 Apr 2004 15:22:55 +0000
Subject: [PEPr] Comment on PHP::PHP_Compat_Func
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-28556@lists.php.net to get a copy of this message
Davey Shafik (http://pear.php.net/user/davey) has commented on the proposal for PHP::PHP_Compat_Func. Comment: I just had a thought, If we do something like: class PHP_Compatibility { function require($function,$type = 'function') { if ($type == 'function') { // this allows us to provide compatibility classed too if (!function_exists($function)) { require_once 'PHP/Compatiblity/functions/' .$function. '.php'; } } } } And the user just does: PHP_Compatiblity::require('glob'); for example its *much* better than them having to do the function_exists tests and such themselves over and over.... - Davey Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=61 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

« previous php.pear.dev (#28556) next »