logo       
Bookmark and Share

Re: beginning plannings for PEAR for PHP6: msg#00027

php.pear.core

Subject: Re: beginning plannings for PEAR for PHP6

Gregory Beaver wrote:
I think I have the solution. My original proposal will only call
__autoload() if the classes do not already exist.

Users like Rasmus, who wish to load everything up-front can do so:

<?php
require 'MDB2.php';
require 'MDB2/Driver/mysqli.php';
require 'MDB2/Module/Extended.php';
...
?>

other users who simply want ease and simplicity can do:

<?php
require 'PEAR/Autoload.php';
?>

In both cases, PEAR will be flexible enough to support either
development model, something that is impossible with the current
mandated require_once() CS rules.

Any further comment on this? Rasmus, am I right or missing something else?

That should do the trick. It should also make the underlying code cleaner.

-Rasmus



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise