I just had a quick glance through the CVS version.
line 121, Compat.php
require 'PHP/Compat/Components.php';
line 134, Compat.php:
foreach ($components as $type => $slice) {
I'm completely unfamiliar with how you've done it all along,
but it seems a
little bit scary to rely on a global variable defined in
another file -
would it be safer to shift this to a method like
fetchDefinedComponents()
that returns an array of components?
I can see the potential for some poor bugger out in userland
picking
$components as a variable name; and having PHP compat
"secretly" change
it...
If you've already decided that's the way to go, please
disregard this
bikeshedding
On 5/19/07, Aidan Lister <aidan php.net> wrote:
>
> Dear developers,
>
> We've just released an alpha version of PHP_Compat [1]
which
> significantly overhauls the entire package [2].
>
> It would be great to get some general feedback, as it
is a fairly
> central package to many applications and other PEAR
packages.
>
> Regards,
> Aidan Lister
>
>
> [1] http://pear.ph
p.net/package/php_compat
> [2] http
://pear.php.net/package/PHP_Compat/download/
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub
.php
>
>
--
By a factor of three, what you do is not nearly as important
as how it makes
people feel; so why do you spend almost all your time on the
wrong thing?
|