[PHP-DEV] Re: [PHP-QA] run-tests.php - GZIP_POST and DEFLATE_POST question

2012-05-08 Thread Nuno Lopes
I have no clue what those 2 sections do either. But if the number of affected tests is small, then feel free to patch the tests and/or run-tests.php. Nuno -Original Message- From: zoe slattery Sent: Tuesday, May 08, 2012 2:06 PM Subject: [PHP-QA] run-tests.php - GZIP_POST and DEFLAT

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-14 Thread Zoe Slattery
Zoe Slattery wrote: It is a nice patch - but I'm seeing some errors that I don't understand yet when I use it - like this: Warning: preg_match(): Compilation failed: missing terminating ] for character class at offset 5 in /home/zoe/BUILDS/php52/run-tests.php on line 1609 I'm not having t

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-14 Thread Nuno Lopes
It is a nice patch - but I'm seeing some errors that I don't understand yet when I use it - like this: Warning: preg_match(): Compilation failed: missing terminating ] for character class at offset 5 in /home/zoe/BUILDS/php52/run-tests.php on line 1609 I'm not having the best afternoon :-( -

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-14 Thread Zoe Slattery
Marcus Boerger wrote: Hello Nuno, Thursday, September 13, 2007, 9:20:51 PM, you wrote: 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.

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-14 Thread Nuno Lopes
OK, so basically it is impossible to fix the current regex to match what we want (I had a quick chat with the PCRE author and he thinks the same). I propose the following patch: http://web.ist.utl.pt/nuno.lopes/php_run_tests_%s.txt The main changes are: '%s' => '[^\r\n]+' Nice patch! The onl

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-14 Thread Marcus Boerger
Hello Nuno, Thursday, September 13, 2007, 9:20:51 PM, you wrote: >>> 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 b

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-14 Thread Zoe Slattery
Hi again On second thoughts - cancel my last two notes - yours is a better fix. :-) Zoe Johannes Schlüter wrote: Hi Nuno, On Thu, 2007-09-13 at 20:20 +0100, Nuno Lopes wrote: now i get the issue. It grabbs more than one line! This means run-tests.php has to be fixed. The whole thing is

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-14 Thread Zoe Slattery
..PS - here is a slightly longer explanation of how I got to the idea that to removing the "s" modifier would be a better fix. I did a little more work to understand how the regex matching for %s was working in run-tests.php. In the current version %s maps to .+? This *should* match one or

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-14 Thread Zoe Slattery
Hi guys - There is an alternative patch if you have't already committed this. The line: if (preg_match("/^$wanted_re$/s", $output)) can just be changed to remove the "s" modifier, I was working on trying to fix up the tests and make sure that they all work. The problematic ones are the php_i

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-13 Thread Johannes Schlüter
Hi Nuno, On Thu, 2007-09-13 at 20:20 +0100, Nuno Lopes wrote: > >> 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

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-13 Thread Nuno Lopes
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 ot

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-12 Thread Zoe Slattery
Marcus Boerger wrote: I meant %s = [^\n]+? Ah - I should have guessed that. Yes, it solves the problem, but then running make test gives an extra 7 failing tests - so I need to look at why they are failing and work out how to fix them. and continuing our private discussion earlier we might

[PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-11 Thread Marcus Boerger
Hello Zoe, Tuesday, September 11, 2007, 3:53:12 PM, you wrote: > Marcus Boerger wrote: >> Hello Zoe, >> >> %s = [\n]+? > I'm not sure what this would match? I think we need something that > matches any character but doesn't run over a line end? > If so it would be more like [.\\n]+? - although

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-11 Thread Zoe Slattery
Marcus Boerger wrote: Hello Zoe, %s = [\n]+? I'm not sure what this would match? I think we need something that matches any character but doesn't run over a line end? If so it would be more like [.\\n]+? - although this isn't right either (as in, I've tried both and they don't work :-( ).

Re: [PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-10 Thread Marcus Boerger
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

[PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-10 Thread Zoe Slattery
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

[PHP-DEV] Re: [PHP-QA] run-tests.php

2007-09-10 Thread Marcus Boerger
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. marcus Monday, September 10, 2007, 6:03:54 PM, you wrote: > Hi Marcus >> >> why is t