Closed GoogleCodeExporter closed 8 years ago
Like you interest in this issue. I will start with some facts:
* Zend is used by Ajax which is not a plugin
* phpQuery uses Zend according to it's standards, which is properly set include path
Now when you delete phpQuery/Zend because you have it elsewhere - everything
works
right, because it was intended to do so. Removing Zend (selections) from
package will
create very unpleasant task for any user who will need Ajax, because he will
need to
download it and copy it to right place. Zend selection in phpQuery are ~400kb,
full
Zend is 15MB.
About plugins - only 2 (1 in latest release) are distributed with core and
those are
significant IMHO. I doubt any other plugins will be in release packages.
Now why Zend/ isn't in same dir level as phpQuery/ is ? Simulation:
Dir1
Zend
phpQuery
Now we have to add Dir1 to include path. Developer places Zend and phpQuery
dirs into
his library dir, so his library dir needs to be added to include path (to
achieve
require 'Zend/anything'). This IMHO can do a real mess up.
I'm not saying that i'm happy with actual structure, but it bypasses certain
problems. Plugins eg also can be placed ANYWHERE, because phpQuery is only doing
require 'PluginName.php'.
What do you propose ? Maybe library should use Zend in other way ? Maybe:
if (! include('Zend/foo.php'))
include dirname(__FILE__).'../Zend/foo.php';
Than it wont be added to include path, by library, but i dont know if Zend
itself
wont do this ;)
Original comment by tobiasz....@gmail.com
on 6 Oct 2008 at 3:40
Wiki page describing dependencies:
http://code.google.com/p/phpquery/wiki/Dependencies
Original comment by tobiasz....@gmail.com
on 12 Nov 2008 at 11:17
Original issue reported on code.google.com by
artn...@gmail.com
on 5 Oct 2008 at 10:22