Re: run-tests.php
| From: | Zoe Slattery | Date: | Mon, 10 Sep 2007 20:02:48 +0000 |
| Subject: | Re: run-tests.php | ||
| References: | 1 2 3 4 | Groups: | php.internals php.qa |
| Request: | Send a blank email to internals+get-32204@lists.php.net to get a copy of this message | ||
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