Re: testing of PEAR 1.7.0 / Space bug
| From: | Carsten Wiedmann | Date: | Wed, 28 Nov 2007 16:18:50 +0000 |
| Subject: | Re: testing of PEAR 1.7.0 / Space bug | ||
| References: | 1 2 3 | Groups: | php.pear.qa |
| Request: | Send a blank email to pear-qa+get-4629@lists.php.net to get a copy of this message | ||
Gregory Beaver schrieb:
Christian Weiske wrote:This fix is not complete. "Concat in new file" is not the only part, where a string is/was used. "Concat append to file" and "Concat to string" are also using a string. Of course, the last one makes no sense without a string. Thus I think it's better at the moment, to make sure that no path with space is used in the test. There is two other problema with "Concat to files with space in names" (which is at the moment a comment). a) you must use also an array in this test and not a string b) System::mktemp() have also a problem with spaces (and maybe other parts in "System.php" too?) (in my patch I use a similar trick as you) This patch fixes this for me on XP and FreeBSD (the mktemp problem on Windows too): http://phpfi.com/279493 Regards, CarstenIn test.phpt, you pass files unquoted to System::cat(), which doubles the problem. Especially on Windows machines, where the temporary directory is intest is fixed to use an array instead of spaces. That test, btw, is probably the oldest test in the bunch - it predates my efforts to unit-test PEAR 1.4.0C:\Documents and Settings\My Name\Locale Settings\Temp\this just has to fail.