Re: Making Net_URL2 Stable
| From: | Bertrand Mansion | Date: | Thu, 21 Jul 2011 11:27:15 +0000 |
| Subject: | Re: Making Net_URL2 Stable | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-54404@lists.php.net to get a copy of this message | ||
The removeDotSegments() method looks a bit weak with its while() loop
and its comment :
"Make sure not to be trapped in an infinite loop due to a bug in this
method" ...
I suggest that you use an explode('/') on $path, then iterate to fill
a second array with tokens from $path using an index that
increase/decrease according to the '..' it meets.
Bertrand
On Thu, Jul 21, 2011 at 1:05 PM, till <till@php.net> wrote:
> This is still open:
> http://pear.php.net/bugs/bug.php?id=14399
>
> Can you check it out and either close/wontfix, etc.?
>
>
> On Tue, Jul 19, 2011 at 4:47 PM, David Coallier <davidc@php.net> wrote:
>> Thanks Alexey,
>>
>> Not planning on any BC breaks just now.
>>
>> Cheers,
>> --
>> David Coallier
>>
>> --
>> PEAR Development Mailing List (http://pear.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Bertrand Mansion
Mamasam