Closed GoogleCodeExporter closed 9 years ago
I looked into test_Minify_ImportProcessor.php and the problem is in line 29...
if (__FILE__ === realpath($_SERVER['SCRIPT_FILENAME'])) {
echo "\n---Output: " .strlen($actual). " bytes\n\n{$actual}\n\n";
if (!$passed) {
echo "---Expected: " .strlen($expected). " bytes\n\n{$expected}\n\n\n";
}
}
This if sentence is true.
Original comment by vasja.la...@gmail.com
on 18 Oct 2008 at 7:48
I tried on another server and i got the same error. So i guess the script isn't
that
'crosssystems' build...
I got...
!FAIL: ImportProcessor (1 of 1 tests run so far have failed)
---Output: 1651 bytes
@media screen {
/* some CSS to try to exercise things in general */
@import
url(min_unit_tests/_test_files/importProcessor/min_unit_tests/_test_files/import
Processor/min_unit_tests/_test_files/css/more.css);
from where we can see that there is no local path prefix... sometimes this
general
$_SERVER variables are disabled due to security reasons so there must be also a
workaround for this kind of situation.
Original comment by vasja.la...@gmail.com
on 18 Oct 2008 at 7:58
OK definitely it's the $_SERVER['DOCUMENT_ROOT'] variable. It says on the
hosting
server that $_SERVER['DOCUMENT_ROOT'] always returns just '/' and i should use
getcwd() instead.
Original comment by vasja.la...@gmail.com
on 19 Oct 2008 at 8:38
I manually declared variable $_SERVER['DOCUMENT_ROOT'] in index.php and now it
works
great. Nice script.
Original comment by vasja.la...@gmail.com
on 19 Oct 2008 at 9:14
Original comment by mrclay....@gmail.com
on 20 Oct 2008 at 6:35
Original issue reported on code.google.com by
vasja.la...@gmail.com
on 18 Oct 2008 at 7:25