Re: Re: run-tests.php
| From: | Marcus Boerger | Date: | Mon, 10 Sep 2007 20:15:36 +0000 |
| Subject: | Re: Re: run-tests.php | ||
| References: | 1 2 3 4 5 | Groups: | php.internals php.qa |
| Request: | Send a blank email to php-qa+get-45280@lists.php.net to get a copy of this message | ||
Hello Zoe,
%s = [\n]+?
If that affects any test we have to fix those :-)
marcus
Monday, September 10, 2007, 10:02:48 PM, you wrote:
> Marcus Boerger wrote:
>> Hello Zoe,
>>
>> now i get the issue. It grabbs more than one line! This means
>> run-tests.php has to be fixed. The whole thing is designed under
>> the assumption that %s catches no new lines and hence only one
>> line.
>>
>>
>>
> That would be the best answer but I think it's a difficult fix and
> whatever it was might break other tests. I think it would mean replacing
> %s with something other than .+?. I'll have a look tomorrow and see if I
> can find a regex that would do - one of the things that had me confused
> for a while was that I thought the ? (non-greedy qualifier) should
> guarentee the minimum match but it doesn't work quite like that.
> Zoe
Best regards,
Marcus