Re: what is the meaning of the following construct
| From: | Cipriano Groenendal | Date: | Sat, 17 Apr 2004 11:35:42 +0000 |
| Subject: | Re: what is the meaning of the following construct | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-27838@lists.php.net to get a copy of this message | ||
> if ('@include_path@' != '@'.'include_path'.'@') {
> ini_set('include_path', '@include_path@');
> }
> I am not knowledgable about which program replaces these @include_path@
> with '/usr/local/lib/php'.
The PEAR installer does this when it's installing a package.
> Any way finally the installed code looks like the following
> if ('/usr/local/lib/php' != '@'.'include_path'.'@') {
> ini_set('include_path', '/usr/local/lib/php');
> }
> So the if condition is absolutely not necessary.
> Please correct me if I am wrong
It is indeed quite strange code. It seems to check if it wasn't done
correctly, and if so spcify the path itself, but that code wouldn't be done
right anyway sine the @include_path@ never got translated...
Cipri