For Programmers: Free Programming Magazines  


Home > Archive > PHP PEAR Questions and Answers > June 2006 > Re: [PEAR-DEV] Re: [PEAR-QA] Re: [PEAR-DEV] Re: [PEAR] [ANNOUNCEMENT]Structures_DataG









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PEAR-DEV] Re: [PEAR-QA] Re: [PEAR-DEV] Re: [PEAR] [ANNOUNCEMENT]Structures_DataG
Greg Beaver

2006-06-19, 7:05 pm

Olivier Guilyardi wrote:
> Greg Beaver wrote:
>
>
>
> That's 60 lines in our case.
>
> But, I would have liked :
> - a conditional dependency, to do : if php < 5 then require php_compat


This is too complicated from the installer end. You can, of course,
make it so that the file containing the function is only installed if
PHP < 5.

> - or "pear package-validate" to detect that php_compat was required, and
> issue an error


That would be essentially putting a really brilliant brain inside
package-validate, something that is, to say the least, extremely
complicated.

In other words, that will never be a standard part of PEAR version 1.x.
There is some remote possibility that PEAR2 (vaporware atm) could be
modular enough to support something with this using PHP_Parser, but
that's WAYYYYY in the future.

Greg
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com